When looking for new lines in diff output, grep for '^[>+]' instead of

'^>', in order to catch both normal and unified diffs.

Problem reported by:	volker at vwsoft dot com via -stable
MFC after:	3 days
This commit is contained in:
Colin Percival 2005-08-22 09:33:36 +00:00
parent f46417c577
commit d7883da19f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149366

View File

@ -43,7 +43,7 @@ check_diff() {
rc=0
if [ "$1" = "new_only" ]; then
shift
filter="grep '^>'"
filter="grep '^[>+]'"
else
filter="cat"
fi