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

Re: [PATCH] filter-branch documentation: non-zero exit status in command abort the filter

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 26, 2008, 11:18 UTC
Message-ID
<alpine.LSU.1.00.0802261116570.17164@racer.site>
In-Reply-To
<1203992071-957-1-git-send-email-cmarcelo@gmail.com>
Hi,
On Mon, 25 Feb 2008, Caio Marcelo de Oliveira Filho wrote:
Show 5 quoted lines
> Since commit 8c1ce0f46b85d40f215084eed7313896300082df filter-branch 
> fails when a <command> has a non-zero exit status. This commit makes it 
> clear in the documentation and also fixes the parent-filter example, 
> that was incorrectly returning non-zero when the commit being tested 
> wasn't the one to be rewritten.

I thought that we had that already in the man page, but you're right: we did not.

Show 7 quoted lines
> ---------------------------------------------------------------------------
> +----------------------------------------------------------------------------
>  git filter-branch --parent-filter \
> -	'cat; test $GIT_COMMIT = <commit-id> && echo "-p <graft-id>"' HEAD
> ---------------------------------------------------------------------------
> +	'test $GIT_COMMIT = <commit-id> && echo "-p <graft-id>" || cat' HEAD
> +----------------------------------------------------------------------------
Yes, makes sense.

Ciao, Dscho

Previous: Caio Marcelo de Oliveira Filho
Message 2 of 2 in “filter-branch documentation: non-zero exit status in command abort the filter”
  1. filter-branch documentation: non-zero exit status in command abort the filterCaio Marcelo de Oliveira Filho, Feb 26, 2008
  2. Johannes SchindelinFeb 26, 2008

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.