From: Linus Torvalds Date: Tue, 21 Jun 2005 04:20:41 +0000 (-0700) Subject: Let "git commit" take arguments for files to commit. X-Git-Tag: v0.99~225 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0795495388d703dc84110a9a7917dd6ec9516bb4;p=git.git 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. --- diff --git a/git-commit-script b/git-commit-script index 5e5c0ccb..57f5333d 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