Skip to contentSkip to conversation

unpack-trees: fix grammar for untracked files in directories

PATCH In review Stefan Beller 2 participants 2 messages Dec 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unpack-trees: fix grammar for untracked files in directories

---

This was noticed by David when reviewing the submodule checkout series, though rolling this as an independent fix is better :)

Thanks,
Stefan

 t/t7609-merge-co-error-msgs.sh | 2 +-
 unpack-trees.c                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
t/t7609-merge-co-error-msgs.sh +1 -1
index f80bdb81e1..e90413204e 100755
@@ -105,7 +105,7 @@ test_expect_success 'not uptodate file porcelain checkout error' '
 '
 
 cat >expect <<\EOF
-error: Updating the following directories would lose untracked files in it:
+error: Updating the following directories would lose untracked files in them:
 	rep
 	rep2
 
unpack-trees.c +1 -1
index ea6bdd20e0..7a6df99d10 100644
@@ -78,7 +78,7 @@ void setup_unpack_trees_porcelain(struct unpack_trees_options *opts,
 		xstrfmt(msg, cmd, cmd);
 
 	msgs[ERROR_NOT_UPTODATE_DIR] =
-		_("Updating the following directories would lose untracked files in it:\n%s");
+		_("Updating the following directories would lose untracked files in them:\n%s");
 
 	if (!strcmp(cmd, "checkout"))
 		msg = advice_commit_before_merge
Signature · 1 line
2.10.2.613.g22f2156
#1 lore raw

LGTM.

Quoted 57 lines

-----Original Message-----
From: Stefan Beller [mailto:[email protected]]
Sent: Friday, December 02, 2016 2:18 PM
To: [email protected]
Cc: [email protected]; David Turner; Stefan Beller
Subject: [PATCH] unpack-trees: fix grammar for untracked files in directories

---

This was noticed by David when reviewing the submodule checkout series, though rolling this as an independent fix is better :)

Thanks,
Stefan

 t/t7609-merge-co-error-msgs.sh | 2 +-
 unpack-trees.c                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
t/t7609-merge-co-error- renamed from t/t7609-merge-co-error-msgs.sh +0 -0

msgs.sh index f80bdb81e1..e90413204e 100755

t/t7609-merge-co-error-msgs.sh +0 -0
@@ -105,7 +105,7 @@ test_expect_success 'not uptodate file porcelain

checkout error' '
'

cat >expect <<\EOF
-error: Updating the following directories would lose untracked files in it:
+error: Updating the following directories would lose untracked files in them:

t/t7609-merge-co-error-msgs.sh +0 -0
 	rep
 	rep2
unpack-trees.c index ea6bdd20e0..7a6df99d10 renamed from unpack-trees.c +0 -0

100644

unpack-trees.c +1 -1
@@ -78,7 +78,7 @@ void setup_unpack_trees_porcelain(struct
 unpack_trees_options *opts,
 		xstrfmt(msg, cmd, cmd);
 
 	msgs[ERROR_NOT_UPTODATE_DIR] =
-		_("Updating the following directories would lose untracked
 files in it:\n%s");
+		_("Updating the following directories would lose untracked

files in

unpack-trees.c +1 -1
+them:\n%s");
 
 	if (!strcmp(cmd, "checkout"))
 		msg = advice_commit_before_merge
--

2.10.2.613.g22f2156