mirror of
https://github.com/git/git.git
synced 2026-01-20 15:39:49 +00:00
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:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user