From: "Shawn O. Pearce" <spearce@spearce.org>
To: newren@gmail.com
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH] Correct missing SP characters in grammar comment at top of fast-import.c
Date: Wed, 25 Mar 2009 14:26:33 -0700 [thread overview]
Message-ID: <20090325212633.GB23521@spearce.org> (raw)
In-Reply-To: <1238016133-13509-1-git-send-email-newren@gmail.com>
newren@gmail.com wrote:
> From: Elijah Newren <newren@gmail.com>
>
> Signed-off-by: Elijah Newren <newren@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
> Some point after discovering this 'bug', I noticed that the documentation
> in Documentation/git-fast-import.txt was accurate, so I added a comment at
> the top of the file pointing people at that document, as I suspect it is
> more likely to be kept up to date. If my assumption is wrong, or would
> prefer different wording, I'm all ears.
Good catch. The grammar at the top of the file should be more
accurate than the documentation you point to. This was just a
thinko when I wrote the grammar out in the header.
> diff --git a/fast-import.c b/fast-import.c
> index beeac0d..db44da3 100644
> --- a/fast-import.c
> +++ b/fast-import.c
> @@ -1,4 +1,5 @@
> /*
> +(See Documentation/git-fast-import.txt for maintained documentation.)
> Format of STDIN stream:
>
> stream ::= cmd*;
> @@ -18,8 +19,8 @@ Format of STDIN stream:
>
> new_commit ::= 'commit' sp ref_str lf
> mark?
> - ('author' sp name '<' email '>' when lf)?
> - 'committer' sp name '<' email '>' when lf
> + ('author' sp name sp '<' email '>' sp when lf)?
> + 'committer' sp name sp '<' email '>' sp when lf
> commit_msg
> ('from' sp (ref_str | hexsha1 | sha1exp_str | idnum) lf)?
> ('merge' sp (ref_str | hexsha1 | sha1exp_str | idnum) lf)*
> @@ -43,7 +44,7 @@ Format of STDIN stream:
>
> new_tag ::= 'tag' sp tag_str lf
> 'from' sp (ref_str | hexsha1 | sha1exp_str | idnum) lf
> - ('tagger' sp name '<' email '>' when lf)?
> + ('tagger' sp name sp '<' email '>' sp when lf)?
> tag_msg;
> tag_msg ::= data;
>
> --
> 1.6.0.6
>
--
Shawn.
prev parent reply other threads:[~2009-03-25 21:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 21:22 [PATCH] Correct missing SP characters in grammar comment at top of fast-import.c newren
2009-03-25 21:26 ` Shawn O. Pearce [this message]
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=20090325212633.GB23521@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=newren@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.