From 430a54c96a34b41d13370f64c78a8f3748027e42 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 29 Sep 2007 15:31:52 -0400 Subject: [PATCH] Fixed sde-commit to only show the diff of the changes on the index and to show files names $SDEROOT relative --- bin/sde-commit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/sde-commit b/bin/sde-commit index adf97b2..d4593e5 100755 --- a/bin/sde-commit +++ b/bin/sde-commit @@ -116,12 +116,12 @@ done ) # and finally move to the root of the working tree cd "$SDEROOT/$root" - + # cache stats and diff if [ ".git" ]; then # git status - git-diff-index -M --color --stat=80,65 HEAD > $tmpfile.status - git-diff-index -M --color -p HEAD > $tmpfile.diff + git-diff-index -M --color --cached --stat=80,65 HEAD > $tmpfile.status + git-diff-index -M --color --cached -p HEAD | sed -e "s,^\(.\[1m\|\)\(---\|\+\+\+\) [ab]/,\1\2 $root/," > $tmpfile.diff else echo_abort "$root: unknown version control system." fi