summaryrefslogtreecommitdiff
path: root/builtin/tag.c
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2017-01-10 08:49:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-01-31 20:43:04 (GMT)
commit56b43607f975841e70203e55bba3c0b0228da6b0 (patch)
tree257ef9269e5b291bf5231d76a5a375ef7fa05a63 /builtin/tag.c
parent6eac70fa6343a31b5b310a465a442adb6731a26b (diff)
downloadgit-56b43607f975841e70203e55bba3c0b0228da6b0.zip
git-56b43607f975841e70203e55bba3c0b0228da6b0.tar.gz
git-56b43607f975841e70203e55bba3c0b0228da6b0.tar.bz2
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/tag.c')
-rw-r--r--builtin/tag.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/tag.c b/builtin/tag.c
index b4789ce..8a1a476 100644
--- a/builtin/tag.c
+++ b/builtin/tag.c
@@ -375,6 +375,8 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
OPT_END()
};
+ setup_ref_filter_porcelain_msg();
+
git_config(git_tag_config, sorting_tail);
memset(&opt, 0, sizeof(opt));