2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-25 10:30:45 +08:00

prepare-commit-msg: Save diff if requested by user.

contrib/ChangeLog:

	* prepare-commit-msg: Save diff to a file if
	the GCC_GIT_DIFF_FILE variable is set.
This commit is contained in:
Martin Liska 2020-05-26 09:08:31 +02:00
parent c3a4169be9
commit 7b8ee33aff
No known key found for this signature in database
GPG Key ID: 4DC182DC0FA73785

@ -54,4 +54,9 @@ else
exit 0
fi
# Save diff to a file if requested.
if ! [ -z "$GCC_GIT_DIFF_FILE" ]; then
git $cmd > "$GCC_GIT_DIFF_FILE";
fi
git $cmd | git gcc-mklog -c "$COMMIT_MSG_FILE"