projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7d07fd
)
Allow customisable diff and use -p by default (#146981)
author
Paul Nasrat
<pnasrat@redhat.com>
Mon, 16 Apr 2007 11:42:56 +0000
(12:42 +0100)
committer
Paul Nasrat
<pnasrat@redhat.com>
Mon, 16 Apr 2007 11:42:56 +0000
(12:42 +0100)
scripts/gendiff
patch
|
blob
|
history
diff --git
a/scripts/gendiff
b/scripts/gendiff
index
de51c57
..
1abdcd0
100644
(file)
--- a/
scripts/gendiff
+++ b/
scripts/gendiff
@@
-6,14
+6,16
@@
exit 1
}
+: ${DIFF:=diff -p}
+
find $1 \( -name "*$2" -o -name ".*$2" \) -print |
while read f; do
U=-u
[ "`basename $f`" = "ChangeLog$2" ] && U=-U0
-#
diff
${U} $f `echo $f | sed s/$2\$//`
+#
${DIFF}
${U} $f `echo $f | sed s/$2\$//`
if [ -r "$f" ]; then
-
diff
${U} "${f}" "${f%$2}"
+
${DIFF}
${U} "${f}" "${f%$2}"
else
-
diff
${U} /dev/null "${f%$2}"
+
${DIFF}
${U} /dev/null "${f%$2}"
fi
done