Skip to content

Commit 8009d83

Browse files
moygitster
authored andcommitted
Better "Changed but not updated" message in git-status
Older Gits talked about "updating" a file to add its content to the index, but this terminology is confusing for new users. "to stage" is far more intuitive and already used in e.g. the "git stage" command name. Signed-off-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7ebee44 commit 8009d83

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

Documentation/gittutorial-2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ $ git status
373373
#
374374
# new file: closing.txt
375375
#
376-
# Changed but not updated:
376+
# Changes not staged for commit:
377377
# (use "git add <file>..." to update what will be committed)
378378
#
379379
# modified: file.txt

t/t7508-status.sh

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cat >expect <<\EOF
4444
#
4545
# new file: dir2/added
4646
#
47-
# Changed but not updated:
47+
# Changes not staged for commit:
4848
# (use "git add <file>..." to update what will be committed)
4949
# (use "git checkout -- <file>..." to discard changes in working directory)
5050
#
@@ -73,7 +73,7 @@ cat >expect <<\EOF
7373
# Changes to be committed:
7474
# new file: dir2/added
7575
#
76-
# Changed but not updated:
76+
# Changes not staged for commit:
7777
# modified: dir1/modified
7878
#
7979
# Untracked files:
@@ -140,7 +140,7 @@ cat >expect <<EOF
140140
#
141141
# new file: dir2/added
142142
#
143-
# Changed but not updated:
143+
# Changes not staged for commit:
144144
# (use "git add <file>..." to update what will be committed)
145145
# (use "git checkout -- <file>..." to discard changes in working directory)
146146
#
@@ -167,7 +167,7 @@ cat >expect <<EOF
167167
# Changes to be committed:
168168
# new file: dir2/added
169169
#
170-
# Changed but not updated:
170+
# Changes not staged for commit:
171171
# modified: dir1/modified
172172
#
173173
# Untracked files not listed
@@ -202,7 +202,7 @@ cat >expect <<EOF
202202
#
203203
# new file: dir2/added
204204
#
205-
# Changed but not updated:
205+
# Changes not staged for commit:
206206
# (use "git add <file>..." to update what will be committed)
207207
# (use "git checkout -- <file>..." to discard changes in working directory)
208208
#
@@ -260,7 +260,7 @@ cat >expect <<EOF
260260
#
261261
# new file: dir2/added
262262
#
263-
# Changed but not updated:
263+
# Changes not staged for commit:
264264
# (use "git add <file>..." to update what will be committed)
265265
# (use "git checkout -- <file>..." to discard changes in working directory)
266266
#
@@ -320,7 +320,7 @@ cat >expect <<\EOF
320320
#
321321
# new file: ../dir2/added
322322
#
323-
# Changed but not updated:
323+
# Changes not staged for commit:
324324
# (use "git add <file>..." to update what will be committed)
325325
# (use "git checkout -- <file>..." to discard changes in working directory)
326326
#
@@ -392,7 +392,7 @@ cat >expect <<\EOF
392392
#
393393
# <GREEN>new file: dir2/added<RESET>
394394
#
395-
# Changed but not updated:
395+
# Changes not staged for commit:
396396
# (use "git add <file>..." to update what will be committed)
397397
# (use "git checkout -- <file>..." to discard changes in working directory)
398398
#
@@ -521,7 +521,7 @@ cat >expect <<\EOF
521521
#
522522
# new file: dir2/added
523523
#
524-
# Changed but not updated:
524+
# Changes not staged for commit:
525525
# (use "git add <file>..." to update what will be committed)
526526
# (use "git checkout -- <file>..." to discard changes in working directory)
527527
#
@@ -614,7 +614,7 @@ cat >expect <<EOF
614614
# new file: dir2/added
615615
# new file: sm
616616
#
617-
# Changed but not updated:
617+
# Changes not staged for commit:
618618
# (use "git add <file>..." to update what will be committed)
619619
# (use "git checkout -- <file>..." to discard changes in working directory)
620620
#
@@ -673,7 +673,7 @@ cat >expect <<EOF
673673
# new file: dir2/added
674674
# new file: sm
675675
#
676-
# Changed but not updated:
676+
# Changes not staged for commit:
677677
# (use "git add <file>..." to update what will be committed)
678678
# (use "git checkout -- <file>..." to discard changes in working directory)
679679
#
@@ -718,7 +718,7 @@ test_expect_success 'status -s submodule summary' '
718718

719719
cat >expect <<EOF
720720
# On branch master
721-
# Changed but not updated:
721+
# Changes not staged for commit:
722722
# (use "git add <file>..." to update what will be committed)
723723
# (use "git checkout -- <file>..." to discard changes in working directory)
724724
#
@@ -766,7 +766,7 @@ cat >expect <<EOF
766766
# new file: dir2/added
767767
# new file: sm
768768
#
769-
# Changed but not updated:
769+
# Changes not staged for commit:
770770
# (use "git add <file>..." to update what will be committed)
771771
# (use "git checkout -- <file>..." to discard changes in working directory)
772772
#
@@ -819,7 +819,7 @@ cat > expect << EOF
819819
#
820820
# modified: sm
821821
#
822-
# Changed but not updated:
822+
# Changes not staged for commit:
823823
# (use "git add <file>..." to update what will be committed)
824824
# (use "git checkout -- <file>..." to discard changes in working directory)
825825
#
@@ -931,7 +931,7 @@ cat > expect << EOF
931931
#
932932
# modified: sm
933933
#
934-
# Changed but not updated:
934+
# Changes not staged for commit:
935935
# (use "git add <file>..." to update what will be committed)
936936
# (use "git checkout -- <file>..." to discard changes in working directory)
937937
# (commit or discard the untracked or modified content in submodules)
@@ -989,7 +989,7 @@ cat > expect << EOF
989989
#
990990
# modified: sm
991991
#
992-
# Changed but not updated:
992+
# Changes not staged for commit:
993993
# (use "git add <file>..." to update what will be committed)
994994
# (use "git checkout -- <file>..." to discard changes in working directory)
995995
#
@@ -1067,7 +1067,7 @@ test_expect_success ".git/config ignore=dirty doesn't suppress submodule summary
10671067

10681068
cat > expect << EOF
10691069
# On branch master
1070-
# Changed but not updated:
1070+
# Changes not staged for commit:
10711071
# (use "git add <file>..." to update what will be committed)
10721072
# (use "git checkout -- <file>..." to discard changes in working directory)
10731073
#

wt-status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static void wt_status_print_dirty_header(struct wt_status *s,
8888
{
8989
const char *c = color(WT_STATUS_HEADER, s);
9090

91-
color_fprintf_ln(s->fp, c, "# Changed but not updated:");
91+
color_fprintf_ln(s->fp, c, "# Changes not staged for commit:");
9292
if (!advice_status_hints)
9393
return;
9494
if (!has_deleted)

0 commit comments

Comments
 (0)