coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] maint: fix alphabetical order in .gitignore


From: Pádraig Brady
Subject: Re: [PATCH] maint: fix alphabetical order in .gitignore
Date: Wed, 02 Jan 2013 12:39:36 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

On 01/02/2013 12:18 PM, Bernhard Voelker wrote:
Hi Padraig,

On 01/02/2013 12:37 PM, Pádraig Brady wrote:
On 01/02/2013 10:46 AM, Bernhard Voelker wrote:
Sometimes, the file .gitignore shows up as changed.
It seems that Git wants to keep it in alphabetical order.

Is your git auto updating .gitignore?
It would be nice to know what's going on exactly.

It seems so, but I don't know how/why - "git config -l" does
not show anything suspicious.

And I didn't find out when git it sorting that file
again. I played around with things like coverage, resetting
everything with "git clean -xdf" etc. but didn't see a
pattern when the sorting happens. The only thing I did
today which was different since playing around was the
"git pull" for Jim's recent change. After that, .gitignore
was changed again.

There are many google hits for "gitignore sort", and several
projects seem to have applied patches in the past to fix the
order again, so I'm not alone ... ;-)

I suppose if it was a persistent issue, one could
add a syntax check based on:

diff .gitignore <(LANG=C sort .gitignore)

I don't understand. It's not a syntax-check failure,
but rather simply ".gitignore" showing up upon "git status".

What's probably happening is that something is
auto inserting into .gitignore and thus resorting it.
I see insert_vc_ignore() in bootstrap for example.

If we added a new syntax-check to catch this issue,
then we'd not run into it again.

thanks,
Pádraig.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]