[PATCH 0/9] Add --stage and --work options
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Aug 29, 2013, 18:14 UTC
- Message-ID
- <1377800080-5309-1-git-send-email-felipe.contreras@gmail.com>
- In-Reply-To
- <20130829180129.GA4880@nysa>
Hi,
Some commands (git diff) already have the --staged alias, this patch series document them, and do the same for the rest.
Also, add a --work (and --no-work) option, so that in addition to --stage, we can replace --cached in 'git apply'.
The old options remain unchanged.
Felipe Contreras (9): diff: document --staged grep: add --staged option rm: add --staged option stash: add --stage option to save stash: add --stage to pop and apply submodule: add --staged options apply: add --stage option apply: add --work, --no-work options completion: update --staged options
Documentation/git-apply.txt | 11 +++++++++-- Documentation/git-diff.txt | 4 ++-- Documentation/git-grep.txt | 5 ++++- Documentation/git-rm.txt | 5 ++++- Documentation/git-stash.txt | 14 +++++++------- Documentation/git-submodule.txt | 8 ++++++-- builtin/apply.c | 7 +++++++ builtin/grep.c | 2 ++ builtin/rm.c | 1 + contrib/completion/git-completion.bash | 10 +++++----- git-stash.sh | 12 +++++++++--- git-submodule.sh | 10 +++++----- 12 files changed, 61 insertions(+), 28 deletions(-)
-- 1.8.4-fc