- OPT_BIT('s', "shell", "e_style,
+ OPT_BIT('s', "shell", &format.quote_style,
- OPT_BIT('p', "perl", "e_style,
+ OPT_BIT('p', "perl", &format.quote_style,
- OPT_BIT(0 , "python", "e_style,
+ OPT_BIT(0 , "python", &format.quote_style,
- OPT_BIT(0 , "tcl", "e_style,
+ OPT_BIT(0 , "tcl", &format.quote_style,
N_("quote placeholders suitably for Tcl"), QUOTE_TCL),
OPT_GROUP(""),
OPT_INTEGER( 0 , "count", &maxcount, N_("show only <n> matched refs")),
N_("quote placeholders suitably for Tcl"), QUOTE_TCL),
OPT_GROUP(""),
OPT_INTEGER( 0 , "count", &maxcount, N_("show only <n> matched refs")),
- OPT_STRING( 0 , "format", &format, N_("format"), N_("format to use for the output")),
+ 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_CALLBACK(0, "points-at", &filter.points_at,
OPT_CALLBACK(0 , "sort", sorting_tail, N_("key"),
N_("field name to sort on"), &parse_opt_ref_sorting),
OPT_CALLBACK(0, "points-at", &filter.points_at,
memset(&array, 0, sizeof(array));
memset(&filter, 0, sizeof(filter));
memset(&array, 0, sizeof(array));
memset(&filter, 0, sizeof(filter));
parse_options(argc, argv, prefix, opts, for_each_ref_usage, 0);
if (maxcount < 0) {
error("invalid --count argument: `%d'", maxcount);
usage_with_options(for_each_ref_usage, opts);
}
parse_options(argc, argv, prefix, opts, for_each_ref_usage, 0);
if (maxcount < 0) {
error("invalid --count argument: `%d'", maxcount);
usage_with_options(for_each_ref_usage, opts);
}
error("more than one quoting style?");
usage_with_options(for_each_ref_usage, opts);
}
error("more than one quoting style?");
usage_with_options(for_each_ref_usage, opts);
}