summary refs log tree commit diff
path: root/ref-filter.h
diff options
context:
space:
mode:
authorZheNing Hu <adlternative@gmail.com>2021-07-26 03:26:49 +0000
committerJunio C Hamano <gitster@pobox.com>2021-07-26 12:01:26 -0700
commite85fcb355a38b5f01493efecdf0150a10ee471da (patch)
treee8cc0ab2d27c125cf0b94948d7f58baba89d493f /ref-filter.h
parent7121c4d4e2877115fb372b3f147fad4cd1306751 (diff)
ref-filter: use non-const ref_format in *_atom_parser()
Use non-const ref_format in *_atom_parser(), which can help us
modify the members of ref_format in *_atom_parser().

Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Hariom Verma <hariom18599@gmail.com>
Signed-off-by: ZheNing Hu <adlternative@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ref-filter.h')
-rw-r--r--ref-filter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ref-filter.h b/ref-filter.h
index baf72a7189..74fb423fc8 100644
--- a/ref-filter.h
+++ b/ref-filter.h
@@ -116,7 +116,7 @@ void ref_array_sort(struct ref_sorting *sort, struct ref_array *array);
 void ref_sorting_set_sort_flags_all(struct ref_sorting *sorting, unsigned int mask, int on);
 /*  Based on the given format and quote_style, fill the strbuf */
 int format_ref_array_item(struct ref_array_item *info,
-			  const struct ref_format *format,
+			  struct ref_format *format,
 			  struct strbuf *final_buf,
 			  struct strbuf *error_buf);
 /*  Parse a single sort specifier and add it to the list */
@@ -137,7 +137,7 @@ void setup_ref_filter_porcelain_msg(void);
  * name must be a fully qualified refname.
  */
 void pretty_print_ref(const char *name, const struct object_id *oid,
-		      const struct ref_format *format);
+		      struct ref_format *format);
 
 /*
  * Push a single ref onto the array; this can be used to construct your own