diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-09-18 14:35:54 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-18 14:35:55 -0700 |
commit | d71abd99f82e7076775f12deb9326f7d26761591 (patch) | |
tree | d8e065cd6e33d3c5617dfe1de2df3379818db338 /gettext.h | |
parent | 3c7d50979abd0fbc8e1d7a1baac4c8a26e440a7c (diff) | |
parent | 754395d3052fc0d46948b2ff7006b3c6701785c8 (diff) | |
download | git-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |