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

Re: gitk from subdirectory

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Aug 31, 2007, 05:08 UTC
Message-ID
<alpine.LFD.0.999.0708302200160.25853@woody.linux-foundation.org>
In-Reply-To
<7vabs85ntg.fsf@gitster.siamese.dyndns.org>
On Thu, 30 Aug 2007, Junio C Hamano wrote:
Show 6 quoted lines
> 
> I am wondering if this was intended behaviour change.  I think
> it makes sense to want an easy way to say "what changed stuff in
> the directory I am in?" because presumably you are there because
> you are interested in stuff in there.  But if you hard code "--"
> it is not easy to disable that and get the global log.

Hmm. My reaction to this would be that it was a mistake to have a difference between

	git log --
and
	git log
and that we should instead fix this at the argument parsing level. 

And then anybody who depended on the old "--" behaviour can just add a "." at the end.

That way there are no special cases.

I realize that the "--" behaviour of git log was intentional, but seeing what it results in I think the intention was good, but stupid.

		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 9 in “gitk from subdirectory”
  1. Junio C HamanoAug 31, 2007
  2. Junio C HamanoAug 31, 2007
  3. Linus TorvaldsAug 31, 2007
  4. Junio C HamanoAug 31, 2007
  5. Junio C HamanoAug 31, 2007
  6. Junio C HamanoAug 31, 2007
  7. Junio C HamanoAug 31, 2007
  8. Linus TorvaldsAug 31, 2007
  9. Junio C HamanoAug 31, 2007

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.