* [PATCH/RFC] Documentation/git-mailsplit.txt: Emphasize -o more
@ 2009-01-12 21:28 jidanni
2009-01-12 22:06 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: jidanni @ 2009-01-12 21:28 UTC (permalink / raw)
To: git
The need for -o cannot be overstated. Else the arguments get
interpreted differently. We also mention the output.
(By the way, "fatal: unknown option: -o" is seen if a space comes
after it.)
Signed-off-by: jidanni <jidanni@jidanni.org>
---
Documentation/git-mailsplit.txt | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/Documentation/git-mailsplit.txt b/Documentation/git-mailsplit.txt
index 5cc94ec..5dc24c9 100644
--- a/Documentation/git-mailsplit.txt
+++ b/Documentation/git-mailsplit.txt
@@ -13,10 +13,18 @@ DESCRIPTION
-----------
Splits a mbox file or a Maildir into a list of files: "0001" "0002" .. in the
specified directory so you can process them further from there.
+The number of files produced is printed to the standard output.
IMPORTANT: Maildir splitting relies upon filenames being sorted to output
patches in the correct order.
+REQUIRED OPTIONS
+-------
+-o<directory>::
+ Directory in which to place the individual messages.
+ -o is required or else arguments may be misinterpreted in a
+ backwards compatibility mode.
+
OPTIONS
-------
<mbox>::
@@ -27,9 +35,6 @@ OPTIONS
Root of the Maildir to split. This directory should contain the cur, tmp
and new subdirectories.
--o<directory>::
- Directory in which to place the individual messages.
-
-b::
If any file doesn't begin with a From line, assume it is a
single mail message instead of signaling error.
--
1.6.0.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH/RFC] Documentation/git-mailsplit.txt: Emphasize -o more
2009-01-12 21:28 [PATCH/RFC] Documentation/git-mailsplit.txt: Emphasize -o more jidanni
@ 2009-01-12 22:06 ` Junio C Hamano
2009-01-12 22:55 ` jidanni
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2009-01-12 22:06 UTC (permalink / raw)
To: jidanni; +Cc: git
jidanni@jidanni.org writes:
> The need for -o cannot be overstated. Else the arguments get
> interpreted differently.
I do not think there is any ambiguity with the existing SYNOPSIS.
'git mailsplit' [-b] [-f<nn>] [-d<prec>] -o<directory> [--] [<mbox>|<Maildir>...]
> +REQUIRED OPTIONS
> +-------
> +-o<directory>::
> + Directory in which to place the individual messages.
> + -o is required or else arguments may be misinterpreted in a
> + backwards compatibility mode.
> +
I think you are being overly alarmist without being helpful.
You hint that there is a backwards compatible syntax but you do not say
what it is, and you hint that the backwards compatible syntax is bad in
some unspecified way by saying "misinterpreted", without substantiating
the claim in any way.
The worst part in the new description is "may be", which only injects FUD
("is my use trigger that pitfall? how do I decide? the manual page does
not say!") without being helpful at all to the readers.
Probably a better alternative would be to describe what the backward
compatible syntax is and what it does (which I won't do here), and mention
something like the attached patchlet, without moving where -o<dir> is
described, _if_ you want to talk about it.
diff --git i/Documentation/git-mailsplit.txt w/Documentation/git-mailsplit.txt
index 5cc94ec..1b12014 100644
--- i/Documentation/git-mailsplit.txt
+++ w/Documentation/git-mailsplit.txt
@@ -28,7 +28,10 @@ OPTIONS
and new subdirectories.
-o<directory>::
- Directory in which to place the individual messages.
+ Directory in which to place the individual messages. This option
+ is required in a modern usage of the command; when omitted, the
+ arguments are parsed differently and the command works in a
+ backward compatible mode (see below).
-b::
If any file doesn't begin with a From line, assume it is a
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH/RFC] Documentation/git-mailsplit.txt: Emphasize -o more
2009-01-12 22:06 ` Junio C Hamano
@ 2009-01-12 22:55 ` jidanni
0 siblings, 0 replies; 3+ messages in thread
From: jidanni @ 2009-01-12 22:55 UTC (permalink / raw)
To: gitster; +Cc: git
All I know is the user had better not forget -o<directory> or else his
precious mailbox will be interpreted as something else... Actually the
problem is with builtin-mailsplit.c,
$ git mailsplit -o
fatal: unknown option: -o
One big tangle. So I would just say
+ certain backward compatibility mode (that we won't detail here).
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-12 22:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12 21:28 [PATCH/RFC] Documentation/git-mailsplit.txt: Emphasize -o more jidanni
2009-01-12 22:06 ` Junio C Hamano
2009-01-12 22:55 ` jidanni
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).