Skip to content

status, commit: separate "# " from the translatable part of output

Jonathan Nieder git 1 version In review

Get series with b4
b4 am 20110226050723.GA27864@elie

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5compat: provide a fallback va_copy definitioncompat/msvc.h git-compat-util.h+4 -10 replies
2/5strbuf: add strbuf_vaddffsck.c merge-recursive.c strbuf.c +2 more+26 -640 replies
3/5wt-status: add helpers for printing wt-status linescolor.c color.h wt-status.c +1 more+93 -00 replies
4/5commit: refer to commit template as s->fpbuiltin/commit.c+13 -140 replies
5/5commit, status: use status_printf{,_ln,_more} helpersbuiltin/commit.c wt-status.c+67 -662 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchErik Faye-LundChristian CouderJunio C Hamano
1/5Improved-by
2/5Improved-by
3/5Helped-by
4/5
5/5Explained-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH/RFC 0/5] status, commit: separate "# " from the translatable part of output

Hi,

This series makes wt-status and builtin-commit code a little less explicit about the '#' signs they produce in their output. The main goal is to make messages like

		"\n"
		"It looks like you may be committing a MERGE.\n"
		"If this is not correct, please remove the file\n"
		"	%s\n"
		"and try again.\n"
		""

safe to translate by getting rid of the functionally important initial # signs; a nice side effect is to make the source code a little easier

# to read and change (for example if we want to use some other kind
of formatting some day for "git status" output).

The first two patches (va_copy, strbuf_vaddf) are stolen from Jeff's GIT_TRACE_FACET series.

Thanks for your help and patience so far. I hope the series can be useful.

Jeff King (2):
compat: provide a fallback va_copy definition
strbuf: add strbuf_vaddf

Jonathan Nieder (3):
wt-status: add helpers for printing wt-status lines
commit: refer to commit template as s->fp commit, status: use status_printf{,_ln,_more} helpers

 builtin/commit.c  |   58 ++++++++++----------
 color.c           |    9 +++
 color.h           |    3 +
 compat/msvc.h     |    1 -
 fsck.c            |   14 +----
 git-compat-util.h |    4 +
 merge-recursive.c |   15 +-----
 strbuf.c          |   27 +++++----
 strbuf.h          |    2 +
 trace.c           |   32 ++---------
 wt-status.c       |  160 ++++++++++++++++++++++++++++++++++++++--------------
 wt-status.h       |    7 ++
 12 files changed, 195 insertions(+), 137 deletions(-)