From: "Neal Kreitzinger" <neal@rsss.com>
To: git@vger.kernel.org
Subject: git-reset HEAD --permissions-only
Date: Mon, 14 Mar 2011 15:29:51 -0500 [thread overview]
Message-ID: <illts0$c6q$1@dough.gmane.org> (raw)
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
next reply other threads:[~2011-03-14 20:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-14 20:29 Neal Kreitzinger [this message]
2011-03-15 1:32 ` git-reset HEAD --permissions-only Jeff King
2011-03-16 1:06 ` Neal Kreitzinger
2011-03-17 6:01 ` Jeff King
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='illts0$c6q$1@dough.gmane.org' \
--to=neal@rsss.com \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.