Skip to content

Commit

Permalink
Honor reference-format = hide:tag in diff view (#1170)
Browse files Browse the repository at this point in the history
Fixes #1168
  • Loading branch information
koutcher committed Jan 4, 2022
1 parent 53624f2 commit b7891d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pager.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ add_pager_refs(struct view *view, const char *commit_id)
const struct ref *ref = list;
const struct ref_format *fmt = get_ref_format(opt_reference_format, ref);

if (!strcmp(fmt->start, "hide:") && !*fmt->end)
continue;

if (!string_format_from(buf, &bufpos, "%s%s%s%s", sep,
fmt->start, ref->name, fmt->end))
return;
Expand Down

0 comments on commit b7891d9

Please sign in to comment.