summaryrefslogtreecommitdiff
path: root/gettext.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-09-18 14:35:54 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-09-18 14:35:55 -0700
commitd71abd99f82e7076775f12deb9326f7d26761591 (patch)
treed8e065cd6e33d3c5617dfe1de2df3379818db338 /gettext.h
parentSync with 1.7.12.1 (diff)
parentfetch: align per-ref summary report in UTF-8 locales (diff)
downloadtgif-d71abd99f82e7076775f12deb9326f7d26761591.tar.xz
Merge branch 'nd/fetch-status-alignment'
The status report from "git fetch", when messages like 'up-to-date' are translated, did not align the branch names well. * nd/fetch-status-alignment: fetch: align per-ref summary report in UTF-8 locales
Diffstat (limited to 'gettext.h')
-rw-r--r--gettext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gettext.h b/gettext.h
index 376297bf73..7671d09d04 100644
--- a/gettext.h
+++ b/gettext.h
@@ -30,10 +30,15 @@
#ifndef NO_GETTEXT
extern void git_setup_gettext(void);
+extern int gettext_width(const char *s);
#else
static inline void git_setup_gettext(void)
{
}
+static inline int gettext_width(const char *s)
+{
+ return strlen(s);
+}
#endif
#ifdef GETTEXT_POISON