aboutsummaryrefslogtreecommitdiffstats
path: root/ref-filter.h
diff options
context:
space:
mode:
Diffstat (limited to 'ref-filter.h')
-rw-r--r--ref-filter.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/ref-filter.h b/ref-filter.h
index 0d98342b34..85c8ebc3b9 100644
--- a/ref-filter.h
+++ b/ref-filter.h
@@ -110,9 +110,10 @@ int verify_ref_format(struct ref_format *format);
/* Sort the given ref_array as per the ref_sorting provided */
void ref_array_sort(struct ref_sorting *sort, struct ref_array *array);
/* Based on the given format and quote_style, fill the strbuf */
-void format_ref_array_item(struct ref_array_item *info,
- const struct ref_format *format,
- struct strbuf *final_buf);
+int format_ref_array_item(struct ref_array_item *info,
+ const struct ref_format *format,
+ struct strbuf *final_buf,
+ struct strbuf *error_buf);
/* Print the ref using the given format and quote_style */
void show_ref_array_item(struct ref_array_item *info, const struct ref_format *format);
/* Parse a single sort specifier and add it to the list */
@@ -132,7 +133,15 @@ void setup_ref_filter_porcelain_msg(void);
* Print a single ref, outside of any ref-filter. Note that the
* name must be a fully qualified refname.
*/
-void pretty_print_ref(const char *name, const unsigned char *sha1,
+void pretty_print_ref(const char *name, const struct object_id *oid,
const struct ref_format *format);
+/*
+ * Push a single ref onto the array; this can be used to construct your own
+ * ref_array without using filter_refs().
+ */
+struct ref_array_item *ref_array_push(struct ref_array *array,
+ const char *refname,
+ const struct object_id *oid);
+
#endif /* REF_FILTER_H */
/span>l10n: git.pot: v2.23.0 round 2 (4 new, 6 removed)Jiang Xin1-477/+461 2019-08-10l10n: bg.po: Updated Bulgarian translation (4674t)Alexander Shopov1-2937/+3481 2019-08-09Git 2.23-rc2v2.23.0-rc2Junio C Hamano1-1/+1 2019-08-08t0000: reword comments for "local" testJeff King1-8/+6 2019-08-08t: decrease nesting in test_oid_to_pathJonathan Nieder1-1/+2 2019-08-07sha1-file: release strbuf after useRené Scharfe1-0/+1 2019-08-07test-dir-iterator: use path argument directlyRené Scharfe1-3/+1 2019-08-07dir-iterator: release strbuf after useRené Scharfe1-1/+3 2019-08-07commit-graph: release strbufs after useRené Scharfe1-5/+7 2019-08-06l10n: reformat some localized strings for v2.23.0Jean-Noël Avila2-5/+12 2019-08-06merge-recursive: avoid directory rename detection in recursive caseElijah Newren2-1/+113 2019-08-06l10n: vi.po (4676t): Updated Vietnamese translationTran Ngoc Quan1-3017/+3618 2019-08-05commit-graph: fix bug around octopus mergesDerrick Stolee2-2/+4 2019-08-05restore: fix typo in docsWilliam Chargin1-1/+1 2019-08-05doc: typo: s/can not/cannot/ and s/is does/does/Mark Rushakoff6-7/+7 2019-08-03l10n: Update Catalan translationJordi Mas1-4517/+6933 2019-08-02Git 2.23-rc1v2.23.0-rc1Junio C Hamano2-1/+2 2019-08-02log: really flip the --mailmap defaultJunio C Hamano3-6/+36 2019-08-01RelNotes/2.23.0: fix a few typos and other minor issuesMartin Ågren1-7/+7 2019-08-01RelNotes/2.21.1: typofixMartin Ågren1-1/+1 2019-08-01log: flip the --mailmap default unconditionallyJunio C Hamano3-22/+4 2019-08-01l10n: it.po: update the Italian translation for v2.23.0Alessandro Menti1-3117/+3723 2019-07-31config: work around bug with includeif:onbranch and early configJohannes Schindelin2-1/+7 2019-07-31A few more last-minute fixesJunio C Hamano1-63/+2 2019-07-31repack: simplify handling of auto-bitmaps and .keep filesJeff King2-16/+4 2019-07-31repack: silence warnings when auto-enabled bitmaps cannot be builtJeff King3-11/+36 2019-07-31t7700: clean up .keep file in bitmap-writing testJeff King1-0/+1 2019-07-31t: sort output of hashmap iterationJeff King2-33/+55 2019-07-31l10n: sv.po: Update Swedish translation (4676t0f0u)Peter Krefting1-2979/+3586 2019-07-30test-dir-iterator: do not assume errno valuesJunio C Hamano2-3/+12 2019-07-30l10n: git.pot: v2.23.0 round 1 (130 new, 35 removed)Jiang Xin1-2829/+3311 2019-07-29git: avoid calling aliased builtins via their dashed formJohannes Schindelin1-3/+0 2019-07-29bin-wrappers: append `.exe` to target paths if necessaryJohannes Schindelin1-1/+1 2019-07-29.gitignore: ignore Visual Studio's temporary/generated filesJohannes Schindelin1-0/+3 2019-07-29.gitignore: touch up the entries regarding Visual StudioPhilip Oakley1-2/+3 2019-07-29vcxproj: also link-or-copy builtinsJohannes Schindelin2-0/+18 2019-07-29msvc: add a Makefile target to pre-generate the Visual Studio solutionJohannes Schindelin3-1/+86