diff options
author | Ramkumar Ramachandra <artagnon@gmail.com> | 2013-06-15 17:13:25 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-17 22:43:13 +0400 |
commit | bd514cada4bb1a396a58d408c3ec08526a8be742 (patch) | |
tree | 2d10955da70b92bfa297a853c3f0a62cbacf7577 /Documentation | |
parent | 0719f300870cb573dcb526c7ab0cdffc5ee54324 (diff) |
stash: introduce 'git stash store'
save_stash() contains the logic for doing two potentially independent
operations; the first is preparing the stash merge commit, and the
second is updating the stash ref/ reflog accordingly. While the first
operation is abstracted out into a create_stash() for callers to access
via 'git stash create', the second one is not. Fix this by factoring
out the logic for storing the stash into a store_stash() that callers
can access via 'git stash store'.
Like create, store is not intended for end user interactive use, but for
callers in other scripts. We can simplify the logic in the
rebase.autostash feature using this new subcommand.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-stash.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt index 632d4fbb0c..db7e803038 100644 --- a/Documentation/git-stash.txt +++ b/Documentation/git-stash.txt @@ -17,6 +17,7 @@ SYNOPSIS [-u|--include-untracked] [-a|--all] [<message>]] 'git stash' clear 'git stash' create [<message>] +'git stash' store [-m|--message <message>] [-q|--quiet] <commit> DESCRIPTION ----------- @@ -154,6 +155,12 @@ create:: This is intended to be useful for scripts. It is probably not the command you want to use; see "save" above. +store:: + + Store a given stash created via 'git stash create' (which is a + dangling merge commit) in the stash ref, updating the stash + reflog. This is intended to be useful for scripts. It is + probably not the command you want to use; see "save" above. DISCUSSION ---------- |