Re: Inconsistencies with git log

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Friday, November 9, 2007 - 10:38 am

On Fri, 9 Nov 2007, Jon Smirl wrote:

No. The summary is that *you* are confused.

The fact is, "git log" always has given the whole log, and there is no 
confusion at all. The only people who may be confused are people who 
misread the documentation on purpose, or who came from some broken other 
SCM, and are confused just because of *that*.

Git makes it very clear indeed at all points that it tracks whole history. 
It's a big deal. We *make* a big deal about it, and "git log" follows that 
very consistently.

In fact, even at the top-of-tree, "git log" and "git log ." are two 
totally different things, even if in practice the differences are often 
hard to see. But one gives the "full history", and the other gives the 
"simplified history for the pathnames given", and the two are REALLY 
REALLY different.

Try it. Do

	git log origin/pu > full
	git log origin/pu . > limited

in the git tree, and look at the differences (it might be useful to use 
gitk instead, and look at where the differences start! That visual 
difference is going to give you a lot more of an "Ahaa!" moment when you 
understand it). When you can explain and understand those differences, 
then you *really* understand git (and quite frankly, it's actually rather 
simple, but you have to really *think* about what those things things 
are).

Now, for normal use you never need to really to care. Git does a lot of 
things, and some random user will seldom need the full power of git, nor 
do they need to really care about why "git log ." and "git log" are 
actually not the same thing at all, even at the top level.

But you're blaming git for your *own* confusion, which probably comes from 
crap systems that don't even know what "history" is because they can't 
really track it right anyway.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Inconsistencies with git log, Jon Smirl, (Wed Nov 7, 3:15 pm)
Re: Inconsistencies with git log, Johannes Schindelin, (Wed Nov 7, 3:42 pm)
Re: Inconsistencies with git log, Jon Smirl, (Wed Nov 7, 3:45 pm)
Re: Inconsistencies with git log, Johannes Schindelin, (Wed Nov 7, 3:58 pm)
Re: Inconsistencies with git log, David Symonds, (Wed Nov 7, 4:00 pm)
Re: Inconsistencies with git log, Jon Smirl, (Wed Nov 7, 4:03 pm)
Re: Inconsistencies with git log, Johannes Schindelin, (Wed Nov 7, 4:11 pm)
Re: Inconsistencies with git log, Jon Smirl, (Wed Nov 7, 4:16 pm)
Re: Inconsistencies with git log, Brian Gernhardt, (Wed Nov 7, 4:19 pm)
Re: Inconsistencies with git log, Jon Smirl, (Wed Nov 7, 4:29 pm)
Re: Inconsistencies with git log, David Symonds, (Wed Nov 7, 4:31 pm)
Re: Inconsistencies with git log, Johannes Schindelin, (Wed Nov 7, 5:04 pm)
Re: Inconsistencies with git log, Jon Smirl, (Wed Nov 7, 5:09 pm)
Re: Inconsistencies with git log, Johannes Schindelin, (Wed Nov 7, 5:09 pm)
[PATCH 1/2] Makefile: wt-status.h is also a lib header, Johannes Schindelin, (Wed Nov 7, 5:10 pm)
Re: Inconsistencies with git log, Andreas Ericsson, (Wed Nov 7, 5:11 pm)
[PATCH 2/2] git status: show relative paths when run in a ..., Johannes Schindelin, (Wed Nov 7, 5:12 pm)
Re: Inconsistencies with git log, David Symonds, (Wed Nov 7, 5:14 pm)
Re: Inconsistencies with git log, Andreas Ericsson, (Wed Nov 7, 5:16 pm)
Re: Inconsistencies with git log, Johannes Schindelin, (Wed Nov 7, 5:35 pm)
Re: Inconsistencies with git log, Brian Gernhardt, (Wed Nov 7, 5:52 pm)
Re: [PATCH 2/2] git status: show relative paths when run i ..., Johannes Schindelin, (Wed Nov 7, 6:00 pm)
Re: Inconsistencies with git log, Peter Baumann, (Thu Nov 8, 1:29 am)
Re: Inconsistencies with git log, Wincent Colaiuta, (Thu Nov 8, 2:19 am)
Re: Inconsistencies with git log, Wincent Colaiuta, (Thu Nov 8, 2:24 am)
Re: Inconsistencies with git log, David Symonds, (Thu Nov 8, 6:16 am)
Re: Inconsistencies with git log, Andreas Ericsson, (Thu Nov 8, 6:40 am)
Re: Inconsistencies with git log, Daniel Barkalow, (Thu Nov 8, 11:28 am)
Re: Inconsistencies with git log, Alex Riesen, (Thu Nov 8, 2:21 pm)
Re: Inconsistencies with git log, Alex Riesen, (Thu Nov 8, 2:23 pm)
[PATCH REPLACEMENT for 2/2] git status: show relative path ..., Johannes Schindelin, (Fri Nov 9, 8:30 am)
Re: Inconsistencies with git log, Linus Torvalds, (Fri Nov 9, 8:54 am)
Re: Inconsistencies with git log, Jon Smirl, (Fri Nov 9, 10:20 am)
Re: Inconsistencies with git log, Linus Torvalds, (Fri Nov 9, 10:38 am)
Re: Inconsistencies with git log, Linus Torvalds, (Fri Nov 9, 10:53 am)
Re: Inconsistencies with git log, Jon Smirl, (Fri Nov 9, 11:04 am)
Re: Inconsistencies with git log, Linus Torvalds, (Fri Nov 9, 11:14 am)
Re: Inconsistencies with git log, Peter Baumann, (Fri Nov 9, 11:22 am)
Re: Inconsistencies with git log, Junio C Hamano, (Fri Nov 9, 11:35 am)
Re: Inconsistencies with git log, Linus Torvalds, (Fri Nov 9, 11:36 am)
Re: Inconsistencies with git log, Peter Baumann, (Fri Nov 9, 11:39 am)
Re: [PATCH REPLACEMENT for 2/2] git status: show relative ..., Johannes Schindelin, (Sat Nov 10, 7:10 am)
Re: Inconsistencies with git log, Miles Bader, (Sat Nov 10, 3:51 pm)