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 <[email protected]> Mentored-by: Christian Couder <[email protected]> Mentored-by: Matthieu Moy <[email protected]> Signed-off-by: Karthik Nayak <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6eac70f commit 56b4360

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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)