# [RFC] subtree: use say and exit 0 rather than die in case of no new revision found scenario

2 messages from 2020-05-06 to 2020-05-06. Participants: Claus Schneider, Taylor Blau.
Thread: https://gitlist.dev/t/53411

## Claus Schneider, 2020-05-06 13:11

Subject: [RFC] subtree: use say and exit 0 rather than die in case of no new revision found scenario
Message-ID: <CA+GP4brpeGhBy3LF0LomDO-AOEZS02tOi2phQ4e1XoTGgeAx2w@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2BGP4brpeGhBy3LF0LomDO-AOEZS02tOi2phQ4e1XoTGgeAx2w%40mail.gmail.com
In-Reply-To: <CA+GP4boXi4tW23Z6CDF2v_ch2_7_dqhB_POAhi1FfYrEBG4DWQ@mail.gmail.com>

```
Hi..

Currently subtree dies if "No new revisions found" which is hard as it
is a non-operation.

I suggest using the "say" command rather than "die".

It will then become easier just to call "git subtree split" and you do
not need to handle this special case.

Patches can be found here:
https://github.com/git/git/commit/fe435a1ba128698f6acb69ee1891c45be32610fa

Best regards
Claus Schneider

```

## Taylor Blau, 2020-05-06 17:37

Subject: Re: [RFC] subtree: use say and exit 0 rather than die in case of no new revision found scenario
Message-ID: <20200506173713.GD6078@syl.local>
URL: https://gitlist.dev/e/20200506173713.GD6078%40syl.local
In-Reply-To: <CA+GP4brpeGhBy3LF0LomDO-AOEZS02tOi2phQ4e1XoTGgeAx2w@mail.gmail.com>

```
Hi Claus,

On Wed, May 06, 2020 at 03:11:49PM +0200, Claus Schneider wrote:
> Hi..
>
> Currently subtree dies if "No new revisions found" which is hard as it
> is a non-operation.
>
> I suggest using the "say" command rather than "die".
>
> It will then become easier just to call "git subtree split" and you do
> not need to handle this special case.
>
> Patches can be found here:
> https://github.com/git/git/commit/fe435a1ba128698f6acb69ee1891c45be32610fa

Thanks for your patch. The Git mailing list reviews patches over email,
so please re-submit this (and the other two patches) you sent to the
list here.

Detailed guidelines on how to do that are here:

  https://github.com/git/git/blob/master/Documentation/SubmittingPatches

and

  https://github.com/git/git/blob/master/Documentation/MyFirstContribution.txt

Alternatively, you may use GitGitGadget, which makes it convenient to
send patches to the mailing list from GitHub's UI. More information
about that may be found here: https://gitgitgadget.github.io/.

> Best regards
> Claus Schneider

Thanks,
Taylor

```
