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

Re: [PATCH] Make filter-branch work with many branches

From
Johannes Sixt <j6t@kdbg.org>
Date
Jul 19, 2011, 18:06 UTC
Message-ID
<4E25C78A.1090600@kdbg.org>
In-Reply-To
<E186982C-71AE-4C08-B857-A67BDCD21E3D@apple.com>
Am 19.07.2011 18:29, schrieb Dave Zarzycki:
Show 5 quoted lines
> -rev_args=$(git rev-parse --revs-only "$@")
> -
>  case "$filter_subdir" in
>  "")
>  	eval set -- "$(git rev-parse --sq --no-revs "$@")"

This line in the hunk context changes what "$@" will produce. Therefore, the "$@" that you removed above will not produce the same thing...

Show 8 quoted lines
> @@ -286,8 +284,8 @@ case "$filter_subdir" in
>  	;;
>  esac
>  
> -git rev-list --reverse --topo-order --default HEAD \
> -	--parents --simplify-merges $rev_args "$@" > ../revs ||
> +git rev-parse --revs-only "$@" | git rev-list --stdin --reverse --topo-order \
> +	--default HEAD --parents --simplify-merges "$@" > ../revs ||
... that you insert here. How can the result ever have worked for you?
Perhaps store the list of revs in a temporary file?
-- Hannes
Previous: Dave ZarzyckiNext: Dave Zarzycki
Message 2 of 3 in “Make filter-branch work with many branches”
  1. Make filter-branch work with many branchesDave Zarzycki, Jul 19, 2011
  2. Johannes SixtJul 19, 2011
  3. Dave ZarzyckiJul 20, 2011

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.