git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: subdirectory-filter does not delete files before the directory came into existence?

From
JWJan Wielemaker <j.wielemaker@cs.vu.nl>
Date
Dec 15, 2010, 10:40 UTC
Message-ID
<1292409621.11607.41.camel@hppc323.few.vu.nl>
In-Reply-To
<201012150003.30127.trast@student.ethz.ch>

In addition to my previous reply: Looking at the result of the initial filter, if remove all unchanged refs I loose the history before 2008. Qgit however shows a broken history at the start of the directory in 2002. If I keep deleting the tag that is the head of older stuff I end up with what I hoped in the first place. This is of course a bit tedious :-(

You can view the result at
   git://www.swi-prolog.org/home/pl/git/packages/odbc.git
I'll split some more packages.  Curious to what is going to happen ...
	Regards --- Jan
On Wed, 2010-12-15 at 00:03 +0100, Thomas Rast wrote:
Show 21 quoted lines
> 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
> 
> 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.
> 
Previous: Jan WielemakerNext: Jan Wielemaker
Message 4 of 8 in “subdirectory-filter does not delete files before the directory came into existence?”
  1. Jan WielemakerDec 14, 2010
  2. Thomas RastDec 14, 2010
  3. Jan WielemakerDec 15, 2010
  4. Jan WielemakerDec 15, 2010
  5. Jan WielemakerDec 15, 2010
  6. Thomas RastDec 19, 2010
  7. Jan WielemakerDec 19, 2010
  8. Thomas RastDec 19, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.