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