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: Bernhard Voelker
Subject: Re: [PATCH] maint: fix alphabetical order in .gitignore
Date: Wed, 02 Jan 2013 13:18:21 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

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".

Have a nice day,
Berny



reply via email to

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