git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] status merge: guarentee space between msg and path
@ 2014-03-11 16:30 Sandy Carter
  2014-03-11 19:59 ` Junio C Hamano
  2014-03-11 23:23 ` [PATCH v2] " Sandy Carter
  0 siblings, 2 replies; 10+ messages in thread
From: Sandy Carter @ 2014-03-11 16:30 UTC (permalink / raw)
  To: git; +Cc: jrnieder, Sandy Carter

Add space between how and one when printing status of unmerged data.
This fixes an appending of the how message when it is longer than 20.
This is the case in some translations such as the french one where
the colon gets appended to the file:

    supprimé par nous :wt-status.c
    modifié des deux côtés :wt-status.h

Additionally, having a space makes the file in question easier to select
in console to quickly address the problem. Without the space, the colon
(and, sometimes the last word) of the message is selected along with the
file.

The previous french example should now print as the following, which is
more proper:

    supprimé par nous : wt-status.c
    modifié des deux côtés : wt-status.h

Signed-off-by: Sandy Carter <sandy.carter@savoirfairelinux.com>
---
 wt-status.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wt-status.c b/wt-status.c
index a452407..69e0dfc 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -264,7 +264,7 @@ static void wt_status_print_unmerged_data(struct wt_status *s,
 	case 6: how = _("both added:"); break;
 	case 7: how = _("both modified:"); break;
 	}
-	status_printf_more(s, c, "%-20s%s\n", how, one);
+	status_printf_more(s, c, "%-19s %s\n", how, one);
 	strbuf_release(&onebuf);
 }
 
-- 
1.9.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-03-12 20:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11 16:30 [PATCH] status merge: guarentee space between msg and path Sandy Carter
2014-03-11 19:59 ` Junio C Hamano
2014-03-11 20:22   ` Sandy Carter
2014-03-11 20:26     ` Junio C Hamano
2014-03-11 23:33       ` Duy Nguyen
2014-03-12 18:39         ` Junio C Hamano
2014-03-11 23:23 ` [PATCH v2] " Sandy Carter
2014-03-12 19:28   ` Junio C Hamano
2014-03-12 20:08     ` Sandy Carter
2014-03-12 20:43       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).