Merge branch 'jc/diff' into next

* jc/diff:
  diff --color: use $GIT_DIR/config
  git-commit: filter out log message lines only when editor was run.
  Rename safe_strncpy() to strlcpy().
  apply: replace NO_ACCURATE_DIFF with --inaccurate-eof runtime flag.
  Clean up diff.c
This commit is contained in:
Junio C Hamano
2006-06-25 00:39:25 -07:00
15 changed files with 162 additions and 73 deletions

View File

@@ -696,13 +696,18 @@ t)
fi
esac
sed -e '
/^diff --git a\/.*/{
s///
q
}
/^#/d
' "$GIT_DIR"/COMMIT_EDITMSG |
if test -z "$no_edit"
then
sed -e '
/^diff --git a\/.*/{
s///
q
}
/^#/d
' "$GIT_DIR"/COMMIT_EDITMSG
else
cat "$GIT_DIR"/COMMIT_EDITMSG
fi |
git-stripspace >"$GIT_DIR"/COMMIT_MSG
if cnt=`grep -v -i '^Signed-off-by' "$GIT_DIR"/COMMIT_MSG |