diff options
author | Thomas Gummerer <t.gummerer@gmail.com> | 2017-02-19 11:03:08 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-19 23:47:41 -0800 |
commit | f5727e26e44dbbf564034d3993d4d2f65dacd6fb (patch) | |
tree | 70088d2b9eb37ec83f757886bf69c1e8cc08d3fe /Documentation | |
parent | 20a7e06172fe054eac5a2f48932feb5ff5074919 (diff) | |
download | git-f5727e26e44dbbf564034d3993d4d2f65dacd6fb.tar.gz git-f5727e26e44dbbf564034d3993d4d2f65dacd6fb.tar.xz |
stash: introduce push verb
Introduce a new git stash push verb in addition to git stash save. The
push verb is used to transition from the current command line arguments
to a more conventional way, in which the message is given as an argument
to the -m option.
This allows us to have pathspecs at the end of the command line
arguments like other Git commands do, so that the user can say which
subset of paths to stash (and leave others behind).
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-stash.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt index 2e9e344cd..d240df4af 100644 --- a/Documentation/git-stash.txt +++ b/Documentation/git-stash.txt @@ -15,6 +15,8 @@ SYNOPSIS 'git stash' branch <branchname> [<stash>] 'git stash' [save [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet] [-u|--include-untracked] [-a|--all] [<message>]] +'git stash' push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet] + [-u|--include-untracked] [-a|--all] [-m|--message <message>]] 'git stash' clear 'git stash' create [<message>] 'git stash' store [-m|--message <message>] [-q|--quiet] <commit> @@ -46,6 +48,7 @@ OPTIONS ------- save [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] [<message>]:: +push [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] [-m|--message <message>]:: Save your local modifications to a new 'stash' and roll them back to HEAD (in the working tree and in the index). |