From: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
To: Scott Moser <smoser@brickies.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] fix guilt-pop and push to fail if no relevant patches
Date: Fri, 17 Oct 2008 10:28:32 -0400 [thread overview]
Message-ID: <20081017142832.GF27647@josefsipek.net> (raw)
In-Reply-To: <alpine.DEB.1.00.0810170736240.27798@brickies>
On Fri, Oct 17, 2008 at 07:37:33AM -0400, Scott Moser wrote:
> Jeff,
> Did you not like the patch below for some reason ?
I don't remember my train of thought, but I ended up making a simpler patch
to address the push-pushing-more-than-it-should bug. I completely missed the
part about the exit codes.
> It seemed fairly straightforward to me that guilt-pop and guilt-push
> should exit failure if they did not do anything due to having nothing to
> do.
I'd actually say that it's not obvious, but...see below :)
> On Mon, 29 Sep 2008, Scott Moser wrote:
> > currently guilt-pop and guilt-push will exit with '0' if there are no more
> > relevant patches in the series (ie, if you've pushed or popped all of them)
> >
> > This means that you cannot do something like:
> > while guilt-push; do
> > guilt refresh || break
> > done
> >
> > for reference, quilt does exit with non-zero in those cases:
> > $ quilt push -a && quilt push
> > File series fully applied, ends at patch my.patch
> > $ echo $?
> > 1
> >
> > $ quilt pop -a; quilt pop
> > No patch removed
> > $ echo $?
> > 2
Who am I to argue against compatibility.
...
> > diff --git a/guilt-push b/guilt-push
> > index 018f9ac..48f886b 100755
> > --- a/guilt-push
> > +++ b/guilt-push
[snipped long diff]
With my fix, this should be a 2-liner :)
Sorry for missing the return code part...
Josef 'Jeff' Sipek.
--
We have joy, we have fun, we have Linux on a Sun...
next prev parent reply other threads:[~2008-10-17 14:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-29 18:51 [PATCH] fix guilt-pop and push to fail if no relevant patches Scott Moser
2008-10-17 11:37 ` Scott Moser
2008-10-17 14:28 ` Josef 'Jeff' Sipek [this message]
2008-10-17 14:40 ` Scott Moser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081017142832.GF27647@josefsipek.net \
--to=jeffpc@josefsipek.net \
--cc=git@vger.kernel.org \
--cc=smoser@brickies.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).