Re: git-rev-list: make --dense the default (and introduce "--sparse")

From: Linus Torvalds <>
Date: 2005-10-26 08:29:42
On Tue, 25 Oct 2005, Linus Torvalds wrote:
> This actually does three things:
>  - make "--dense" the default for git-rev-list. Since dense is a no-op if 
>    no filenames are given, this doesn't actually change any historical 
>    behaviour, but it's logically the right default (if we want to prune on 
>    filenames, do it fully. The sparse "merge-only" thing may be useful, 
>    but it's not what you'd normally expect)
>  - make "git-rev-parse" show the default revision control before it shows 
>    any pathnames.

Btw, if it wasn't obvious, this has some subtle (and very nice) side 

For example, try this:

	git log

and notice how "git log" automagically became able to give per-file logs. 
With _zero_ changes to itself ;)

And same old rev-confusion-avoidance:

	git log -- gitk

to make clear that you want to get the log of "gitk the file", rather than 
"gitk the branch".


To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at
Received on Wed Oct 26 08:30:23 2005

This archive was generated by hypermail 2.1.8 : 2005-10-26 08:30:27 EST