summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a9c3fe)
raw | patch | inline | side by side (parent: 2a9c3fe)
author | Linus Torvalds <torvalds@evo.osdl.org> | |
Tue, 19 Jul 2005 11:20:39 +0000 (07:20 -0400) | ||
committer | Linus Torvalds <torvalds@evo.osdl.org> | |
Tue, 19 Jul 2005 11:20:39 +0000 (07:20 -0400) |
This replaces
git-diff-files --name-only | xargs git-update-cache
git commit
with a new "--all" argument to "git commit".
git-diff-files --name-only | xargs git-update-cache
git commit
with a new "--all" argument to "git commit".
git-commit-script | patch | blob | history |
diff --git a/git-commit-script b/git-commit-script
index c6f8ee2b3df1a93bcf9b167b5fc5d3ee30381fd8..04d16ae92f6a5d1e36eac9901806faa20f309984 100755 (executable)
--- a/git-commit-script
+++ b/git-commit-script
die 'git commit [-m existing-commit] [<path>...]'
}
+files=()
while case "$#" in 0) break ;; esac
do
case "$1" in
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