From: Johannes Sixt <j.sixt@viscovery.net>
To: Sergio Callegari <sergio.callegari@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Question about --tree-filter
Date: Thu, 05 Feb 2009 09:32:29 +0100 [thread overview]
Message-ID: <498AA41D.3000609@viscovery.net> (raw)
In-Reply-To: <4989FDC6.2080404@gmail.com>
[ Don't cull Cc list, please! ]
Sergio Callegari schrieb:
> And if I experiment filter-branch again, with exactly the same
> parameters, apparently some of the files that did not get the new blob
> in the beginning do... which looks completely weird.
I think I know what's going on. filter-branch has this code where the
tree-filter is applied:
git checkout-index -f -u -a ||
die "Could not checkout the index"
This command may take a while to complete, and at the end it writes the
index file. At this point:
(=) Some files may have the same timestamp as the index file.
(<) Others have an earlier timestamp.
Later we have this code:
(
git diff-index -r --name-only $commit
git ls-files --others
) |
git update-index --add --replace --remove --stdin
The files (=) are racily-clean, and are added to the database; they pass
through the clean filter (rezip). The files (<) are regarded as unchanged,
and are not added again, and are not rezipped.
> find ./ -type f -exec touch \{\} \;
This could help, too, because now all files are regarded as either
racily-clean (same timestamp as index file) or as changed (newer timestamp).
-- Hannes
next prev parent reply other threads:[~2009-02-05 8:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-04 16:08 Question about --tree-filter Sergio Callegari
2009-02-04 16:37 ` Johannes Sixt
2009-02-04 20:42 ` Sergio Callegari
2009-02-05 8:32 ` Johannes Sixt [this message]
2009-02-05 13:13 ` Sergio Callegari
2009-02-05 13:57 ` Johannes Sixt
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=498AA41D.3000609@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=git@vger.kernel.org \
--cc=sergio.callegari@gmail.com \
/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.