1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 09:36:16 +02:00

schhist/schhist2web: explicitly suppress diff in "git show"

Seems that recent versions of git always display it while older versions
only did, if using --pretty, when explicitly asked to do so.
This commit is contained in:
Werner Almesberger 2012-12-05 00:41:40 -03:00
parent 2334bd83f4
commit 9385ad0c87

View File

@ -67,7 +67,8 @@ EOF
echo "<PRE>"
( cd "$dir" && git show \
--pretty=format:"%aN <%aE>%n %ad%n%n %s" \
--quiet $next; ) | sed '/\(.\{'$CUTOFF'\}\).*/s//\1.../' |
--quiet $next; ) | sed '/^diff /Q' |
sed '/\(.\{'$CUTOFF'\}\).*/s//\1.../' |
sed 's/&/&amp;/g;s/</\&lt;/g;s/>/\&gt;/g' |
if [ -z "$SCHHIST_COMMIT_TEMPLATE" ]; then
cat