Re: [PATCH] git-am: print fair error message when format detection fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 14, 2009 at 8:39 AM, Nicolas Sebrecht<ni.s@xxxxxxxxxxx> wrote:
> Avoid git ending with this message:
>        "Patch format  is not supported."
>
> Signed-off-by: Nicolas Sebrecht <ni.s@xxxxxxxxxxx>
> ---
>  git-am.sh |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/git-am.sh b/git-am.sh
> index d64d997..ca73c88 100755
> --- a/git-am.sh
> +++ b/git-am.sh
> @@ -254,7 +254,11 @@ split_patches () {
>                msgnum=
>                ;;
>        *)
> -               clean_abort "Patch format $patch_format is not supported."
> +               if test -n "$parse_patch" ; then
> +                       clean_abort "Patch format $patch_format is not supported."
> +               else
> +                       clean_abort "Format patch detection failed."

"Patch format detection failed" maybe?

> +               fi
>                ;;
>        esac
>  }
> --
> 1.6.4.rc0.121.g2937a.dirty



-- 
Giuseppe "Oblomov" Bilotta
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]