git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* subdirectory-filter does not delete files before the directory came into existence?
@ 2010-12-14 22:21 Jan Wielemaker
  2010-12-14 23:03 ` Thomas Rast
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Wielemaker @ 2010-12-14 22:21 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-12-19 22:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-14 22:21 subdirectory-filter does not delete files before the directory came into existence? Jan Wielemaker
2010-12-14 23:03 ` 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

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).