Skip to content

Commit

Permalink
git-commit: pass explicit path to git-diff-files.
Browse files Browse the repository at this point in the history
When running "git commit" with explicit path arguments, allow it to
take directory name.  This makes "git commit Documentation/" to commit
everything that is changed under Documentation/ directory.

Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Junio C Hamano committed Aug 17, 2005
1 parent 86947d7 commit 22cff6a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions git-commit-script
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,14 @@ esac
case "$all" in
t)
git-diff-files --name-only -z |
xargs -0 git-update-cache -q -- || exit 1 ;;
esac
git-update-cache -q --refresh -- "$@" || exit 1
xargs -0 git-update-cache -q --
;;
*)
git-diff-files --name-only -z "$@" |
xargs -0 git-update-cache -q --
;;
esac || exit 1
git-update-cache -q --refresh || exit 1

case "$verify" in
t)
Expand Down

0 comments on commit 22cff6a

Please sign in to comment.