* [PATCH] rebase: return non-zero error code if format-patch fails
@ 2015-07-02 9:11 Clemens Buchacher
2015-07-03 17:52 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Clemens Buchacher @ 2015-07-02 9:11 UTC (permalink / raw)
To: git; +Cc: Andrew Wong, Jorge Nunes
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.
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>
---
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" \
--
1.9.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] rebase: return non-zero error code if format-patch fails
2015-07-02 9:11 [PATCH] rebase: return non-zero error code if format-patch fails Clemens Buchacher
@ 2015-07-03 17:52 ` Junio C Hamano
2015-07-06 8:53 ` Clemens Buchacher
0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2015-07-03 17:52 UTC (permalink / raw)
To: Clemens Buchacher; +Cc: git, Andrew Wong, Jorge Nunes
Clemens Buchacher <clemens.buchacher@intel.com> writes:
> 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.
> ---
> 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" \
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] rebase: return non-zero error code if format-patch fails
2015-07-03 17:52 ` Junio C Hamano
@ 2015-07-06 8:53 ` Clemens Buchacher
2015-07-06 17:01 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Clemens Buchacher @ 2015-07-06 8:53 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, Andrew Wong, Jorge Nunes
On Fri, Jul 03, 2015 at 10:52:32AM -0700, Junio C Hamano wrote:
> >
> > 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.
Jorge helped me by reviewing the patch before I submitted it to the
list. My intention is to give credit for his contribution, and to
involve him in any discussion regarding the patch. Maybe it makes more
sense to say Helped-by:? Please feel free to change as you see fit. I
will follow your recommendation in the future.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] rebase: return non-zero error code if format-patch fails
2015-07-06 8:53 ` Clemens Buchacher
@ 2015-07-06 17:01 ` Junio C Hamano
0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2015-07-06 17:01 UTC (permalink / raw)
To: Clemens Buchacher; +Cc: git, Andrew Wong, Jorge Nunes
Clemens Buchacher <clemens.buchacher@intel.com> writes:
> On Fri, Jul 03, 2015 at 10:52:32AM -0700, Junio C Hamano wrote:
>> >
>> > 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.
>
> Jorge helped me by reviewing the patch before I submitted it to the
> list. My intention is to give credit for his contribution, and to
> involve him in any discussion regarding the patch. Maybe it makes more
> sense to say Helped-by:?
Thanks; I think that clarifies it, and I think that is how people
seem to use Helped-by around here.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-07-06 17:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02 9:11 [PATCH] rebase: return non-zero error code if format-patch fails Clemens Buchacher
2015-07-03 17:52 ` Junio C Hamano
2015-07-06 8:53 ` Clemens Buchacher
2015-07-06 17:01 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).