git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-reset HEAD --permissions-only
@ 2011-03-14 20:29 Neal Kreitzinger
  2011-03-15  1:32 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Neal Kreitzinger @ 2011-03-14 20:29 UTC (permalink / raw)
  To: git

Is there a way to only reset the file permissions of the working-tree to 
match HEAD file permissions without resetting the content of the files?

HEAD file permissions = the permissions of the objects in the object store.

I'm using the vendor branch method of the git-rm manpage (git ls-files -z | 
xargs -0 rm -f && tar xzf vendor-version.tar.gz && git add -A) and I want to 
discard the vendor's file permissions changes to existing files and reset 
them back to what they are in HEAD.

"existing files" = ALL files that already existed in the HEAD and are not 
"deleted" or "new" in the working-tree relative to the HEAD.
HEAD = before "rm"
Working-Tree = after the untar.

v/r,
Neal 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-17  6:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 20:29 git-reset HEAD --permissions-only Neal Kreitzinger
2011-03-15  1:32 ` Jeff King
2011-03-16  1:06   ` Neal Kreitzinger
2011-03-17  6:01     ` Jeff King

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