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

Re: [PATCH] filter-branch: deal with object name vs. pathname ambiguity in tree-filter

From
Jeff King <peff@peff.net>
Date
Nov 24, 2015, 23:38 UTC
Message-ID
<20151124233813.GC13872@sigill.intra.peff.net>
In-Reply-To
<1448281396-5049-1-git-send-email-szeder@ira.uka.de>
On Mon, Nov 23, 2015 at 01:23:16PM +0100, SZEDER Gábor wrote:
Show 14 quoted lines
> 'git filter-branch' fails complaining about an ambiguous argument, if
> a tree-filter renames a path and the new pathname happens to match an
> existing object name.
> 
> After the tree-filter has been applied, 'git filter-branch' looks for
> changed paths by running:
> 
>   git diff-index -r --name-only --ignore-submodules $commit
> 
> which then, because of the lack of disambiguating double-dash, can't
> decide whether to treat '$commit' as revision or path and errors out.
> 
> Add that disambiguating double-dash after 'git diff-index's revision
> argument to make sure that '$commit' is interpreted as a revision.
Thanks, looks obviously correct.
-Peff
Previous: SZEDER Gábor
Message 2 of 2 in “filter-branch: deal with object name vs. pathname ambiguity in tree-filter”
  1. filter-branch: deal with object name vs. pathname ambiguity in tree-filterSZEDER Gábor, Nov 23, 2015
  2. Jeff KingNov 24, 2015

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.