git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Wielemaker <J.Wielemaker@cs.vu.nl>
To: git@vger.kernel.org
Subject: subdirectory-filter does not delete files before the directory came into existence?
Date: Tue, 14 Dec 2010 23:21:35 +0100	[thread overview]
Message-ID: <1292365295.6666.22.camel@ct> (raw)

Hi,

There is a lot of information about extracting a directory from a git
project.  One thing I failed to find though is the following:

I try to extract a directory.  The result is fine, but there is a lot
of history in the result from *before* the directory was added to the
project.  Why?  How can I get rid of this?

If you want to see yourself, I did:

	git clone git://www.swi-prolog.org/home/pl/git/pl-devel.git
	git clone pl-devel odbc
	cd odbc
	git filter-branch --subdirectory-filter packages/odbc --prune-empty
--tag-name-filter cat -- --all
	
Now use e.g. qgit to look at the history.  As from 03/07/2002, when
the packages/odbc directory was created, all looks just fine.  Before
though ...

	Thanks for any hints

		--- Jan

             reply	other threads:[~2010-12-14 22:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-14 22:21 Jan Wielemaker [this message]
2010-12-14 23:03 ` subdirectory-filter does not delete files before the directory came into existence? Thomas Rast
2010-12-15  9:50   ` Jan Wielemaker
2010-12-15 10:40   ` Jan Wielemaker
2010-12-15 12:22   ` Jan Wielemaker
2010-12-19  2:23     ` Thomas Rast
2010-12-19  9:34       ` Jan Wielemaker
2010-12-19 22:51         ` Thomas Rast

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=1292365295.6666.22.camel@ct \
    --to=j.wielemaker@cs.vu.nl \
    --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;
as well as URLs for NNTP newsgroup(s).