summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 04:20:41 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 04:20:41 (GMT)
commit0795495388d703dc84110a9a7917dd6ec9516bb4 (patch)
treefff44be6135bcc2862b2dae94b09eaa07e33e2ab
parent0ed3715ffc97325a625e1e4ef44121d870b98679 (diff)
downloadgit-0795495388d703dc84110a9a7917dd6ec9516bb4.zip
git-0795495388d703dc84110a9a7917dd6ec9516bb4.tar.gz
git-0795495388d703dc84110a9a7917dd6ec9516bb4.tar.bz2
Let "git commit" take arguments for files to commit.
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.
-rwxr-xr-xgit-commit-script1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-commit-script b/git-commit-script
index 5e5c0cc..57f5333 100755
--- 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