git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] init-db: migrate to parse-options

From
Michał Kiedrowicz <michal.kiedrowicz@gmail.com>
Date
Jul 12, 2009, 18:37 UTC
Message-ID
<20090712203716.20ac4261@gmail.com>
In-Reply-To
<7v8witn4e5.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> wrote:
Show 31 quoted lines
> Michał Kiedrowicz <michal.kiedrowicz@gmail.com> writes:
> 
> > Also add missing --bare to init-db synopsis.
> >
> > Signed-off-by: Michał Kiedrowicz <michal.kiedrowicz@gmail.com>
> > ---
> >  Documentation/git-init-db.txt |    2 +-
> >  builtin-init-db.c             |   51
> > ++++++++++++++++++++++++----------------- 2 files changed, 31
> > insertions(+), 22 deletions(-)
> 
> The subject says patch v2 but there is no description since the
> previous round, nor ...
> 
> > diff --git a/Documentation/git-init-db.txt
> > b/Documentation/git-init-db.txt index 1fd0ff2..eba3cb4 100644
> > --- a/Documentation/git-init-db.txt
> > +++ b/Documentation/git-init-db.txt
> > @@ -8,7 +8,7 @@ git-init-db - Creates an empty git repository
> >  ...
> > diff --git a/builtin-init-db.c b/builtin-init-db.c
> > index 4a56006..d68f61b 100644
> > --- a/builtin-init-db.c
> > +++ b/builtin-init-db.c
> > @@ -6,6 +6,7 @@
> > ...
> 
> ... I see any change in the blob object name recorded on the index
> line.
> 
> What is going on?

I just added "PARSE_OPT_NONEG" flag to "shared" option in reply to Stephen's comment:

Stephen Boyd <bebarino@gmail.com> wrote:
> Or you can add PARSE_OPT_NONEG here and avoid the above comment.
Sorry I haven't described the change, I just thought it was obvious.
BTW: There is a difference:
> diff --git a/builtin-init-db.c b/builtin-init-db.c
> index 4a56006..9b1ce45 100644
and 
> diff --git a/builtin-init-db.c b/builtin-init-db.c
> index 4a56006..d68f61b 100644
-- 
Michał Kiedrowicz
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 7 in “init-db: migrate to parse-options”
  1. init-db: migrate to parse-optionsMichał Kiedrowicz, Jul 11, 2009
  2. Stephen BoydJul 12, 2009
  3. init-db: migrate to parse-optionsMichał Kiedrowicz, Jul 12, 2009
  4. Junio C HamanoJul 12, 2009
  5. Michał KiedrowiczJul 12, 2009
  6. Junio C HamanoJul 12, 2009
  7. Stephen BoydJul 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.