From: "David Tweed" <david.tweed@gmail.com>
To: "Johannes Sixt" <j.sixt@viscovery.net>
Cc: "git mailing list" <git@vger.kernel.org>
Subject: Re: Understanding git filter-branch --subdirectory-filter behaviour
Date: Thu, 22 May 2008 19:05:21 +0100 [thread overview]
Message-ID: <e1dab3980805221105k15908606s3397ba1a96ecf081@mail.gmail.com> (raw)
In-Reply-To: <4833C07B.3060004@viscovery.net>
On Wed, May 21, 2008 at 7:26 AM, Johannes Sixt <j.sixt@viscovery.net> wrote:
> David Tweed schrieb:
> That's difficult to tell without a peek at the repository.
>
> Did you compare 'gitk HEAD' to 'gitk HEAD -- WRITING'? I'd expect the
> latter to be a subset of the former. Note that with a path specified
> "history simplification" happens, which means that you won't see as many
> merges as when no path is specified.
Just did that in the before-filtering repository, and "gitk HEAD --
WRITING" doesn't have any branches after the simplification but it
does go back to the first commit in the repository creating WRITING
(presumably simplifying out several branches that didn't affect
WRITING), whereas the filtered repository starts on the commit
immediately after the first merge you encounter walking backwards in
time. I was prepared for the branch structure to possibly simplify
whilst keeping all the commits that change that directory, but was a
bit surprised it stopped before the first merge.
<in original>
$ git log HEAD -- WRITING | wc -l
2033
<in filtered repo>
$ git log | wc -l
329
So it's definitely creating a smaller repo than git log filtering. If
you would be interested in looking at the actual repo (about 17M) let
me know and I'll send you tarball details via personal mail.
Anyway, many thanks for the insight and assistance,
--
cheers, dave tweed__________________________
david.tweed@gmail.com
Rm 124, School of Systems Engineering, University of Reading.
"while having code so boring anyone can maintain it, use Python." --
attempted insult seen on slashdot
prev parent reply other threads:[~2008-05-22 18:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-20 20:11 Understanding git filter-branch --subdirectory-filter behaviour David Tweed
2008-05-21 6:26 ` Johannes Sixt
2008-05-22 18:05 ` David Tweed [this message]
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=e1dab3980805221105k15908606s3397ba1a96ecf081@mail.gmail.com \
--to=david.tweed@gmail.com \
--cc=git@vger.kernel.org \
--cc=j.sixt@viscovery.net \
/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;
as well as URLs for NNTP newsgroup(s).