rebase: fold git-rebase--common into the -p backend
[gitweb.git] / builtin / for-each-ref.c
index 5d7c921a773718d6bee7f85b8d868fc22602377d..465153e85337fdf6b857a94b8c245fe33832b0dc 100644 (file)
@@ -36,8 +36,8 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix)
                OPT_GROUP(""),
                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_CALLBACK(0 , "sort", sorting_tail, N_("key"),
-                           N_("field name to sort on"), &parse_opt_ref_sorting),
+               OPT__COLOR(&format.use_color, N_("respect format colors")),
+               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),