From: david@lang.hm
To: Steffen Prohaska <prohaska@zib.de>
Cc: git@vger.kernel.org
Subject: Re: .gittattributes handling has deficiencies
Date: Sun, 21 Oct 2007 10:09:35 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0710211007430.4818@asgard> (raw)
In-Reply-To: <B61AE1A9-E983-4ACE-BF71-8FDC113A4F34@zib.de>
On Sun, 21 Oct 2007, Steffen Prohaska wrote:
> On Oct 21, 2007, at 11:19 AM, david@lang.hm wrote:
>
>>> But this is really hard to solve. We would need to compare
>>> attributes before and after for _all_ files that have attributes
>>> in one of the two commits and check if they changed. If so, we
>>> need to do a fresh checkout according to the new attributes.
>>
>> if you know that you will get the new .gitattributes if it changes, setup a
>> post-checkout hook to checkout everything if it has changed. it's far from
>> ideal, but it should be a good, safe, first approximation.
>
>
> That's not good enough. I'll stop using .gitattributes. I
> need to teach >40 devs how to use git on Windows. I only use
> features that work flawlessly. .gitattributes doesn't. It bit
> me twice now.
why would checking everything out if .gitattributes has changed not work?
I can see why _not_ doing so would cause problems, and I freely
acknowledge that this approach imposes a performance hit by checking
everything out twice, but I don't see how it would not be reliable.
David Lang
> Luckily, core.autocrlf works if you set it before the first
> checkout and never change it. This seems sufficient for me if
> all files that have mixed line endings are fixed right away.
>
> Steffen
next prev parent reply other threads:[~2007-10-21 17:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-21 8:48 .gittattributes handling has deficiencies Steffen Prohaska
2007-10-21 9:19 ` david
2007-10-21 10:27 ` Steffen Prohaska
2007-10-21 17:09 ` david [this message]
2007-10-21 17:25 ` Steffen Prohaska
2007-10-21 17:57 ` david
2007-10-21 20:21 ` Steffen Prohaska
2007-10-21 23:49 ` david
2007-10-22 0:05 ` david
2007-10-22 5:38 ` Steffen Prohaska
2007-10-22 5:01 ` Shawn O. Pearce
2007-10-22 5:45 ` Steffen Prohaska
2007-10-22 10:29 ` Johannes Schindelin
2007-10-22 13:04 ` Steffen Prohaska
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0710211007430.4818@asgard \
--to=david@lang.hm \
--cc=git@vger.kernel.org \
--cc=prohaska@zib.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).