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

Re: [PATCH] rebase: return non-zero error code if format-patch fails

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 3, 2015, 17:52 UTC
Message-ID
<xmqqpp493z8f.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20150702091133.GA13353@musxeris015.imu.intel.com>
Clemens Buchacher <clemens.buchacher@intel.com> writes:
Show 6 quoted lines
> Since e481af06 (rebase: Handle cases where format-patch fails) we
> notice if format-patch fails and return immediately from
> git-rebase--am. We save the return value with ret=$?, but then we
> return $?, which is usually zero in this case.
>
> Fix this by returning $ret instead.
Sounds sensible.
>
> Cc: Andrew Wong <andrew.kw.w@gmail.com>
> Signed-off-by: Clemens Buchacher <clemens.buchacher@intel.com>
> Reviewed-by: Jorge Nunes <jorge.nunes@intel.com>

Where was this review made? I may have missed a recent discussion, and that is why I am asking, because Reviewed-by: lines that cannot be validated by going back to the list archive does not add much value.

Thanks.
Show 17 quoted lines
> ---
>  git-rebase--am.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/git-rebase--am.sh b/git-rebase--am.sh
> index f923732..9ae898b 100644
> --- a/git-rebase--am.sh
> +++ b/git-rebase--am.sh
> @@ -78,7 +78,7 @@ else
>  
>  		As a result, git cannot rebase them.
>  		EOF
> -		return $?
> +		return $ret
>  	fi
>  
>  	git am $git_am_opt --rebasing --resolvemsg="$resolvemsg" \
Previous: Clemens BuchacherNext: Clemens Buchacher
Message 2 of 4 in “rebase: return non-zero error code if format-patch fails”
  1. rebase: return non-zero error code if format-patch failsClemens Buchacher, Jul 2, 2015
  2. Junio C HamanoJul 3, 2015
  3. Clemens BuchacherJul 6, 2015
  4. Junio C HamanoJul 6, 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.