Hi Jim,

> Actually, I see trailing blank lines in any text file
> as an opportunity for unexpected merge conflicts, as
> one person adds or removes one of those oft-unnoticed lines,
> and someone else makes a conflicting change.

Conflicts generally occur at spots that are heavily modified,
such as the end of log files or the start of ChangeLog files.
For modules/* files, the last section is the 'Maintainer' section,
which rarely changes. Likewise for the end of ChangeLog files:
it does not change at all, usually.

> FYI, this change in behavior is the result of savannah upgrading to
> the latest version of git, whose git diff --check tests for that.

Ah, understood.

> Since I prefer that the hook continue to apply to all files
> for which I have a say, perhaps you'd like to itemize the files
> for which you want to allow trailing blank lines?

Yes. These should be: modules/**/* and **/ChangeLog*. I believe it
can be done by adding to .gitattributes a line
  ChangeLog* whitespace=-????
and to modules/.gitattributes a line
  * whitespace=-????
where ???? is the whitespace rule that triggers the error.

Bruno


Reply via email to