Dear Thomas, On Wed, 2010-12-15 at 00:03 +0100, Thomas Rast wrote: > Jan Wielemaker wrote: > > 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? > [...] > > 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 ... > > That history is not connected to the filtered one. git-filter-branch > alerts you to it with messages like > > WARNING: Ref 'refs/tags/V5.0.4' is unchanged > WARNING: Ref 'refs/tags/V5.0.5' is unchanged > WARNING: Ref 'refs/tags/V5.0.6' is unchanged > WARNING: Ref 'refs/tags/V5.0.7' is unchanged Thanks for the insight. Catching these errors and running git tag -d on them gets me a nice and clean history. Only ... It starts in 12/08/2008 instead of 03/07/2002. This is (almost) compatible with the filtering feedback that says it rewrote 174 commits. The filtered and cleaned history contains 171. This is a bit odd. If I open qgit on the original (before filtering) and show the history of odbc.c, it looks like a nice and continuous one going back to 2002. Also git log --oneline packages/odbc/odbc.c shows a history that starts with "First public version of ODBC interface" Of course, this is a project with a long history that was converted from CVS, but the history looks unbroken, so why does filtering a directory breaks it? > I haven't made up my mind if this is a bug report or a feature > request, but in any case you can delete all of them and the problem > goes away. Isn't it true that you will have info from before introducing a directory whenever there are tags that are older than the directory? If that is the case, it looks wrong to me. I want to filter the directory, so the repository from before the existence of the directory is not interesting. Of course, things change if the directory was created by renaming files that where already in the repository. I don't know what one should `expect' in that case. Here, the directory was added from new files, so it is quite clear what one should expect. Regards --- Jan -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html