summaryrefslogtreecommitdiffstats
path: root/git-stash.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2011-05-11 20:09:24 +0000
committerJunio C Hamano <junio@kernel.org>2011-05-11 20:09:24 +0000
commit9eb5835b38fac6607b8de10e1caf540866d94632 (patch)
tree68c27c30d12648c1366a0a1cfcdc7a64692c49de /git-stash.txt
parent5f2627d81e2612a0dddd84a6160151a6780cb4a6 (diff)
downloadgit-htmldocs-9eb5835b38fac6607b8de10e1caf540866d94632.tar.gz
Autogenerated HTML docs for v1.7.5.1-249-gdbe9c
Diffstat (limited to 'git-stash.txt')
-rw-r--r--git-stash.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/git-stash.txt b/git-stash.txt
index 79abc38e5..15f051fa4 100644
--- a/git-stash.txt
+++ b/git-stash.txt
@@ -13,7 +13,7 @@ SYNOPSIS
'git stash' drop [-q|--quiet] [<stash>]
'git stash' ( pop | apply ) [--index] [-q|--quiet] [<stash>]
'git stash' branch <branchname> [<stash>]
-'git stash' [save [--patch] [-k|--[no-]keep-index] [-q|--quiet] [<message>]]
+'git stash' [save [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet] [<message>]]
'git stash' clear
'git stash' create
@@ -42,7 +42,7 @@ is also possible).
OPTIONS
-------
-save [--patch] [--[no-]keep-index] [-q|--quiet] [<message>]::
+save [-p|--patch] [--[no-]keep-index] [-q|--quiet] [<message>]::
Save your local modifications to a new 'stash', and run `git reset
--hard` to revert them. The <message> part is optional and gives
@@ -54,12 +54,13 @@ save [--patch] [--[no-]keep-index] [-q|--quiet] [<message>]::
If the `--keep-index` option is used, all changes already added to the
index are left intact.
+
-With `--patch`, you can interactively select hunks from in the diff
+With `--patch`, you can interactively select hunks from the diff
between HEAD and the working tree to be stashed. The stash entry is
constructed such that its index state is the same as the index state
of your repository, and its worktree contains only the changes you
selected interactively. The selected changes are then rolled back
-from your worktree.
+from your worktree. See the ``Interactive Mode'' section of
+linkgit:git-add[1] to learn how to operate the `\--patch` mode.
+
The `--patch` option implies `--keep-index`. You can use
`--no-keep-index` to override this.