|
@ -133,7 +133,7 @@ done ) |
|
|
cd "$SDEROOT/$root" |
|
|
cd "$SDEROOT/$root" |
|
|
|
|
|
|
|
|
# cache stats and diff |
|
|
# cache stats and diff |
|
|
if [ ".git" ]; then |
|
|
|
|
|
|
|
|
if [ -d ".git" ]; then |
|
|
# git status |
|
|
# git status |
|
|
git-diff-index -M --color --cached --stat=80,65 HEAD > $tmpfile.status |
|
|
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 |
|
|
git-diff-index -M --color --cached -p HEAD | sed -e "s,^\(.\[1m\|\)\(---\|\+\+\+\) [ab]/,\1\2 $root/," > $tmpfile.diff |
|
@ -144,7 +144,7 @@ if [ ".git" ]; then |
|
|
awk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile |
|
|
awk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile |
|
|
fi |
|
|
fi |
|
|
else |
|
|
else |
|
|
echo_abort "$root: unknown version control system." |
|
|
|
|
|
|
|
|
echo_abort 3 "$root: unknown version control system." |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ -s $tmpfile.diff -o -s $tmpfile.status ]; then |
|
|
if [ -s $tmpfile.diff -o -s $tmpfile.status ]; then |
|
|