Skip to content

Commit 56b4360

Browse files
KarthikNayakgitster
authored andcommitted
branch, tag: use porcelain output
Call ref-filter's setup_ref_filter_porcelain_msg() to enable translated messages for the %(upstream:tack) atom. Although branch.c doesn't currently use ref-filter's printing API's, this will ensure that when it does in the future patches, we do not need to worry about translation. Written-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Mentored-by: Christian Couder <christian.couder@gmail.com> Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6eac70f commit 56b4360

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

builtin/branch.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,8 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
649649
OPT_END(),
650650
};
651651

652+
setup_ref_filter_porcelain_msg();
653+
652654
memset(&filter, 0, sizeof(filter));
653655
filter.kind = FILTER_REFS_BRANCHES;
654656
filter.abbrev = -1;

builtin/tag.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
375375
OPT_END()
376376
};
377377

378+
setup_ref_filter_porcelain_msg();
379+
378380
git_config(git_tag_config, sorting_tail);
379381

380382
memset(&opt, 0, sizeof(opt));

0 commit comments

Comments
 (0)