From: Sverre Rabbelier <srabbelier@gmail.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>,
Git List <git@vger.kernel.org>
Subject: Re: [RFC PATCH 0/3] fast-import: add option command
Date: Sun, 2 Aug 2009 21:31:54 -0700 [thread overview]
Message-ID: <fabb9a1e0908022131m454aee84laa5d276bba8b10e1@mail.gmail.com> (raw)
In-Reply-To: <20090803001522.GE1033@spearce.org>
Heya,
On Sun, Aug 2, 2009 at 17:15, Shawn O. Pearce<spearce@spearce.org> wrote:>
> Since you are changing the language format, please also update the
> documentation of the language.
Of course, but I wanted to know whether the change'd be accepted first :).
> It might be cleaner to say "option foo=value\n" because then the
> if block to parse the command line and the if block to parse the
> input stream are the same. When parsing argv just skip the "--"
> and pass the rest of the argv value into the function, when parsing
> the stream, just skip the "option " and pass the rest of the line
> into the function.
sounds like a good idea, will do.
> This has come up before on the list. We had somewhat decided against
> setting options in the stream header. The only option class that
> really impacts the data itself is the date format, all others
> are about local file paths or how noisy the command should be.
> Thus we decided that the frontend should invoke `git fast-import`
> itself if it cared about these options, and that's what any typical
> frontend does.
Hmmm, yes, I guess that's possible, but that would require the
frontend to shell out, whereas the option-based approach is easier to
the user without requiring the frontend to know how to invoke git. And
while the only option that impacts the data format is the date format,
the import and export marks are very relevant when the frontend wants
to do post-processing of the exported repository. I guess the question
is, do we want to require frontends to create a wrapper around
'frontend | git fast-import --all-my=options', or is just "fronted |
git fast-import" desirable enough that we want to allow this?
--
Cheers,
Sverre Rabbelier
prev parent reply other threads:[~2009-08-03 4:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-02 1:29 option directive to fast-import Sverre Rabbelier
2009-08-02 5:06 ` [RFC PATCH 0/3] fast-import: add option command Sverre Rabbelier
2009-08-02 5:06 ` [RFC PATCH 1/2] fast-import: put option parsing code in seperate functions Sverre Rabbelier
2009-08-02 5:06 ` [RFC PATCH 2/2] fast-import: add option command Sverre Rabbelier
2009-08-02 5:06 ` [RFC PATCH 3/3] fast-import: test the new " Sverre Rabbelier
2009-08-02 7:09 ` [RFC PATCH v1a 1/3] fast-import: put option parsing code in seperate functions Sverre Rabbelier
2009-08-03 0:15 ` [RFC PATCH 0/3] fast-import: add option command Shawn O. Pearce
2009-08-03 4:31 ` Sverre Rabbelier [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=fabb9a1e0908022131m454aee84laa5d276bba8b10e1@mail.gmail.com \
--to=srabbelier@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=spearce@spearce.org \
/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 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).