Re: [PATCH] git-format-patch: Don't number patches when there's only one

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Ericsson
Date: Monday, October 22, 2007 - 3:14 am

Johannes Schindelin wrote:

This stems from creating scripts around it where I only want to see the 
numbers if there is more than a single patch. Currently I can't do that 
without running git-format-patch twice or re-implementing the revision 
parsing machinery to count revisions prior to passing arguments to 
format-patch.


That's sort of implicit in [PATCH], since all patch-series added by the 
tool I'm scripting will have [PATCH n/m], while I'd prefer for 
single-patches to have only [PATCH].


Would a separate option be acceptable to you?

It doesn't have to be fancy or short, since I really only mean to use it 
from our scripts.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
-
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] git-format-patch: Don't number patches when th ..., Johannes Schindelin, (Mon Oct 22, 2:44 am)
Re: [PATCH] git-format-patch: Don't number patches when th ..., Andreas Ericsson, (Mon Oct 22, 3:14 am)
Re: [PATCH] git-format-patch: Don't number patches when th ..., Johannes Schindelin, (Mon Oct 22, 3:22 am)
Re: [PATCH] git-format-patch: Number patches when there ar ..., Johannes Schindelin, (Sat Nov 3, 9:31 am)
Re: [PATCH] git-format-patch: Number patches when there ar ..., Johannes Schindelin, (Sat Nov 3, 5:25 pm)