Subject: bug#29197: 27.0.50; pre-commit checks for new files against "head"

From: Noam Postavsky <[email-masked]>
Date: Tue, 28 Aug 2018 08:21:11 -0400

tags 29197 fixed
close 29197
quit

Noam Postavsky <[email-masked]> writes:

> This seems fairly difficult to do while keeping in standard bourne shell
> syntax.  Not sure how to catch file names with whitespace.

Acually, it turns out that 'git diff' does escaping, so it's pretty
easy.

Done in emacs-26.

[1: fca935e4ab]: 2018-08-28 08:04:17 -0400
  ; Let pre-commit git hook check merged in changes (Bug#29197)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=fca935e4abe817130abb2676ec2f37b73e4f45f4