summaryrefslogtreecommitdiff
path: root/git-diff-script
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-14 18:56:05 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-14 18:56:05 -0700
commit40d8cfe4117564e5520e8f4f953addaa94844476 (patch)
tree9dd2fb169a2d4a2c0f49bf9537cf9aa314614342 /git-diff-script
parent479346adc5ebb099121063d4c06da30093ed9b3b (diff)
downloadgit-40d8cfe4117564e5520e8f4f953addaa94844476.tar.gz
Trivial git script fixups
Fix permissions, and add trivial "reset" and "add" scripts. The "reset" script just resets the index back to head, while the "add" script is just a crutch for people used to do "cvs add".
Diffstat (limited to 'git-diff-script')
-rwxr-xr-xgit-diff-script6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-diff-script b/git-diff-script
index d70e8b9f29..ae1587121b 100755
--- a/git-diff-script
+++ b/git-diff-script
@@ -3,13 +3,13 @@ rev=($(git-rev-parse --revs-only "$@"))
flags=($(git-rev-parse --no-revs "$@"))
case "${#rev[*]}" in
0)
- git-diff-files -p "$@";;
+ git-diff-files -p -C "$@";;
1)
- git-diff-cache -p "$@";;
+ git-diff-cache -p -C "$@";;
2)
begin=$(echo "${rev[1]}" | tr -d '^')
end="${rev[0]}"
- git-diff-tree -p $flags $begin $end;;
+ git-diff-tree -p -C $flags $begin $end;;
*)
echo "I don't understand"
exit 1;;