git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v4 54/73] gettextize: git-status basic messages

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Feb 22, 2011, 23:42 UTC
Message-ID
<1298418152-27789-55-git-send-email-avarab@gmail.com>
In-Reply-To
<7vhbbwdjnm.fsf@alter.siamese.dyndns.org>

Gettextize the most common git-status messages. Many tests checked for these explicitly. Change them to skip under GETTEXT_POISON=YesPlease.

Some of the tests in t7508-status.sh needed to be split up when I added C_LOCALE_OUTPUT to them, since parts of them affected later tests (some of which aren't being skipped) indirectly.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 t/t7060-wtstatus.sh         |    2 +-
 t/t7506-status-submodule.sh |   20 ++++----
 t/t7508-status.sh           |  115 ++++++++++++++++++++++++-------------------
 wt-status.c                 |   86 ++++++++++++++++----------------
 4 files changed, 119 insertions(+), 104 deletions(-)
diff --git a/t/t7060-wtstatus.sh b/t/t7060-wtstatus.sh
index fcac472..b4fcc86 100755
--- a/t/t7060-wtstatus.sh
+++ b/t/t7060-wtstatus.sh
@@ -38,7 +38,7 @@ cat >expect <<EOF
 no changes added to commit (use "git add" and/or "git commit -a")
 EOF
 
-test_expect_success 'M/D conflict does not segfault' '
+test_expect_success C_LOCALE_OUTPUT 'M/D conflict does not segfault' '
 	mkdir mdconflict &&
 	(
 		cd mdconflict &&
diff --git a/t/t7506-status-submodule.sh b/t/t7506-status-submodule.sh
index 3d4f85d..fa473a0 100755
--- a/t/t7506-status-submodule.sh
+++ b/t/t7506-status-submodule.sh
@@ -30,7 +30,7 @@ test_expect_success 'commit --dry-run -a clean' '
 	grep "nothing to commit" output
 '
 
-test_expect_success 'status with modified file in submodule' '
+test_expect_success C_LOCALE_OUTPUT 'status with modified file in submodule' '
 	(cd sub && git reset --hard) &&
 	echo "changed" >sub/foo &&
 	git status >output &&
@@ -46,7 +46,7 @@ test_expect_success 'status with modified file in submodule (porcelain)' '
 	EOF
 '
 
-test_expect_success 'status with added file in submodule' '
+test_expect_success C_LOCALE_OUTPUT 'status with added file in submodule' '
 	(cd sub && git reset --hard && echo >foo && git add foo) &&
 	git status >output &&
 	grep "modified:   sub (modified content)" output
@@ -60,14 +60,14 @@ test_expect_success 'status with added file in submodule (porcelain)' '
 	EOF
 '
 
-test_expect_success 'status with untracked file in submodule' '
+test_expect_success C_LOCALE_OUTPUT 'status with untracked file in submodule' '
 	(cd sub && git reset --hard) &&
 	echo "content" >sub/new-file &&
 	git status >output &&
 	grep "modified:   sub (untracked content)" output
 '
 
-test_expect_success 'status -uno with untracked file in submodule' '
+test_expect_success C_LOCALE_OUTPUT 'status -uno with untracked file in submodule' '
 	git status -uno >output &&
 	grep "^nothing to commit" output
 '
@@ -79,7 +79,7 @@ test_expect_success 'status with untracked file in submodule (porcelain)' '
 	EOF
 '
 
-test_expect_success 'status with added and untracked file in submodule' '
+test_expect_success C_LOCALE_OUTPUT 'status with added and untracked file in submodule' '
 	(cd sub && git reset --hard && echo >foo && git add foo) &&
 	echo "content" >sub/new-file &&
 	git status >output &&
@@ -95,7 +95,7 @@ test_expect_success 'status with added and untracked file in submodule (porcelai
 	EOF
 '
 
-test_expect_success 'status with modified file in modified submodule' '
+test_expect_success C_LOCALE_OUTPUT 'status with modified file in modified submodule' '
 	(cd sub && git reset --hard) &&
 	rm sub/new-file &&
 	(cd sub && echo "next change" >foo && git commit -m "next change" foo) &&
@@ -113,7 +113,7 @@ test_expect_success 'status with modified file in modified submodule (porcelain)
 	EOF
 '
 
-test_expect_success 'status with added file in modified submodule' '
+test_expect_success C_LOCALE_OUTPUT 'status with added file in modified submodule' '
 	(cd sub && git reset --hard && echo >foo && git add foo) &&
 	git status >output &&
 	grep "modified:   sub (new commits, modified content)" output
@@ -127,7 +127,7 @@ test_expect_success 'status with added file in modified submodule (porcelain)' '
 	EOF
 '
 
-test_expect_success 'status with untracked file in modified submodule' '
+test_expect_success C_LOCALE_OUTPUT 'status with untracked file in modified submodule' '
 	(cd sub && git reset --hard) &&
 	echo "content" >sub/new-file &&
 	git status >output &&
@@ -141,7 +141,7 @@ test_expect_success 'status with untracked file in modified submodule (porcelain
 	EOF
 '
 
-test_expect_success 'status with added and untracked file in modified submodule' '
+test_expect_success C_LOCALE_OUTPUT 'status with added and untracked file in modified submodule' '
 	(cd sub && git reset --hard && echo >foo && git add foo) &&
 	echo "content" >sub/new-file &&
 	git status >output &&
@@ -167,7 +167,7 @@ test_expect_success 'setup .git file for sub' '
 	 git commit -m "added .real to .gitignore" .gitignore
 '
 
-test_expect_success 'status with added file in modified submodule with .git file' '
+test_expect_success C_LOCALE_OUTPUT 'status with added file in modified submodule with .git file' '
 	(cd sub && git reset --hard && echo >foo && git add foo) &&
 	git status >output &&
 	grep "modified:   sub (new commits, modified content)" output
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index f1dc5c3..a93e70f 100755
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
@@ -55,7 +55,7 @@ test_expect_success 'setup' '
 	git add dir2/added
 '
 
-test_expect_success 'status (1)' '
+test_expect_success C_LOCALE_OUTPUT 'status (1)' '
 
 	grep "use \"git rm --cached <file>\.\.\.\" to unstage" output
 
@@ -85,7 +85,7 @@ cat >expect <<\EOF
 #	untracked
 EOF
 
-test_expect_success 'status (2)' '
+test_expect_success C_LOCALE_OUTPUT 'status (2)' '
 
 	git status >output &&
 	test_cmp expect output
@@ -111,7 +111,7 @@ EOF
 
 git config advice.statusHints false
 
-test_expect_success 'status (advice.statusHints false)' '
+test_expect_success C_LOCALE_OUTPUT 'status (advice.statusHints false)' '
 
 	git status >output &&
 	test_cmp expect output
@@ -157,6 +157,12 @@ test_expect_success 'status -s -b' '
 
 '
 
+test_expect_success 'setup dir3' '
+	mkdir dir3 &&
+	: >dir3/untracked1 &&
+	: >dir3/untracked2
+'
+
 cat >expect <<EOF
 # On branch master
 # Changes to be committed:
@@ -172,16 +178,14 @@ cat >expect <<EOF
 #
 # Untracked files not listed (use -u option to show untracked files)
 EOF
-test_expect_success 'status -uno' '
-	mkdir dir3 &&
-	: >dir3/untracked1 &&
-	: >dir3/untracked2 &&
+test_expect_success C_LOCALE_OUTPUT 'status -uno' '
 	git status -uno >output &&
 	test_cmp expect output
 '
 
-test_expect_success 'status (status.showUntrackedFiles no)' '
+test_expect_success C_LOCALE_OUTPUT 'status (status.showUntrackedFiles no)' '
 	git config status.showuntrackedfiles no
+	test_when_finished "git config --unset status.showuntrackedfiles" &&
 	git status >output &&
 	test_cmp expect output
 '
@@ -197,7 +201,7 @@ cat >expect <<EOF
 # Untracked files not listed
 EOF
 git config advice.statusHints false
-test_expect_success 'status -uno (advice.statusHints false)' '
+test_expect_success C_LOCALE_OUTPUT 'status -uno (advice.statusHints false)' '
 	git status -uno >output &&
 	test_cmp expect output
 '
@@ -208,7 +212,6 @@ cat >expect << EOF
 A  dir2/added
 EOF
 test_expect_success 'status -s -uno' '
-	git config --unset status.showuntrackedfiles
 	git status -s -uno >output &&
 	test_cmp expect output
 '
@@ -243,13 +246,14 @@ cat >expect <<EOF
 #	output
 #	untracked
 EOF
-test_expect_success 'status -unormal' '
+test_expect_success C_LOCALE_OUTPUT 'status -unormal' '
 	git status -unormal >output &&
 	test_cmp expect output
 '
 
-test_expect_success 'status (status.showUntrackedFiles normal)' '
+test_expect_success C_LOCALE_OUTPUT 'status (status.showUntrackedFiles normal)' '
 	git config status.showuntrackedfiles normal
+	test_when_finished "git config --unset status.showuntrackedfiles" &&
 	git status >output &&
 	test_cmp expect output
 '
@@ -266,7 +270,6 @@ A  dir2/added
 ?? untracked
 EOF
 test_expect_success 'status -s -unormal' '
-	git config --unset status.showuntrackedfiles
 	git status -s -unormal >output &&
 	test_cmp expect output
 '
@@ -302,18 +305,21 @@ cat >expect <<EOF
 #	output
 #	untracked
 EOF
-test_expect_success 'status -uall' '
+test_expect_success C_LOCALE_OUTPUT 'status -uall' '
 	git status -uall >output &&
 	test_cmp expect output
 '
-test_expect_success 'status (status.showUntrackedFiles all)' '
+test_expect_success C_LOCALE_OUTPUT 'status (status.showUntrackedFiles all)' '
 	git config status.showuntrackedfiles all
+	test_when_finished "git config --unset status.showuntrackedfiles" &&
 	git status >output &&
-	rm -rf dir3 &&
-	git config --unset status.showuntrackedfiles &&
 	test_cmp expect output
 '
 
+test_expect_success 'teardown dir3' '
+	rm -rf dir3
+'
+
 cat >expect <<EOF
  M dir1/modified
 A  dir2/added
@@ -361,7 +367,7 @@ cat >expect <<\EOF
 #	../untracked
 EOF
 
-test_expect_success 'status with relative paths' '
+test_expect_success C_LOCALE_OUTPUT 'status with relative paths' '
 
 	(cd dir1 && git status) >output &&
 	test_cmp expect output
@@ -434,18 +440,19 @@ cat >expect <<\EOF
 #	<BLUE>untracked<RESET>
 EOF
 
-test_expect_success 'status with color.ui' '
+test_expect_success C_LOCALE_OUTPUT 'status with color.ui' '
 
 	git config color.ui always &&
+	test_when_finished "git config --unset color.ui" &&
 	git status | test_decode_color >output &&
 	test_cmp expect output
 
 '
 
-test_expect_success 'status with color.status' '
+test_expect_success C_LOCALE_OUTPUT 'status with color.status' '
 
-	git config --unset color.ui &&
 	git config color.status always &&
+	test_when_finished "git config --unset color.status" &&
 	git status | test_decode_color >output &&
 	test_cmp expect output
 
@@ -464,7 +471,6 @@ EOF
 
 test_expect_success 'status -s with color.ui' '
 
-	git config --unset color.status &&
 	git config color.ui always &&
 	git status -s | test_decode_color >output &&
 	test_cmp expect output
@@ -564,9 +570,10 @@ cat >expect <<\EOF
 EOF
 
 
-test_expect_success 'status without relative paths' '
+test_expect_success C_LOCALE_OUTPUT 'status without relative paths' '
 
-	git config status.relativePaths false
+	git config status.relativePaths false &&
+	test_when_finished "git config --unset status.relativePaths" &&
 	(cd dir1 && git status) >output &&
 	test_cmp expect output
 
@@ -585,6 +592,8 @@ EOF
 
 test_expect_success 'status -s without relative paths' '
 
+	git config status.relativePaths false &&
+	test_when_finished "git config --unset status.relativePaths" &&
 	(cd dir1 && git status -s) >output &&
 	test_cmp expect output
 
@@ -607,7 +616,10 @@ cat <<EOF >expect
 #	untracked
 EOF
 test_expect_success 'dry-run of partial commit excluding new file in index' '
-	git commit --dry-run dir1/modified >output &&
+	git commit --dry-run dir1/modified >output
+'
+
+test_expect_success C_LOCALE_OUTPUT 'dry-run of partial commit excluding new file in index: output' '
 	test_cmp expect output
 '
 
@@ -655,13 +667,13 @@ cat >expect <<EOF
 #	output
 #	untracked
 EOF
-test_expect_success 'status submodule summary is disabled by default' '
+test_expect_success C_LOCALE_OUTPUT 'status submodule summary is disabled by default' '
 	git status >output &&
 	test_cmp expect output
 '
 
 # we expect the same as the previous test
-test_expect_success 'status --untracked-files=all does not show submodule' '
+test_expect_success C_LOCALE_OUTPUT 'status --untracked-files=all does not show submodule' '
 	git status --untracked-files=all >output &&
 	test_cmp expect output
 '
@@ -719,7 +731,7 @@ cat >expect <<EOF
 #	output
 #	untracked
 EOF
-test_expect_success 'status submodule summary' '
+test_expect_success C_LOCALE_OUTPUT 'status submodule summary' '
 	git config status.submodulesummary 10 &&
 	git status >output &&
 	test_cmp expect output
@@ -760,8 +772,11 @@ cat >expect <<EOF
 #	untracked
 no changes added to commit (use "git add" and/or "git commit -a")
 EOF
-test_expect_success 'status submodule summary (clean submodule)' '
-	git commit -m "commit submodule" &&
+test_expect_success 'status submodule summary (clean submodule): commit' '
+	git commit -m "commit submodule"
+'
+
+test_expect_success C_LOCALE_OUTPUT 'status submodule summary (clean submodule): output' '
 	git config status.submodulesummary 10 &&
 	test_must_fail git commit --dry-run >output &&
 	test_cmp expect output &&
@@ -812,7 +827,7 @@ cat >expect <<EOF
 #	output
 #	untracked
 EOF
-test_expect_success 'commit --dry-run submodule summary (--amend)' '
+test_expect_success C_LOCALE_OUTPUT 'commit --dry-run submodule summary (--amend)' '
 	git config status.submodulesummary 10 &&
 	git commit --dry-run --amend >output &&
 	test_cmp expect output
@@ -867,13 +882,13 @@ cat > expect << EOF
 #	untracked
 EOF
 
-test_expect_success '--ignore-submodules=untracked suppresses submodules with untracked content' '
+test_expect_success C_LOCALE_OUTPUT '--ignore-submodules=untracked suppresses submodules with untracked content' '
 	echo modified > sm/untracked &&
 	git status --ignore-submodules=untracked > output &&
 	test_cmp expect output
 '
 
-test_expect_success '.gitmodules ignore=untracked suppresses submodules with untracked content' '
+test_expect_success C_LOCALE_OUTPUT '.gitmodules ignore=untracked suppresses submodules with untracked content' '
 	git config diff.ignoreSubmodules dirty &&
 	git status >output &&
 	test_cmp expect output &&
@@ -885,7 +900,7 @@ test_expect_success '.gitmodules ignore=untracked suppresses submodules with unt
 	git config --unset diff.ignoreSubmodules
 '
 
-test_expect_success '.git/config ignore=untracked suppresses submodules with untracked content' '
+test_expect_success C_LOCALE_OUTPUT '.git/config ignore=untracked suppresses submodules with untracked content' '
 	git config --add -f .gitmodules submodule.subname.ignore none &&
 	git config --add -f .gitmodules submodule.subname.path sm &&
 	git config --add submodule.subname.ignore untracked &&
@@ -896,12 +911,12 @@ test_expect_success '.git/config ignore=untracked suppresses submodules with unt
 	git config --remove-section -f .gitmodules submodule.subname
 '
 
-test_expect_success '--ignore-submodules=dirty suppresses submodules with untracked content' '
+test_expect_success C_LOCALE_OUTPUT '--ignore-submodules=dirty suppresses submodules with untracked content' '
 	git status --ignore-submodules=dirty > output &&
 	test_cmp expect output
 '
 
-test_expect_success '.gitmodules ignore=dirty suppresses submodules with untracked content' '
+test_expect_success C_LOCALE_OUTPUT '.gitmodules ignore=dirty suppresses submodules with untracked content' '
 	git config diff.ignoreSubmodules dirty &&
 	git status >output &&
 	! test -s actual &&
@@ -913,7 +928,7 @@ test_expect_success '.gitmodules ignore=dirty suppresses submodules with untrack
 	git config --unset diff.ignoreSubmodules
 '
 
-test_expect_success '.git/config ignore=dirty suppresses submodules with untracked content' '
+test_expect_success C_LOCALE_OUTPUT '.git/config ignore=dirty suppresses submodules with untracked content' '
 	git config --add -f .gitmodules submodule.subname.ignore none &&
 	git config --add -f .gitmodules submodule.subname.path sm &&
 	git config --add submodule.subname.ignore dirty &&
@@ -924,13 +939,13 @@ test_expect_success '.git/config ignore=dirty suppresses submodules with untrack
 	git config -f .gitmodules  --remove-section submodule.subname
 '
 
-test_expect_success '--ignore-submodules=dirty suppresses submodules with modified content' '
+test_expect_success C_LOCALE_OUTPUT '--ignore-submodules=dirty suppresses submodules with modified content' '
 	echo modified > sm/foo &&
 	git status --ignore-submodules=dirty > output &&
 	test_cmp expect output
 '
 
-test_expect_success '.gitmodules ignore=dirty suppresses submodules with modified content' '
+test_expect_success C_LOCALE_OUTPUT '.gitmodules ignore=dirty suppresses submodules with modified content' '
 	git config --add -f .gitmodules submodule.subname.ignore dirty &&
 	git config --add -f .gitmodules submodule.subname.path sm &&
 	git status > output &&
@@ -938,7 +953,7 @@ test_expect_success '.gitmodules ignore=dirty suppresses submodules with modifie
 	git config -f .gitmodules  --remove-section submodule.subname
 '
 
-test_expect_success '.git/config ignore=dirty suppresses submodules with modified content' '
+test_expect_success C_LOCALE_OUTPUT '.git/config ignore=dirty suppresses submodules with modified content' '
 	git config --add -f .gitmodules submodule.subname.ignore none &&
 	git config --add -f .gitmodules submodule.subname.path sm &&
 	git config --add submodule.subname.ignore dirty &&
@@ -981,12 +996,12 @@ cat > expect << EOF
 #	untracked
 EOF
 
-test_expect_success "--ignore-submodules=untracked doesn't suppress submodules with modified content" '
+test_expect_success C_LOCALE_OUTPUT "--ignore-submodules=untracked doesn't suppress submodules with modified content" '
 	git status --ignore-submodules=untracked > output &&
 	test_cmp expect output
 '
 
-test_expect_success ".gitmodules ignore=untracked doesn't suppress submodules with modified content" '
+test_expect_success C_LOCALE_OUTPUT ".gitmodules ignore=untracked doesn't suppress submodules with modified content" '
 	git config --add -f .gitmodules submodule.subname.ignore untracked &&
 	git config --add -f .gitmodules submodule.subname.path sm &&
 	git status > output &&
@@ -994,7 +1009,7 @@ test_expect_success ".gitmodules ignore=untracked doesn't suppress submodules wi
 	git config -f .gitmodules  --remove-section submodule.subname
 '
 
-test_expect_success ".git/config ignore=untracked doesn't suppress submodules with modified content" '
+test_expect_success C_LOCALE_OUTPUT ".git/config ignore=untracked doesn't suppress submodules with modified content" '
 	git config --add -f .gitmodules submodule.subname.ignore none &&
 	git config --add -f .gitmodules submodule.subname.path sm &&
 	git config --add submodule.subname.ignore untracked &&
@@ -1043,12 +1058,12 @@ cat > expect << EOF
 #	untracked
 EOF
 
-test_expect_success "--ignore-submodules=untracked doesn't suppress submodule summary" '
+test_expect_success C_LOCALE_OUTPUT "--ignore-submodules=untracked doesn't suppress submodule summary" '
 	git status --ignore-submodules=untracked > output &&
 	test_cmp expect output
 '
 
-test_expect_success ".gitmodules ignore=untracked doesn't suppress submodule summary" '
+test_expect_success C_LOCALE_OUTPUT ".gitmodules ignore=untracked doesn't suppress submodule summary" '
 	git config --add -f .gitmodules submodule.subname.ignore untracked &&
 	git config --add -f .gitmodules submodule.subname.path sm &&
 	git status > output &&
@@ -1056,7 +1071,7 @@ test_expect_success ".gitmodules ignore=untracked doesn't suppress submodule sum
 	git config -f .gitmodules  --remove-section submodule.subname
 '
 
-test_expect_success ".git/config ignore=untracked doesn't suppress submodule summary" '
+test_expect_success C_LOCALE_OUTPUT ".git/config ignore=untracked doesn't suppress submodule summary" '
 	git config --add -f .gitmodules submodule.subname.ignore none &&
 	git config --add -f .gitmodules submodule.subname.path sm &&
 	git config --add submodule.subname.ignore untracked &&
@@ -1067,11 +1082,11 @@ test_expect_success ".git/config ignore=untracked doesn't suppress submodule sum
 	git config -f .gitmodules  --remove-section submodule.subname
 '
 
-test_expect_success "--ignore-submodules=dirty doesn't suppress submodule summary" '
+test_expect_success C_LOCALE_OUTPUT "--ignore-submodules=dirty doesn't suppress submodule summary" '
 	git status --ignore-submodules=dirty > output &&
 	test_cmp expect output
 '
-test_expect_success ".gitmodules ignore=dirty doesn't suppress submodule summary" '
+test_expect_success C_LOCALE_OUTPUT ".gitmodules ignore=dirty doesn't suppress submodule summary" '
 	git config --add -f .gitmodules submodule.subname.ignore dirty &&
 	git config --add -f .gitmodules submodule.subname.path sm &&
 	git status > output &&
@@ -1079,7 +1094,7 @@ test_expect_success ".gitmodules ignore=dirty doesn't suppress submodule summary
 	git config -f .gitmodules  --remove-section submodule.subname
 '
 
-test_expect_success ".git/config ignore=dirty doesn't suppress submodule summary" '
+test_expect_success C_LOCALE_OUTPUT ".git/config ignore=dirty doesn't suppress submodule summary" '
 	git config --add -f .gitmodules submodule.subname.ignore none &&
 	git config --add -f .gitmodules submodule.subname.path sm &&
 	git config --add submodule.subname.ignore dirty &&
@@ -1111,7 +1126,7 @@ cat > expect << EOF
 no changes added to commit (use "git add" and/or "git commit -a")
 EOF
 
-test_expect_success "--ignore-submodules=all suppresses submodule summary" '
+test_expect_success C_LOCALE_OUTPUT "--ignore-submodules=all suppresses submodule summary" '
 	git status --ignore-submodules=all > output &&
 	test_cmp expect output
 '
diff --git a/wt-status.c b/wt-status.c
index 123582b..f369eba 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -57,16 +57,16 @@ static void wt_status_print_unmerged_header(struct wt_status *s)
 {
 	const char *c = color(WT_STATUS_HEADER, s);
 
-	color_fprintf_ln(s->fp, c, "# Unmerged paths:");
+	color_fprintf_ln(s->fp, c, _("# Unmerged paths:"));
 	if (!advice_status_hints)
 		return;
 	if (s->in_merge)
 		;
 	else if (!s->is_initial)
-		color_fprintf_ln(s->fp, c, "#   (use \"git reset %s <file>...\" to unstage)", s->reference);
+		color_fprintf_ln(s->fp, c, _("#   (use \"git reset %s <file>...\" to unstage)"), s->reference);
 	else
-		color_fprintf_ln(s->fp, c, "#   (use \"git rm --cached <file>...\" to unstage)");
-	color_fprintf_ln(s->fp, c, "#   (use \"git add/rm <file>...\" as appropriate to mark resolution)");
+		color_fprintf_ln(s->fp, c, _("#   (use \"git rm --cached <file>...\" to unstage)"));
+	color_fprintf_ln(s->fp, c, _("#   (use \"git add/rm <file>...\" as appropriate to mark resolution)"));
 	color_fprintf_ln(s->fp, c, "#");
 }
 
@@ -80,9 +80,9 @@ static void wt_status_print_cached_header(struct wt_status *s)
 	if (s->in_merge)
 		; /* NEEDSWORK: use "git reset --unresolve"??? */
 	else if (!s->is_initial)
-		color_fprintf_ln(s->fp, c, "#   (use \"git reset %s <file>...\" to unstage)", s->reference);
+		color_fprintf_ln(s->fp, c, _("#   (use \"git reset %s <file>...\" to unstage)"), s->reference);
 	else
-		color_fprintf_ln(s->fp, c, "#   (use \"git rm --cached <file>...\" to unstage)");
+		color_fprintf_ln(s->fp, c, _("#   (use \"git rm --cached <file>...\" to unstage)"));
 	color_fprintf_ln(s->fp, c, "#");
 }
 
@@ -92,16 +92,16 @@ static void wt_status_print_dirty_header(struct wt_status *s,
 {
 	const char *c = color(WT_STATUS_HEADER, s);
 
-	color_fprintf_ln(s->fp, c, "# Changes not staged for commit:");
+	color_fprintf_ln(s->fp, c, _("# Changes not staged for commit:"));
 	if (!advice_status_hints)
 		return;
 	if (!has_deleted)
-		color_fprintf_ln(s->fp, c, "#   (use \"git add <file>...\" to update what will be committed)");
+		color_fprintf_ln(s->fp, c, _("#   (use \"git add <file>...\" to update what will be committed)"));
 	else
-		color_fprintf_ln(s->fp, c, "#   (use \"git add/rm <file>...\" to update what will be committed)");
-	color_fprintf_ln(s->fp, c, "#   (use \"git checkout -- <file>...\" to discard changes in working directory)");
+		color_fprintf_ln(s->fp, c, _("#   (use \"git add/rm <file>...\" to update what will be committed)"));
+	color_fprintf_ln(s->fp, c, _("#   (use \"git checkout -- <file>...\" to discard changes in working directory)"));
 	if (has_dirty_submodules)
-		color_fprintf_ln(s->fp, c, "#   (commit or discard the untracked or modified content in submodules)");
+		color_fprintf_ln(s->fp, c, _("#   (commit or discard the untracked or modified content in submodules)"));
 	color_fprintf_ln(s->fp, c, "#");
 }
 
@@ -110,10 +110,10 @@ static void wt_status_print_other_header(struct wt_status *s,
 					 const char *how)
 {
 	const char *c = color(WT_STATUS_HEADER, s);
-	color_fprintf_ln(s->fp, c, "# %s files:", what);
+	color_fprintf_ln(s->fp, c, _("# %s files:"), what);
 	if (!advice_status_hints)
 		return;
-	color_fprintf_ln(s->fp, c, "#   (use \"git %s <file>...\" to include in what will be committed)", how);
+	color_fprintf_ln(s->fp, c, _("#   (use \"git %s <file>...\" to include in what will be committed)"), how);
 	color_fprintf_ln(s->fp, c, "#");
 }
 
@@ -130,18 +130,18 @@ static void wt_status_print_unmerged_data(struct wt_status *s,
 	const char *c = color(WT_STATUS_UNMERGED, s);
 	struct wt_status_change_data *d = it->util;
 	struct strbuf onebuf = STRBUF_INIT;
-	const char *one, *how = "bug";
+	const char *one, *how = _("bug");
 
 	one = quote_path(it->string, -1, &onebuf, s->prefix);
 	color_fprintf(s->fp, color(WT_STATUS_HEADER, s), "#\t");
 	switch (d->stagemask) {
-	case 1: how = "both deleted:"; break;
-	case 2: how = "added by us:"; break;
-	case 3: how = "deleted by them:"; break;
-	case 4: how = "added by them:"; break;
-	case 5: how = "deleted by us:"; break;
-	case 6: how = "both added:"; break;
-	case 7: how = "both modified:"; break;
+	case 1: how = _("both deleted:"); break;
+	case 2: how = _("added by us:"); break;
+	case 3: how = _("deleted by them:"); break;
+	case 4: how = _("added by them:"); break;
+	case 5: how = _("deleted by us:"); break;
+	case 6: how = _("both added:"); break;
+	case 7: how = _("both modified:"); break;
 	}
 	color_fprintf(s->fp, c, "%-20s%s\n", how, one);
 	strbuf_release(&onebuf);
@@ -171,11 +171,11 @@ static void wt_status_print_change_data(struct wt_status *s,
 		if (d->new_submodule_commits || d->dirty_submodule) {
 			strbuf_addstr(&extra, " (");
 			if (d->new_submodule_commits)
-				strbuf_addf(&extra, "new commits, ");
+				strbuf_addf(&extra, _("new commits, "));
 			if (d->dirty_submodule & DIRTY_SUBMODULE_MODIFIED)
-				strbuf_addf(&extra, "modified content, ");
+				strbuf_addf(&extra, _("modified content, "));
 			if (d->dirty_submodule & DIRTY_SUBMODULE_UNTRACKED)
-				strbuf_addf(&extra, "untracked content, ");
+				strbuf_addf(&extra, _("untracked content, "));
 			strbuf_setlen(&extra, extra.len - 2);
 			strbuf_addch(&extra, ')');
 		}
@@ -189,31 +189,31 @@ static void wt_status_print_change_data(struct wt_status *s,
 	color_fprintf(s->fp, color(WT_STATUS_HEADER, s), "#\t");
 	switch (status) {
 	case DIFF_STATUS_ADDED:
-		color_fprintf(s->fp, c, "new file:   %s", one);
+		color_fprintf(s->fp, c, _("new file:   %s"), one);
 		break;
 	case DIFF_STATUS_COPIED:
-		color_fprintf(s->fp, c, "copied:     %s -> %s", one, two);
+		color_fprintf(s->fp, c, _("copied:     %s -> %s"), one, two);
 		break;
 	case DIFF_STATUS_DELETED:
-		color_fprintf(s->fp, c, "deleted:    %s", one);
+		color_fprintf(s->fp, c, _("deleted:    %s"), one);
 		break;
 	case DIFF_STATUS_MODIFIED:
-		color_fprintf(s->fp, c, "modified:   %s", one);
+		color_fprintf(s->fp, c, _("modified:   %s"), one);
 		break;
 	case DIFF_STATUS_RENAMED:
 		color_fprintf(s->fp, c, "renamed:    %s -> %s", one, two);
 		break;
 	case DIFF_STATUS_TYPE_CHANGED:
-		color_fprintf(s->fp, c, "typechange: %s", one);
+		color_fprintf(s->fp, c, _("typechange: %s"), one);
 		break;
 	case DIFF_STATUS_UNKNOWN:
-		color_fprintf(s->fp, c, "unknown:    %s", one);
+		color_fprintf(s->fp, c, _("unknown:    %s"), one);
 		break;
 	case DIFF_STATUS_UNMERGED:
-		color_fprintf(s->fp, c, "unmerged:   %s", one);
+		color_fprintf(s->fp, c, _("unmerged:   %s"), one);
 		break;
 	default:
-		die("bug: unhandled diff status %c", status);
+		die(_("bug: unhandled diff status %c"), status);
 	}
 	if (extra.len) {
 		color_fprintf(s->fp, color(WT_STATUS_HEADER, s), "%s", extra.buf);
@@ -633,14 +633,14 @@ void wt_status_print(struct wt_status *s)
 	const char *branch_status_color = color(WT_STATUS_HEADER, s);
 
 	if (s->branch) {
-		const char *on_what = "On branch ";
+		const char *on_what = _("On branch ");
 		const char *branch_name = s->branch;
 		if (!prefixcmp(branch_name, "refs/heads/"))
 			branch_name += 11;
 		else if (!strcmp(branch_name, "HEAD")) {
 			branch_name = "";
 			branch_status_color = color(WT_STATUS_NOBRANCH, s);
-			on_what = "Not currently on any branch.";
+			on_what = _("Not currently on any branch.");
 		}
 		color_fprintf(s->fp, color(WT_STATUS_HEADER, s), "# ");
 		color_fprintf(s->fp, branch_status_color, "%s", on_what);
@@ -665,29 +665,29 @@ void wt_status_print(struct wt_status *s)
 		wt_status_print_submodule_summary(s, 1);  /* unstaged */
 	}
 	if (s->show_untracked_files) {
-		wt_status_print_other(s, &s->untracked, "Untracked", "add");
+		wt_status_print_other(s, &s->untracked, _("Untracked"), "add");
 		if (s->show_ignored_files)
-			wt_status_print_other(s, &s->ignored, "Ignored", "add -f");
+			wt_status_print_other(s, &s->ignored, _("Ignored"), "add -f");
 	} else if (s->commitable)
-		fprintf(s->fp, "# Untracked files not listed%s\n",
+		fprintf(s->fp, _("# Untracked files not listed%s\n"),
 			advice_status_hints
-			? " (use -u option to show untracked files)" : "");
+			? _(" (use -u option to show untracked files)") : "");
 
 	if (s->verbose)
 		wt_status_print_verbose(s);
 	if (!s->commitable) {
 		if (s->amend)
-			fprintf(s->fp, "# No changes\n");
+			fprintf(s->fp, _("# No changes\n"));
 		else if (s->nowarn)
 			; /* nothing */
 		else if (s->workdir_dirty)
-			printf("no changes added to commit%s\n",
+			printf(_("no changes added to commit%s\n"),
 				advice_status_hints
-				? " (use \"git add\" and/or \"git commit -a\")" : "");
+				? _(" (use \"git add\" and/or \"git commit -a\")") : "");
 		else if (s->untracked.nr)
-			printf("nothing added to commit but untracked files present%s\n",
+			printf(_("nothing added to commit but untracked files present%s\n"),
 				advice_status_hints
-				? " (use \"git add\" to track)" : "");
+				? _(" (use \"git add\" to track)") : "");
 		else if (s->is_initial)
 			printf("nothing to commit%s\n", advice_status_hints
 				? " (create/copy files and use \"git add\" to track)" : "");
-- 
1.7.2.3
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 200 of 222 in “No-op C gettext wrappers”
  1. 00/72 No-op C gettext wrappersÆvar Arnfjörð Bjarmason, Feb 19, 2011
  2. 01/72 gettext.h: add no-op _() and N_() wrappersÆvar Arnfjörð Bjarmason, Feb 19, 2011
  3. Jonathan NiederFeb 20, 2011
  4. Erik Faye-LundFeb 20, 2011
  5. Jonathan NiederFeb 20, 2011
  6. Ævar Arnfjörð BjarmasonFeb 20, 2011
  7. Jonathan NiederFeb 20, 2011
  8. 02/72 cache.h: include gettext.hÆvar Arnfjörð Bjarmason, Feb 19, 2011
  9. 03/72 t/test-lib.sh: add always-set NO_GETTEXT_POISON prerequisiteÆvar Arnfjörð Bjarmason, Feb 19, 2011
  10. Jonathan NiederFeb 20, 2011
  11. Ævar Arnfjörð BjarmasonFeb 20, 2011
  12. Jonathan NiederFeb 20, 2011
  13. Ævar Arnfjörð BjarmasonFeb 20, 2011
  14. Jonathan NiederFeb 20, 2011
  15. Ævar Arnfjörð BjarmasonFeb 20, 2011
  16. Jonathan NiederFeb 20, 2011
  17. Junio C HamanoFeb 21, 2011
  18. 04/72 gettextize: git-init basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  19. Jonathan NiederFeb 20, 2011
  20. 05/72 gettextize: git-init "Initialized [...] repository" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  21. 06/72 gettextize: git-clone basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  22. 07/72 gettextize: git-clone "Cloning into" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  23. Jonathan NiederFeb 21, 2011
  24. 08/72 gettextize: git-add basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  25. 09/72 gettextize: git-add "no files added" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  26. 10/72 gettextize: git-add "Use -f if you really want" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  27. 11/72 gettextize: git-add "pathspec [...] did not match" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  28. 12/72 gettextize: git-add "remove '%s'" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  29. 13/72 gettextize: git-add refresh_index messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  30. 14/72 gettextize: git-branch basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  31. 15/72 gettextize: git-branch "remote branch '%s' not found" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  32. 16/72 gettextize: git-branch "Deleted branch [...]" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  33. 17/72 gettextize: git-branch "git branch -v" messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  34. 18/72 gettextize: git-branch "(no branch)" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  35. 19/72 gettextize: git-checkout basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  36. 20/72 gettextize: git-checkout: our/their version messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  37. 21/72 gettextize: git-checkout describe_detached_head messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  38. 22/72 gettextize: git-checkout "HEAD is now at" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  39. 23/72 gettextize: git-checkout "Switched to a .. branch" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  40. 24/72 gettextize: git-commit basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  41. 25/72 gettextize: git-commit "middle of a merge" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  42. 26/72 gettextize: git-commit formatting messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  43. 27/72 gettextize: git-commit print_summary messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  44. 28/72 gettextize: git-commit "enter the commit message" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  45. 29/72 gettextize: git-commit advice messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  46. 30/72 gettextize: git-diff basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  47. 31/72 gettextize: git-fetch basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  48. 32/72 gettextize: git-fetch formatting messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  49. 33/72 gettextize: git-fetch update_local_ref messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  50. 34/72 gettextize: git-fetch split up "(non-fast-forward)" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  51. 35/72 gettextize: git-grep basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  52. 36/72 gettextize: git-grep "--open-files-in-pager" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  53. 37/72 gettextize: git-log basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  54. 38/72 gettextize: git-log "--OPT does not make sense" messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  55. 39/72 gettextize: git-merge basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  56. 40/72 gettextize: git-merge "Updating %s..%s" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  57. 41/72 gettextize: git-merge "You have not concluded your merge" messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  58. 42/72 gettextize: git-merge "Wonderful" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  59. 43/72 gettextize: git-mv basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  60. 44/72 gettextize: git-mv "bad" messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  61. 45/72 gettextize: git-rm basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  62. 46/72 gettextize: git-reset basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  63. 47/72 gettextize: git-reset reset_type_names messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  64. 48/72 gettextize: git-reset "Unstaged changes after reset" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  65. 49/72 gettextize: git-tag basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  66. 50/72 gettextize: git-tag tag_template messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  67. 51/72 gettextize: git-push basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  68. 52/72 gettextize: git-push "prevent you from losing" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  69. 53/72 gettextize: git-status basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  70. 54/72 gettextize: git-status "nothing to commit" messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  71. 55/72 gettextize: git-status shortstatus messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  72. 56/72 gettextize: git-status "Changes to be committed" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  73. 57/72 gettextize: git-status "Initial commit" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  74. 58/72 gettextize: git-status "renamed: " messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  75. 59/72 gettextize: git-archive basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  76. 60/72 gettextize: git-bundle basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  77. 61/72 gettextize: git-clean basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  78. 62/72 gettextize: git-clean clean.requireForce messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  79. 63/72 gettextize: git-describe basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  80. 64/72 gettextize: git-gc basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  81. 65/72 gettextize: git-gc "Auto packing the repository" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  82. 66/72 gettextize: git-notes basic commandsÆvar Arnfjörð Bjarmason, Feb 19, 2011
  83. 67/72 gettextize: git-notes GIT_NOTES_REWRITE_MODE error messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  84. 68/72 gettextize: git-revert basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  85. 69/72 gettextize: git-revert "Your local changes" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  86. 70/72 gettextize: git-revert literal "me" messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  87. 71/72 gettextize: git-revert split up "could not revert/apply" messageÆvar Arnfjörð Bjarmason, Feb 19, 2011
  88. 72/72 gettextize: git-shortlog basic messagesÆvar Arnfjörð Bjarmason, Feb 19, 2011
  89. 0/3 No-op C gettext wrappersJonathan Nieder, Feb 21, 2011
  90. 1/3 i18n: add no-op _() and N_() wrappersJonathan Nieder, Feb 21, 2011
  91. 2/3 tests: add GETTEXT_POISON to simulate unfriendly translatorJonathan Nieder, Feb 21, 2011
  92. 3/3 tests: let GETTEXT_POISON be disabled at run timeJonathan Nieder, Feb 21, 2011
  93. 00/15 Mark "init", "clone", and "add" output for translationJonathan Nieder, Feb 21, 2011
  94. 01/15 i18n: add no-op _() and N_() wrappersJonathan Nieder, Feb 21, 2011
  95. 02/15 tests: add GETTEXT_POISON to simulate unfriendly translatorJonathan Nieder, Feb 21, 2011
  96. Ævar Arnfjörð BjarmasonFeb 21, 2011
  97. Jonathan NiederFeb 21, 2011
  98. 03/15 i18n: do not poison translations unless GIT_GETTEXT_POISON envvar is setJonathan Nieder, Feb 21, 2011
  99. 04/15 Makefile: "pot" target to extract messages marked for translationJonathan Nieder, Feb 21, 2011
  100. Ævar Arnfjörð BjarmasonFeb 21, 2011
  101. Jonathan NiederFeb 21, 2011
  102. Ævar Arnfjörð BjarmasonFeb 21, 2011
  103. 05/15 init: mark basic messages for translationJonathan Nieder, Feb 21, 2011
  104. 06/15 init: mark "Initialized [...] repository" for translationJonathan Nieder, Feb 21, 2011
  105. 07/15 clone: mark basic messages for translationJonathan Nieder, Feb 21, 2011
  106. 08/15 clone: split "Cloning into" message into twoJonathan Nieder, Feb 21, 2011
  107. 09/15 clone: mark "Cloning into" message for translationJonathan Nieder, Feb 21, 2011
  108. 10/15 add: mark basic messages for translationJonathan Nieder, Feb 21, 2011
  109. 11/15 add: mark "The following paths are ignored" for translationJonathan Nieder, Feb 21, 2011
  110. 12/15 add: mark "did not match any files" for translationJonathan Nieder, Feb 21, 2011
  111. 13/15 add -u --verbose: mark "remove '%s'" for translationJonathan Nieder, Feb 21, 2011
  112. 14/15 update-index --refresh --porcelain: add missing constJonathan Nieder, Feb 21, 2011
  113. 15/15 add --refresh --verbose: mark "Unstaged changes" heading for translationJonathan Nieder, Feb 21, 2011
  114. Ævar Arnfjörð BjarmasonFeb 21, 2011
  115. Junio C HamanoFeb 22, 2011
  116. Ævar Arnfjörð BjarmasonFeb 22, 2011
  117. Junio C HamanoFeb 22, 2011
  118. 00/73 No-op gettextize core Git C programsÆvar Arnfjörð Bjarmason, Feb 22, 2011
  119. Junio C HamanoFeb 23, 2011
  120. Junio C HamanoFeb 23, 2011
  121. Ævar Arnfjörð BjarmasonFeb 23, 2011
  122. 01/73 gettext: add no-op _() and N_() wrappersÆvar Arnfjörð Bjarmason, Feb 22, 2011
  123. 02/73 gettext tests: add GETTEXT_POISON to simulate unfriendly translatorÆvar Arnfjörð Bjarmason, Feb 22, 2011
  124. Jonathan NiederFeb 25, 2011
  125. Junio C HamanoFeb 25, 2011
  126. Ævar Arnfjörð BjarmasonFeb 25, 2011
  127. 03/73 gettext: do not poison translations unless GIT_GETTEXT_POISON envvar is setÆvar Arnfjörð Bjarmason, Feb 22, 2011
  128. 04/73 Makefile: "pot" target to extract messages marked for translationÆvar Arnfjörð Bjarmason, Feb 22, 2011
  129. Jonathan NiederFeb 25, 2011
  130. Ævar Arnfjörð BjarmasonFeb 25, 2011
  131. Jonathan NiederFeb 25, 2011
  132. Junio C HamanoFeb 25, 2011
  133. Jonathan NiederFeb 25, 2011
  134. 05/73 gettextize: git-init basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  135. 06/73 gettextize: git-init "Initialized [...] repository" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  136. 07/73 gettextize: git-clone basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  137. 08/73 gettextize: git-clone "Cloning into" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  138. 09/73 gettextize: git-clone "Cloning into" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  139. 10/73 gettextize: git-add basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  140. 11/73 gettextize: git-add "The following paths are ignored" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  141. 12/73 gettextize: git-add "did not match any files" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  142. 13/73 gettextize: git-add "remove '%s'" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  143. 14/73 gettextize: git-add "Unstaged changes" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  144. 15/73 gettextize: git-branch basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  145. 16/73 gettextize: git-branch "remote branch '%s' not found" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  146. Piotr KrukowieckiFeb 27, 2011
  147. 17/73 gettextize: git-branch "Deleted branch [...]" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  148. Jonathan NiederFeb 25, 2011
  149. Ævar Arnfjörð BjarmasonFeb 25, 2011
  150. Jonathan NiederFeb 25, 2011
  151. 18/73 gettextize: git-branch "git branch -v" messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  152. Jonathan NiederFeb 25, 2011
  153. 19/73 gettextize: git-branch "(no branch)" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  154. 20/73 gettextize: git-checkout basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  155. 21/73 gettextize: git-checkout: our/their version messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  156. 22/73 gettextize: git-checkout describe_detached_head messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  157. 23/73 gettextize: git-checkout "HEAD is now at" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  158. Jonathan NiederFeb 25, 2011
  159. 24/73 gettextize: git-checkout "Switched to a .. branch" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  160. Jonathan NiederFeb 25, 2011
  161. Junio C HamanoFeb 25, 2011
  162. Ævar Arnfjörð BjarmasonFeb 25, 2011
  163. Junio C HamanoFeb 25, 2011
  164. Junio C HamanoFeb 26, 2011
  165. 25/73 gettextize: git-commit basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  166. 26/73 gettextize: git-commit "middle of a merge" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  167. 27/73 gettextize: git-commit formatting messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  168. commit: error out for missing commit message templateJonathan Nieder, Feb 25, 2011
  169. Junio C HamanoFeb 25, 2011
  170. Jonathan NiederFeb 25, 2011
  171. Junio C HamanoFeb 25, 2011
  172. Ævar Arnfjörð BjarmasonFeb 25, 2011
  173. Jonathan NiederFeb 25, 2011
  174. 28/73 gettextize: git-commit print_summary messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  175. 29/73 gettextize: git-commit "enter the commit message" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  176. 30/73 gettextize: git-commit advice messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  177. 31/73 gettextize: git-diff basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  178. 32/73 gettextize: git-fetch basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  179. 33/73 gettextize: git-fetch formatting messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  180. 34/73 gettextize: git-fetch update_local_ref messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  181. 35/73 gettextize: git-fetch split up "(non-fast-forward)" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  182. 36/73 gettextize: git-grep basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  183. 37/73 gettextize: git-grep "--open-files-in-pager" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  184. 38/73 gettextize: git-log basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  185. 39/73 gettextize: git-log "--OPT does not make sense" messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  186. 40/73 gettextize: git-merge basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  187. 41/73 gettextize: git-merge "Updating %s..%s" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  188. 42/73 gettextize: git-merge "You have not concluded your merge" messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  189. 43/73 gettextize: git-merge "Wonderful" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  190. 44/73 gettextize: git-mv basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  191. 45/73 gettextize: git-mv "bad" messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  192. 46/73 gettextize: git-rm basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  193. 47/73 gettextize: git-reset basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  194. 48/73 gettextize: git-reset reset_type_names messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  195. 49/73 gettextize: git-reset "Unstaged changes after reset" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  196. 50/73 gettextize: git-tag basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  197. 51/73 gettextize: git-tag tag_template messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  198. 52/73 gettextize: git-push basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  199. 53/73 gettextize: git-push "prevent you from losing" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  200. 54/73 gettextize: git-status basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  201. 55/73 gettextize: git-status "nothing to commit" messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  202. 56/73 gettextize: git-status shortstatus messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  203. 57/73 gettextize: git-status "Changes to be committed" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  204. 58/73 gettextize: git-status "Initial commit" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  205. 59/73 gettextize: git-status "renamed: " messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  206. 60/73 gettextize: git-archive basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  207. 61/73 gettextize: git-bundle basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  208. 62/73 gettextize: git-clean basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  209. 63/73 gettextize: git-clean clean.requireForce messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  210. 64/73 gettextize: git-describe basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  211. Jakub NarebskiFeb 26, 2011
  212. Junio C HamanoFeb 26, 2011
  213. Ævar Arnfjörð BjarmasonFeb 26, 2011
  214. 65/73 gettextize: git-gc basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  215. 66/73 gettextize: git-gc "Auto packing the repository" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  216. 67/73 gettextize: git-notes basic commandsÆvar Arnfjörð Bjarmason, Feb 22, 2011
  217. 68/73 gettextize: git-notes GIT_NOTES_REWRITE_MODE error messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  218. 69/73 gettextize: git-revert basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  219. 70/73 gettextize: git-revert "Your local changes" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  220. 71/73 gettextize: git-revert literal "me" messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011
  221. 72/73 gettextize: git-revert split up "could not revert/apply" messageÆvar Arnfjörð Bjarmason, Feb 22, 2011
  222. 73/73 gettextize: git-shortlog basic messagesÆvar Arnfjörð Bjarmason, Feb 22, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.