Re: git and trailing whitespace
- From: Behdad Esfahbod <behdad behdad org>
- To: desktop-devel-list gnome org
- Subject: Re: git and trailing whitespace
- Date: Tue, 05 May 2009 17:06:09 -0400
On 05/05/2009 05:00 PM, Lennart Poettering wrote:
Anyway, Owen said he didn't want to fight this fight. I guess I can
understand that, and I don't really want to fight this fight
either. Nonetheless I think this would be good to have and the least I
can do is mentioning this on desktop-devel and asking for opinions. So
here I go.
Opinions?
The default git pre-commit scripts (disabled by default) has a check for that.
In cairo, we recommend enabling it (by way of chmod +x
.git/hooks/pre-commit), but with gtk-docs, it's necessary to turn that off at
times. Something to keep in mind.
I personally always do a "git diff" before commit, and look for red-background
blocks that represent trailing whitespace and fix them myself.
behdad
Lennart
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]