contrib: Avoid redundant 'git diff' in prepare-commit-msg hook
authorJonathan Wakely <jwakely@redhat.com>
Thu, 11 Jun 2020 07:57:58 +0000 (09:57 +0200)
committerMartin Liska <mliska@suse.cz>
Thu, 11 Jun 2020 07:57:58 +0000 (09:57 +0200)
commit9aadfdd650bc32150c9800b73fb3e5ac83fc5a72
treef58e3d1c1a5e7cba64820da64f94eb6c491eb5ec
parent656e363bccc1926b223eb78962338d638ba72d32
contrib: Avoid redundant 'git diff' in prepare-commit-msg hook

contrib/ChangeLog:

* prepare-commit-msg: Use 'tee' to save the diff to a file
instead of running 'git diff' twice.
contrib/prepare-commit-msg