diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2017-01-10 14:19:51 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-31 12:43:04 -0800 |
commit | 56b43607f975841e70203e55bba3c0b0228da6b0 (patch) | |
tree | 257ef9269e5b291bf5231d76a5a375ef7fa05a63 /builtin/branch.c | |
parent | 6eac70fa6343a31b5b310a465a442adb6731a26b (diff) | |
download | git-56b43607f975841e70203e55bba3c0b0228da6b0.tar.gz |
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>
Diffstat (limited to 'builtin/branch.c')
-rw-r--r-- | builtin/branch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/branch.c b/builtin/branch.c index 6423ebce5d..34cd61cd90 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -649,6 +649,8 @@ int cmd_branch(int argc, const char **argv, const char *prefix) OPT_END(), }; + setup_ref_filter_porcelain_msg(); + memset(&filter, 0, sizeof(filter)); filter.kind = FILTER_REFS_BRANCHES; filter.abbrev = -1; |