Re: git-rev-list: make --dense the default (and introduce "--sparse")
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Oct 25, 2005, 22:29 UTC
- Message-ID
- <Pine.LNX.4.64.0510251525540.10477@g5.osdl.org>
- In-Reply-To
- <Pine.LNX.4.64.0510251459070.10477@g5.osdl.org>
On Tue, 25 Oct 2005, Linus Torvalds wrote:
Show 11 quoted lines
> > 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 effects.
For example, try this:
git log git-fetch.sh
and notice how "git log" automagically became able to give per-file logs. With _zero_ changes to git-log.sh 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".
Magic.
Linus