Re: Carrying over attributes when moving files

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Tuesday, March 30, 2010 - 9:05 pm

Jonathan Nieder <jrnieder@gmail.com> writes:


I know what you are getting at, but I think it cuts both ways.

I can well imagine that the build structure where "make && make install"
will go to old-files and new-files directories and install the contents
overlayed in the same destination, and .gitattributes may be being used as
a way to "fix" some aspect of "oldness" in old-files/ files until the
sources are fixed.  So an equally valid work sequence might be:

 	git mv old-files/some-file.html new-files/
	edit new-files/some-file.html
        git add new-files/some-file.html
 	git commit

in which case adding a new "some-file.html crlf" entry to .gitattributes
in new-files/ directory would be just _wrong_.

So I am not opposed to a mechanism to _let_ users makes a copy of an entry
that covers (or used to cover) one path to apply to another path that was
not covered by it, but doing it unconditionally would not be such a good
idea.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
`git check-attr' problems &amp; questions, Eli Barzilay, (Thu Mar 25, 8:57 pm)
Re: `git check-attr' problems &amp; questions, Jonathan Nieder, (Sat Mar 27, 6:42 pm)
Re: `git check-attr' problems &amp; questions, Eli Barzilay, (Mon Mar 29, 8:28 am)
[git] Re: `git check-attr' problems &amp; questions, Eli Barzilay, (Mon Mar 29, 9:09 am)
git check-attr in bare repositories, Jonathan Nieder, (Mon Mar 29, 4:15 pm)
Re: git check-attr in bare repositories, Eli Barzilay, (Mon Mar 29, 9:53 pm)
Re: git check-attr in bare repositories, Jonathan Nieder, (Tue Mar 30, 2:22 pm)
Carrying over attributes when moving files, Jonathan Nieder, (Tue Mar 30, 2:30 pm)
Re: git check-attr in bare repositories, Jakub Narebski, (Tue Mar 30, 2:39 pm)
Re: git check-attr in bare repositories, Eli Barzilay, (Tue Mar 30, 8:15 pm)
Re: Carrying over attributes when moving files, Eli Barzilay, (Tue Mar 30, 8:30 pm)
Re: Carrying over attributes when moving files, Junio C Hamano, (Tue Mar 30, 9:05 pm)