git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luciano Rocha <luciano@eurotux.com>
To: Junio C Hamano <junio@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-init: inform user of `git --bare init' option
Date: Fri, 23 May 2008 15:24:32 +0100	[thread overview]
Message-ID: <20080523142432.GA8360@bit.office.eurotux.com> (raw)
In-Reply-To: <7vy761sgks.fsf@gitster.siamese.dyndns.org>

[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]

On Thu, May 22, 2008 at 11:02:59PM -0700, Junio C Hamano wrote:
> Luciano Rocha <luciano@eurotux.com> writes:
> 
> > Creation of a bare repository isn't consistent:
> >
> > $ git init --bare
> > usage: git-init [-q | --quiet] [--template=<template-directory>] [--shared]
> > $ git --bare init
> > Initialized empty Git repository in ...
> 
> The examples do not demonstrate that "it isn't consistent".  It just
> demonstrates that it is easy for people to forget that --bare option is an
> option to the "git" potty itself and not an option to "git init".

Well, "git --help init" works the same as "git init --help", so "--bare"
not working depending on its position isn't very consistent...

<patch snipped>
> Given that you are adding a special case support for "git init --bare"
> anyway, a better approach to help people out of this easy confusion (and
> we have to admit that the confusion is very easy!) would be to make "git
> init --bare" pretend/behave as if the user said "git --bare init", don't
> you think?

Yes, but this was easy for me to do. The proper way, however, will take
me more time.

-- 
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-05-23 14:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-19 17:53 bare --init Vs --init bare Luciano Rocha
2008-05-19 19:32 ` Santi Béjar
2008-05-19 20:10   ` Luciano Rocha
2008-05-20 19:48 ` [PATCH] git-init: inform user of `git --bare init' option Luciano Rocha
2008-05-23  6:02   ` Junio C Hamano
2008-05-23 14:24     ` Luciano Rocha [this message]
2008-05-28 18:51     ` [PATCH] git-init: treat option `--bare' Luciano Rocha
2008-05-28 18:53       ` Luciano Rocha
2008-05-29  0:55         ` Junio C Hamano
2008-05-29  9:10           ` Luciano Rocha
2008-05-29 13:51           ` Johannes Schindelin
2008-05-29 18:31             ` Junio C Hamano

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=20080523142432.GA8360@bit.office.eurotux.com \
    --to=luciano@eurotux.com \
    --cc=git@vger.kernel.org \
    --cc=junio@pobox.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 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).