Re: [PATCH] format-patch: remove existing output-directory
- From
Fredrik Gustafsson <iveqy@iveqy.com>
- Date
- Jun 14, 2013, 13:48 UTC
- Message-ID
- <20130614134833.GB1086@paksenarrion.iveqy.com>
- In-Reply-To
- <CALkWK0nyNXsyzoTVz9vE5c5FP5k-KnPpzW2LryuCtmLP4WLXZA@mail.gmail.com>
On Fri, Jun 14, 2013 at 07:04:18PM +0530, Ramkumar Ramachandra wrote:
Show 11 quoted lines
> Fredrik Gustafsson wrote: > > However I think this patch can improve the workflow for experienced > > developers. Can we tweak this in some way to get the best out of both > > worlds? > > The main problem is that output-directory can be an absolute path > (like ~, in the extreme case). I'm not sure how to trade-off safety > for speed. My main itch is that completion doesn't work with my fp: > > alias.fp = !rm -rf outgoing && git format-patch -M -C -o outgoing >
If I let myself to drift off a bit...
git format-patch always creates a new directory like: .git/outgoing/[patchname]<FROM commit short sha1>...<TO commit short sha1> and possible runs a custom command afterwards. Like cd to the patch directory, open the cover-letter in your editor etc.
git send-email without patches specified gives you a list of patch-series from .git/outgoing to choose from with the latest generated patchserie already selected.
-- Med vänliga hälsningar Fredrik Gustafsson tel: 0733-608274 e-post: iveqy@iveqy.com