mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
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.
This commit is contained in:
parent
0ed3715ffc
commit
0795495388
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue