|
@ -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 |
|
|