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.