Skip to content

Commit 7a13f5a

Browse files
authored
Merge pull request #1143 from rpjday/topic/rpjday/interactive_staging
interactive staging: update prompts to include "[]" for shortcuts
2 parents 5dbc059 + 4e01022 commit 7a13f5a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

book/07-git-tools/sections/interactive-staging.asc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ $ git add -i
1616
3: unchanged +5/-1 lib/simplegit.rb
1717
1818
*** Commands ***
19-
1: status 2: update 3: revert 4: add untracked
20-
5: patch 6: diff 7: quit 8: help
19+
1: [s]tatus 2: [u]pdate 3: [r]evert 4: [a]dd untracked
20+
5: [p]atch 6: [d]iff 7: [q]uit 8: [h]elp
2121
What now>
2222
----
2323

@@ -61,8 +61,8 @@ Update>>
6161
updated 2 paths
6262
6363
*** Commands ***
64-
1: status 2: update 3: revert 4: add untracked
65-
5: patch 6: diff 7: quit 8: help
64+
1: [s]tatus 2: [u]pdate 3: [r]evert 4: [a]dd untracked
65+
5: [p]atch 6: [d]iff 7: [q]uit 8: [h]elp
6666
What now> 1
6767
staged unstaged path
6868
1: +0/-1 nothing TODO
@@ -76,8 +76,8 @@ If you want to unstage the `TODO` file at this point, you use the `3` or `r` (fo
7676
[source,console]
7777
----
7878
*** Commands ***
79-
1: status 2: update 3: revert 4: add untracked
80-
5: patch 6: diff 7: quit 8: help
79+
1: [s]tatus 2: [u]pdate 3: [r]evert 4: [a]dd untracked
80+
5: [p]atch 6: [d]iff 7: [q]uit 8: [h]elp
8181
What now> 3
8282
staged unstaged path
8383
1: +0/-1 nothing TODO
@@ -97,8 +97,8 @@ Looking at your Git status again, you can see that you’ve unstaged the `TODO`
9797
[source,console]
9898
----
9999
*** Commands ***
100-
1: status 2: update 3: revert 4: add untracked
101-
5: patch 6: diff 7: quit 8: help
100+
1: [s]tatus 2: [u]pdate 3: [r]evert 4: [a]dd untracked
101+
5: [p]atch 6: [d]iff 7: [q]uit 8: [h]elp
102102
What now> 1
103103
staged unstaged path
104104
1: unchanged +0/-1 TODO
@@ -113,8 +113,8 @@ This is much like specifying `git diff --cached` on the command line:
113113
[source,console]
114114
----
115115
*** Commands ***
116-
1: status 2: update 3: revert 4: add untracked
117-
5: patch 6: diff 7: quit 8: help
116+
1: [s]tatus 2: [u]pdate 3: [r]evert 4: [a]dd untracked
117+
5: [p]atch 6: [d]iff 7: [q]uit 8: [h]elp
118118
What now> 6
119119
staged unstaged path
120120
1: +1/-1 nothing index.html

0 commit comments

Comments
 (0)