for-each-ref: fix setup of option-parsing for --sort
authorLars Hjemli <hjemli@gmail.com>
Sat, 10 Nov 2007 16:47:54 +0000 (17:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 10 Nov 2007 19:04:24 +0000 (11:04 -0800)
commitc899a57c28ee7cf251f856b575128de21b5a9a12
treea983ad33b599da48d9538123996bca9d14c344cd
parenta130976b71f36c73fc6279fd02beb1f798d82487
for-each-ref: fix setup of option-parsing for --sort

The option value for --sort is already a pointer to a pointer to struct
ref_sort, so just use it.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-for-each-ref.c
t/t6300-for-each-ref.sh