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

Re: git log is a bit antisocial

From
SPSébastien Pierre <sebastien@xprima.com>
Date
Apr 14, 2006, 22:15 UTC
Message-ID
<1145052905.27704.8.camel@localhost.localdomain>
In-Reply-To
<7vu08volrp.fsf@assigned-by-dhcp.cox.net>
Le vendredi 14 avril 2006 à 15:06 -0700, Junio C Hamano a écrit :
> Have you read the patch, especially the comment in it?  With and
> without the patch, this command would behave quite differently:

I did not realize that at first (I thought this would be a fallback method).

Anyway, on git 1.2.3, here is something interesting:
>> git log -h
fatal: Not a git repository
>> git log --help
Usage: /home/sebastien/Local/bin/git-log [--max-count=<n>]
[<since>..<limit>] [--pretty=<format>] [git-rev-list options]

Which is confusing, so having a consistent behaviour for "git help cmd", "git cmd help", "git cmd -h" and "git cmd --help" would be nice.

For instance, Darcs works just like that, which makes it easy for newbies to find there ways through.

 -- Sébastien
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 8 in “git log is a bit antisocial”
  1. Nicolas PitreApr 14, 2006
  2. Junio C HamanoApr 14, 2006
  3. Nicolas PitreApr 14, 2006
  4. Junio C HamanoApr 14, 2006
  5. Sébastien PierreApr 14, 2006
  6. Junio C HamanoApr 14, 2006
  7. Sébastien PierreApr 14, 2006
  8. Junio C HamanoApr 14, 2006

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.