|
|
@ -143,6 +143,16 @@ if [ -d ".git" ]; then |
|
|
|
git-diff-index -M --cached -p HEAD | sed -e "s,^\(---\|\+\+\+\) [ab]/,\1 $root/," | |
|
|
|
awk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile |
|
|
|
fi |
|
|
|
elif [ -d ".svn" ]; then |
|
|
|
# svn status |
|
|
|
svn status -- $locations > $tmpfile.status |
|
|
|
svn diff -- $locations > $tmpfile.diff |
|
|
|
|
|
|
|
if [ -z "$logfile" ]; then |
|
|
|
logfile=$tmpfile.log |
|
|
|
cat $tmpfile.diff | sed -e "s,^\(---\|\+\+\+\) [ab]/,\1 $root/," | |
|
|
|
awk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile |
|
|
|
fi |
|
|
|
else |
|
|
|
echo_abort 3 "$root: unknown version control system." |
|
|
|
fi |
|
|
|