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

Re: [PATCH] git-init: treat option `--bare'

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 29, 2008, 13:51 UTC
Message-ID
<alpine.DEB.1.00.0805291448161.13507@racer.site.net>
In-Reply-To
<7vzlqaq67h.fsf@gitster.siamese.dyndns.org>
Hi,
On Wed, 28 May 2008, Junio C Hamano wrote:
> In general, I am not particularly fond of this kind of special casing, 
> but initializing a bare repository would be a common enough operation 
> that I personally think it is probably Ok to take this as an exception.

I like the Perl way (having multiple options to do the same thing), and do not like the Python way ("there is only one way to do one thing").

> Opinions?  Breakages?

I like the intent of the patch. It will definitely make initializing bare Git repositories easier for new users.

Also keep in mind that "git --bare <some-command-other-than-init" is _really_ rare, at least in my experience. I had to use it exactly _twice_ since I started using Git.

Ciao, Dscho

Previous: Luciano RochaNext: Junio C Hamano
Message 11 of 12 in “bare --init Vs --init bare”
  1. Luciano RochaMay 19, 2008
  2. Santi BéjarMay 19, 2008
  3. Luciano RochaMay 19, 2008
  4. git-init: inform user of `git --bare init' optionLuciano Rocha, May 20, 2008
  5. Junio C HamanoMay 23, 2008
  6. Luciano RochaMay 23, 2008
  7. git-init: treat option `--bare'Luciano Rocha, May 28, 2008
  8. Luciano RochaMay 28, 2008
  9. Junio C HamanoMay 29, 2008
  10. Luciano RochaMay 29, 2008
  11. Johannes SchindelinMay 29, 2008
  12. Junio C HamanoMay 29, 2008

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.