projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3a4169
)
prepare-commit-msg: Save diff if requested by user.
author
Martin Liska
<mliska@suse.cz>
Tue, 26 May 2020 07:08:31 +0000
(09:08 +0200)
committer
Martin Liska
<mliska@suse.cz>
Wed, 27 May 2020 08:12:58 +0000
(10:12 +0200)
contrib/ChangeLog:
* prepare-commit-msg: Save diff to a file if
the GCC_GIT_DIFF_FILE variable is set.
contrib/prepare-commit-msg
patch
|
blob
|
history
diff --git
a/contrib/prepare-commit-msg
b/contrib/prepare-commit-msg
index
820dacc
..
fd59bfb
100755
(executable)
--- a/
contrib/prepare-commit-msg
+++ b/
contrib/prepare-commit-msg
@@
-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"