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

Re: Tentative built-in "git show"

From
Junio C Hamano <junkio@cox.net>
Date
Apr 15, 2006, 19:28 UTC
Message-ID
<7v3bgefxkp.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0604151203060.3701@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> This uses the "--no-walk" flag that I never actually implemented (but I'm 
> sure I mentioned it) to make "git show" be essentially the same thing as 
> "git whatchanged --no-walk".

I sometimes do "git show -4" myself, and wondered why defaulting to "-n 1"is insufficient, but if you do something like this to check the tip of each branch:

	git show master next pu
this may make sense.

Otherwise, it feels to me that (I haven't had caffeine nor nicotine yet, so I need to re-think this later) log, show and whatchanged are the same program in disguise with different set of defaults.

        log		--pretty
        show		--pretty -n1 -p
        whatchanged	--pretty -r

... which implies that some of them might become historical curiosity and no real reason to teach about each of them in the tutorial.

Previous: Linus TorvaldsNext: Linus Torvalds
Message 2 of 3 in “Tentative built-in "git show"”
  1. Linus TorvaldsApr 15, 2006
  2. Junio C HamanoApr 15, 2006
  3. Linus TorvaldsApr 15, 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.