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 | Sync with 1.7.12.1 (diff) | |
parent | fetch: align per-ref summary report in UTF-8 locales (diff) | |
download | tgif-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.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 |