summaryrefslogtreecommitdiff
path: root/builtin-for-each-ref.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2007-11-10 17:47:54 +0100
committerJunio C Hamano <gitster@pobox.com>2007-11-10 11:04:24 -0800
commitc899a57c28ee7cf251f856b575128de21b5a9a12 (patch)
treea983ad33b599da48d9538123996bca9d14c344cd /builtin-for-each-ref.c
parenta130976b71f36c73fc6279fd02beb1f798d82487 (diff)
downloadgit-c899a57c28ee7cf251f856b575128de21b5a9a12.tar.gz
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>
Diffstat (limited to 'builtin-for-each-ref.c')
-rw-r--r--builtin-for-each-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-for-each-ref.c b/builtin-for-each-ref.c
index da8c7948e6..e909e66bed 100644
--- a/builtin-for-each-ref.c
+++ b/builtin-for-each-ref.c
@@ -847,7 +847,7 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix)
OPT_GROUP(""),
OPT_INTEGER( 0 , "count", &maxcount, "show only <n> matched refs"),
OPT_STRING( 0 , "format", &format, "format", "format to use for the output"),
- OPT_CALLBACK(0 , "sort", &sort_tail, "key",
+ OPT_CALLBACK(0 , "sort", sort_tail, "key",
"field name to sort on", &opt_parse_sort),
OPT_END(),
};