[PATCH 0/3] short syntaxes for 'git stash'
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Aug 18, 2009, 21:38 UTC
- Message-ID
- <1250631523-10524-1-git-send-email-Matthieu.Moy@imag.fr>
- In-Reply-To
- <7vbpmcc1sc.fsf@alter.siamese.dyndns.org>
This small patch serie is based on the following commit in pu:
dda1f2a Implement 'git stash save --patch'
It is meant to replace two commits already there:
ea41cfc Make 'git stash -k' a short form for 'git stash save --keep-index' f300fab DWIM 'git stash save -p' for 'git stash -p'
The first (git stash -k) has the drawback of forcing one to use one and only one option when the 'save' command is ommited. My approach is mostly based on the simple hack:
+case "$1" in + -*) + set "save" "$@" + ;; +esac +
and accepts an arbitrary number of options.
The second (DWIM git stash save -p) becomes unnecessary afterwards.