Re: [PATCH] quiltimport: Skip non-existent patches

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: <git@...>
Date: Thursday, September 27, 2007 - 6:20 pm

On 9/27/07, Junio C Hamano <gitster@pobox.com> wrote:

That's seems fine. IIUC, mailinfo will only create an empty patch if
there's no actual patch content in the original mail/patch. In that
case, you probably do want to skip and not bomb. I'd changed my patch
to do 'if ! [ -s "$patch" ]' to catch an empty file, but this is
probably better. Hmm, checking `quilt push' on a patch with no actual
patch bombs. Here's the output:

$ quilt push
Applying patch foo.patch
patch: **** Only garbage was found in the patch input.
Patch foo.patch does not apply (enforce with -f)
$ echo $?
1
$ cat patches/foo.patch
Here's info about an empty patch.

So, it might be better to leave the original behavior there to match quilt.

--
Dan
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] quiltimport: Skip non-existent patches, Dan Nicholson, (Thu Sep 27, 4:39 pm)
Re: [PATCH] quiltimport: Skip non-existent patches, Junio C Hamano, (Thu Sep 27, 4:50 pm)
Re: [PATCH] quiltimport: Skip non-existent patches, Dan Nicholson, (Thu Sep 27, 5:45 pm)
Re: [PATCH] quiltimport: Skip non-existent patches, Junio C Hamano, (Thu Sep 27, 6:02 pm)
Re: [PATCH] quiltimport: Skip non-existent patches, Dan Nicholson, (Thu Sep 27, 6:20 pm)