projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed3715
)
Let "git commit" take arguments for files to commit.
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Tue, 21 Jun 2005 04:20:41 +0000
(21:20 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Tue, 21 Jun 2005 04:20:41 +0000
(21:20 -0700)
It does a "git-update-cache" on the arguments, meaning that you can
commit files without doing a separate "git-update-cache". This commit
was done with
git commit git-commit-script
for example.
git-commit-script
patch
|
blob
|
history
diff --git
a/git-commit-script
b/git-commit-script
index
5e5c0cc
..
57f5333
100755
(executable)
--- a/
git-commit-script
+++ b/
git-commit-script
@@
-4,6
+4,7
@@
if [ ! -d $GIT_DIR ]; then
echo Not a git directory 1>&2
exit 1
fi
+git-update-cache -q --refresh -- "$@" || exit 1
PARENTS="-p HEAD"
if [ ! -r $GIT_DIR/HEAD ]; then
if [ -z "$(git-ls-files)" ]; then