git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Rearrange git-format-patch synopsis to improve clarity.
@ 2007-11-04 22:27 David Symonds
  2007-11-05 21:22 ` Junio C Hamano
  2007-11-05 22:32 ` David Symonds
  0 siblings, 2 replies; 7+ messages in thread
From: David Symonds @ 2007-11-04 22:27 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, David Symonds

Signed-off-by: David Symonds <dsymonds@gmail.com>
---
 Documentation/git-format-patch.txt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt
index 92c0ab6..d8a89a1 100644
--- a/Documentation/git-format-patch.txt
+++ b/Documentation/git-format-patch.txt
@@ -9,10 +9,11 @@ git-format-patch - Prepare patches for e-mail submission
 SYNOPSIS
 --------
 [verse]
-'git-format-patch' [-n | -N | -k] [-o <dir> | --stdout] [--thread]
+'git-format-patch' [-k] [-o <dir> | --stdout] [--thread]
                    [--attach[=<boundary>] | --inline[=<boundary>]]
                    [-s | --signoff] [<common diff options>]
-                   [--start-number <n>] [--numbered-files]
+                   [-n | --numbered-files | -N | --no-numbered]
+                   [--start-number <n>]
                    [--in-reply-to=Message-Id] [--suffix=.<sfx>]
                    [--ignore-if-in-upstream]
                    [--subject-prefix=Subject-Prefix]
-- 
1.5.3.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] Rearrange git-format-patch synopsis to improve clarity.
  2007-11-04 22:27 [PATCH] Rearrange git-format-patch synopsis to improve clarity David Symonds
@ 2007-11-05 21:22 ` Junio C Hamano
  2007-11-05 22:32 ` David Symonds
  1 sibling, 0 replies; 7+ messages in thread
From: Junio C Hamano @ 2007-11-05 21:22 UTC (permalink / raw)
  To: David Symonds; +Cc: git

Thanks

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Rearrange git-format-patch synopsis to improve clarity.
  2007-11-04 22:27 [PATCH] Rearrange git-format-patch synopsis to improve clarity David Symonds
  2007-11-05 21:22 ` Junio C Hamano
@ 2007-11-05 22:32 ` David Symonds
  2007-11-05 22:48   ` Andreas Ericsson
  2007-11-06 15:01   ` Jon Loeliger
  1 sibling, 2 replies; 7+ messages in thread
From: David Symonds @ 2007-11-05 22:32 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, David Symonds

On 11/5/07, David Symonds <dsymonds@gmail.com> wrote:
>                     [-s | --signoff] [<common diff options>]
> -                   [--start-number <n>] [--numbered-files]
> +                   [-n | --numbered-files | -N | --no-numbered]
> +                   [--start-number <n>]

Now that I look at it again, it seems the long options look quite
inconsistent. I think it should be either
--numbered-files/--no-numbered-files or --numbered/--no-numbered. My
preference is with the latter (for brevity), but that breaks
backward-compatibility.

Would you accept a patch that changed --numbered-files to --numbered,
and kept the former as a synonym?


Dave.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Rearrange git-format-patch synopsis to improve clarity.
  2007-11-05 22:32 ` David Symonds
@ 2007-11-05 22:48   ` Andreas Ericsson
  2007-11-05 22:56     ` David Symonds
  2007-11-06 15:01   ` Jon Loeliger
  1 sibling, 1 reply; 7+ messages in thread
From: Andreas Ericsson @ 2007-11-05 22:48 UTC (permalink / raw)
  To: David Symonds; +Cc: Junio C Hamano, git

David Symonds wrote:
> On 11/5/07, David Symonds <dsymonds@gmail.com> wrote:
>>                     [-s | --signoff] [<common diff options>]
>> -                   [--start-number <n>] [--numbered-files]
>> +                   [-n | --numbered-files | -N | --no-numbered]
>> +                   [--start-number <n>]
> 
> Now that I look at it again, it seems the long options look quite
> inconsistent. I think it should be either
> --numbered-files/--no-numbered-files or --numbered/--no-numbered. My
> preference is with the latter (for brevity), but that breaks
> backward-compatibility.
> 
> Would you accept a patch that changed --numbered-files to --numbered,
> and kept the former as a synonym?
> 

I thought files were always numbered, but the [PATCH m/n] wasn't. Have I
missed something?

If your --numbered-files is supposed to affect only file-numbering, I'd
suggest *not* using --numbered, as it's ambiguous with "number-subject".

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Rearrange git-format-patch synopsis to improve clarity.
  2007-11-05 22:48   ` Andreas Ericsson
@ 2007-11-05 22:56     ` David Symonds
  0 siblings, 0 replies; 7+ messages in thread
From: David Symonds @ 2007-11-05 22:56 UTC (permalink / raw)
  To: Andreas Ericsson; +Cc: Junio C Hamano, git

On 11/6/07, Andreas Ericsson <ae@op5.se> wrote:
> David Symonds wrote:
> > On 11/5/07, David Symonds <dsymonds@gmail.com> wrote:
> >>                     [-s | --signoff] [<common diff options>]
> >> -                   [--start-number <n>] [--numbered-files]
> >> +                   [-n | --numbered-files | -N | --no-numbered]
> >> +                   [--start-number <n>]
> >
> > Now that I look at it again, it seems the long options look quite
> > inconsistent. I think it should be either
> > --numbered-files/--no-numbered-files or --numbered/--no-numbered. My
> > preference is with the latter (for brevity), but that breaks
> > backward-compatibility.
> >
> > Would you accept a patch that changed --numbered-files to --numbered,
> > and kept the former as a synonym?
> >
>
> I thought files were always numbered, but the [PATCH m/n] wasn't. Have I
> missed something?
>
> If your --numbered-files is supposed to affect only file-numbering, I'd
> suggest *not* using --numbered, as it's ambiguous with "number-subject".

You're right. There's both --numbered ([PATCH n/m] stuff) and
--numbered-files (0001.patch instead of 0001-subject-line.patch). I'll
revise my patch to clarify this.


Dave.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Rearrange git-format-patch synopsis to improve clarity.
  2007-11-05 22:32 ` David Symonds
  2007-11-05 22:48   ` Andreas Ericsson
@ 2007-11-06 15:01   ` Jon Loeliger
  2007-11-06 21:08     ` David Symonds
  1 sibling, 1 reply; 7+ messages in thread
From: Jon Loeliger @ 2007-11-06 15:01 UTC (permalink / raw)
  To: David Symonds; +Cc: Junio C Hamano, git

David Symonds wrote:
> On 11/5/07, David Symonds <dsymonds@gmail.com> wrote:
>>                     [-s | --signoff] [<common diff options>]
>> -                   [--start-number <n>] [--numbered-files]
>> +                   [-n | --numbered-files | -N | --no-numbered]
>> +                   [--start-number <n>]
> 
> Now that I look at it again, it seems the long options look quite
> inconsistent. I think it should be either
> --numbered-files/--no-numbered-files or --numbered/--no-numbered. My
> preference is with the latter (for brevity), but that breaks
> backward-compatibility.
> 
> Would you accept a patch that changed --numbered-files to --numbered,
> and kept the former as a synonym?

There are two forms of numbered file output names:
the traditional "0001-Foo-the-bar" and just "1" styles.
Please don't break that.  Both are needed.

Thanks,
jdl

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Rearrange git-format-patch synopsis to improve clarity.
  2007-11-06 15:01   ` Jon Loeliger
@ 2007-11-06 21:08     ` David Symonds
  0 siblings, 0 replies; 7+ messages in thread
From: David Symonds @ 2007-11-06 21:08 UTC (permalink / raw)
  To: Jon Loeliger; +Cc: Junio C Hamano, git

On 11/7/07, Jon Loeliger <jdl@freescale.com> wrote:
> David Symonds wrote:
> > Now that I look at it again, it seems the long options look quite
> > inconsistent. I think it should be either
> > --numbered-files/--no-numbered-files or --numbered/--no-numbered. My
> > preference is with the latter (for brevity), but that breaks
> > backward-compatibility.
> >
> > Would you accept a patch that changed --numbered-files to --numbered,
> > and kept the former as a synonym?
>
> There are two forms of numbered file output names:
> the traditional "0001-Foo-the-bar" and just "1" styles.
> Please don't break that.  Both are needed.

Oh, I certainly wasn't proposing removing any functionality; merely
renaming the option to select it so as to be consistent.


Dave.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-11-06 21:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-04 22:27 [PATCH] Rearrange git-format-patch synopsis to improve clarity David Symonds
2007-11-05 21:22 ` Junio C Hamano
2007-11-05 22:32 ` David Symonds
2007-11-05 22:48   ` Andreas Ericsson
2007-11-05 22:56     ` David Symonds
2007-11-06 15:01   ` Jon Loeliger
2007-11-06 21:08     ` David Symonds

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).