From: Johannes Sixt <johannes.sixt@telecom.at>
To: git@vger.kernel.org
Subject: cg-admin-rewritehist --tree-filter revives removed files
Date: Tue, 11 Apr 2006 21:26:39 +0200 [thread overview]
Message-ID: <200604112126.39365.johannes.sixt@telecom.at> (raw)
I ran this on a small project:
cg-admin-rewritehist --tree-filter ':' testbranch
Thereafter, the tree in testbranch has all files that had been removed in the
original history. I used cg-switch testbranch to check this.
The main loop in cg-admin-rewritehist does this (among others) for each commit
in the original history:
if [ "$filter_tree" ]; then
git-checkout-index -f -u -a
eval "$filter_tree"
git-diff-index -r $commit | cut -f 2- | tr '\n' '\0' | \
xargs -0 git-update-index --add --replace --remove
git-ls-files --others | tr '\n' '\0' | \
xargs -0 git-update-index --add --replace --remove
fi
Appearently, once files are checked out, they stay in the working directory
and are readded in all subsequent iterations if the current commit's tree
does not contain them.
I'm not proficient enough to fix this problem myself, so I hope for help from
the list.
Thanks,
-- Hannes
reply other threads:[~2006-04-11 19:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200604112126.39365.johannes.sixt@telecom.at \
--to=johannes.sixt@telecom.at \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox