]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/for-each-ref.c
Merge branch 'jk/for-each-ref-multi-key-sort-fix'
[thirdparty/git.git] / builtin / for-each-ref.c
index 312142923cef1c423c1a8a05a383b3f1744b196c..57489e4eab1c16d94806e82471371b9be574d9ef 100644 (file)
@@ -37,8 +37,7 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix)
                OPT_INTEGER( 0 , "count", &maxcount, N_("show only <n> matched refs")),
                OPT_STRING(  0 , "format", &format.format, N_("format"), N_("format to use for the output")),
                OPT__COLOR(&format.use_color, N_("respect format colors")),
-               OPT_CALLBACK(0 , "sort", sorting_tail, N_("key"),
-                           N_("field name to sort on"), &parse_opt_ref_sorting),
+               OPT_REF_SORT(sorting_tail),
                OPT_CALLBACK(0, "points-at", &filter.points_at,
                             N_("object"), N_("print only refs which points at the given object"),
                             parse_opt_object_name),