{"thread":{"id":"20105","subject":"[PATCH] git-am: print fair error message when format detection fails","startedAt":"2009-07-14T06:39:33Z","lastAt":"2009-07-14T07:10:41Z","messageCount":2,"participants":["Nicolas Sebrecht","Giuseppe Bilotta"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"117934","messageId":"beef9dfceed12f279bc27fbecf82118761cada49.1247553436.git.ni.s@laposte.net","threadId":"20105","inReplyTo":null,"subject":"[PATCH] git-am: print fair error message when format detection fails","fromName":"Nicolas Sebrecht","fromEmail":"ni.s@laposte.net","sentAt":"2009-07-14T06:39:33Z","receivedAt":"2009-07-14T06:39:33Z","isPatch":true,"sender":{"key":"nicolas.s.dev@gmx.fr","avatar":null},"body":"Avoid git ending with this message:\n\t\"Patch format  is not supported.\"\n\nSigned-off-by: Nicolas Sebrecht <ni.s@laposte.net>\n---\n git-am.sh |    6 +++++-\n 1 files changed, 5 insertions(+), 1 deletions(-)\n\ndiff --git a/git-am.sh b/git-am.sh\nindex d64d997..ca73c88 100755\n--- a/git-am.sh\n+++ b/git-am.sh\n@@ -254,7 +254,11 @@ split_patches () {\n \t\tmsgnum=\n \t\t;;\n \t*)\n-\t\tclean_abort \"Patch format $patch_format is not supported.\"\n+\t\tif test -n \"$parse_patch\" ; then\n+\t\t\tclean_abort \"Patch format $patch_format is not supported.\"\n+\t\telse\n+\t\t\tclean_abort \"Format patch detection failed.\"\n+\t\tfi\n \t\t;;\n \tesac\n }\n-- \n1.6.4.rc0.121.g2937a.dirty\n"},{"id":"117936","messageId":"cb7bb73a0907140010o42e9d67di8e871dccb8b41ed4@mail.gmail.com","threadId":"20105","inReplyTo":"beef9dfceed12f279bc27fbecf82118761cada49.1247553436.git.ni.s@laposte.net","subject":"Re: [PATCH] git-am: print fair error message when format detection fails","fromName":"Giuseppe Bilotta","fromEmail":"giuseppe.bilotta@gmail.com","sentAt":"2009-07-14T07:10:41Z","receivedAt":"2009-07-14T07:10:41Z","isPatch":true,"sender":{"key":"giuseppe.bilotta@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1464?v=4"},"body":"On Tue, Jul 14, 2009 at 8:39 AM, Nicolas Sebrecht<ni.s@laposte.net> wrote:\n> Avoid git ending with this message:\n>        \"Patch format  is not supported.\"\n>\n> Signed-off-by: Nicolas Sebrecht <ni.s@laposte.net>\n> ---\n>  git-am.sh |    6 +++++-\n>  1 files changed, 5 insertions(+), 1 deletions(-)\n>\n> diff --git a/git-am.sh b/git-am.sh\n> index d64d997..ca73c88 100755\n> --- a/git-am.sh\n> +++ b/git-am.sh\n> @@ -254,7 +254,11 @@ split_patches () {\n>                msgnum=\n>                ;;\n>        *)\n> -               clean_abort \"Patch format $patch_format is not supported.\"\n> +               if test -n \"$parse_patch\" ; then\n> +                       clean_abort \"Patch format $patch_format is not supported.\"\n> +               else\n> +                       clean_abort \"Format patch detection failed.\"\n\n\"Patch format detection failed\" maybe?\n\n> +               fi\n>                ;;\n>        esac\n>  }\n> --\n> 1.6.4.rc0.121.g2937a.dirty\n\n\n\n-- \nGiuseppe \"Oblomov\" Bilotta\n"}]}