summaryrefslogtreecommitdiff
path: root/gettext.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-18 14:35:54 -0700
committerJunio C Hamano <gitster@pobox.com>2012-09-18 14:35:55 -0700
commitd71abd99f82e7076775f12deb9326f7d26761591 (patch)
treed8e065cd6e33d3c5617dfe1de2df3379818db338 /gettext.h
parent3c7d50979abd0fbc8e1d7a1baac4c8a26e440a7c (diff)
parent754395d3052fc0d46948b2ff7006b3c6701785c8 (diff)
downloadgit-d71abd99f82e7076775f12deb9326f7d26761591.tar.gz
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