Browse Source

Fixed sde-commit to only show the diff of the changes on the index and to show files names $SDEROOT relative

misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
430a54c96a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      bin/sde-commit

+ 3
- 3
bin/sde-commit

@ -116,12 +116,12 @@ done )
# and finally move to the root of the working tree # and finally move to the root of the working tree
cd "$SDEROOT/$root" cd "$SDEROOT/$root"
# cache stats and diff # cache stats and diff
if [ ".git" ]; then if [ ".git" ]; then
# git status # 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 else
echo_abort "$root: unknown version control system." echo_abort "$root: unknown version control system."
fi fi

Loading…
Cancel
Save