提交 f0b32737 编写于 作者: L Linus Torvalds

Add "git commit --all" since everybody seems to want it.

This replaces

	git-diff-files --name-only | xargs git-update-cache
	git commit

with a new "--all" argument to "git commit".
上级 2a9c3fe8
......@@ -9,6 +9,7 @@ usage () {
die 'git commit [-m existing-commit] [<path>...]'
}
files=()
while case "$#" in 0) break ;; esac
do
case "$1" in
......@@ -19,13 +20,16 @@ do
exit ;;
esac
;;
--all)
files=($(git-diff-files --name-only))\
;;
*) break
;;
esac
shift
done
git-update-cache -q --refresh -- "$@" || exit 1
git-update-cache -q --refresh -- "$@" "${files[@]}" || exit 1
PARENTS="-p HEAD"
if [ ! -r "$GIT_DIR/HEAD" ]; then
if [ -z "$(git-ls-files)" ]; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册