Skip to content

Commit c105356

Browse files
escgitster
authored andcommitted
git-add.txt: document 'interactive.singlekey'
This is documented in the section about the 'Interactive Mode', rather than for the option '--patch', since this is the section is where people go to learn about '--patch'. Helped-by: Jeff King <[email protected]> Mentored-by: Junio C Hamano <[email protected]> Signed-off-by: Valentin Haenel <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 31be5d8 commit c105356

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Documentation/git-add.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ patch::
272272
This lets you choose one path out of a 'status' like selection.
273273
After choosing the path, it presents the diff between the index
274274
and the working tree file and asks you if you want to stage
275-
the change of each hunk. You can say:
275+
the change of each hunk. You can select one of the following
276+
options and type return:
276277

277278
y - stage this hunk
278279
n - do not stage this hunk
@@ -291,6 +292,9 @@ patch::
291292
+
292293
After deciding the fate for all hunks, if there is any hunk
293294
that was chosen, the index is updated with the selected hunks.
295+
+
296+
You can omit having to type return here, by setting the configuration
297+
variable `interactive.singlekey` to `true`.
294298

295299
diff::
296300

0 commit comments

Comments
 (0)