Re: tracking perms/ownership
From: Josh England <hidden>
Date: 2016-06-15 22:43:30
On Fri, 2007-08-24 at 13:37 -0700, Junio C Hamano wrote:
It would rather be more effective for the user action "I want to
change the ownership of foo.c to root" to cause a direct
manipulation of .gitattributes file. For this, we can add a
nice wrapper if there is a need, but the initial cut could be
just running "${EDITOR-${VISUAL-vi}} .gitattributes", nothing
more.
The user can say "git diff" to view .gitattributes changes, and
if that is what he wants (maybe he wants to do "git add -i" to
pick only the hunk about the ownership change for the next
commit), the change to .gitattributes can be committed.That sounds fine, and is certainly easier to implement. The only catch is that whatever wrapper is updating .gitattributes will have to walk the working tree doing lstat() calls, which seems redundant (and costly) to me. -JE