File tree Expand file tree Collapse file tree 2 files changed +16
-21
lines changed Expand file tree Collapse file tree 2 files changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,22 @@ const char *list_object_filter_config_name(enum list_objects_filter_choice c)
39
39
BUG ("list_object_filter_config_name: invalid argument '%d'" , c );
40
40
}
41
41
42
- int gently_parse_list_objects_filter (
42
+ /*
43
+ * Parse value of the argument to the "filter" keyword.
44
+ * On the command line this looks like:
45
+ * --filter=<arg>
46
+ * and in the pack protocol as:
47
+ * "filter" SP <arg>
48
+ *
49
+ * The filter keyword will be used by many commands.
50
+ * See Documentation/rev-list-options.txt for allowed values for <arg>.
51
+ *
52
+ * Capture the given arg as the "filter_spec". This can be forwarded to
53
+ * subordinate commands when necessary (although it's better to pass it through
54
+ * expand_list_objects_filter_spec() first). We also "intern" the arg for the
55
+ * convenience of the current command.
56
+ */
57
+ static int gently_parse_list_objects_filter (
43
58
struct list_objects_filter_options * filter_options ,
44
59
const char * arg ,
45
60
struct strbuf * errbuf )
Original file line number Diff line number Diff line change @@ -74,26 +74,6 @@ struct list_objects_filter_options {
74
74
#define LIST_OBJECTS_FILTER_INIT { .filter_spec = STRBUF_INIT }
75
75
void list_objects_filter_init (struct list_objects_filter_options * filter_options );
76
76
77
- /*
78
- * Parse value of the argument to the "filter" keyword.
79
- * On the command line this looks like:
80
- * --filter=<arg>
81
- * and in the pack protocol as:
82
- * "filter" SP <arg>
83
- *
84
- * The filter keyword will be used by many commands.
85
- * See Documentation/rev-list-options.txt for allowed values for <arg>.
86
- *
87
- * Capture the given arg as the "filter_spec". This can be forwarded to
88
- * subordinate commands when necessary (although it's better to pass it through
89
- * expand_list_objects_filter_spec() first). We also "intern" the arg for the
90
- * convenience of the current command.
91
- */
92
- int gently_parse_list_objects_filter (
93
- struct list_objects_filter_options * filter_options ,
94
- const char * arg ,
95
- struct strbuf * errbuf );
96
-
97
77
void list_objects_filter_die_if_populated (
98
78
struct list_objects_filter_options * filter_options );
99
79
You can’t perform that action at this time.
0 commit comments