Re: Git log of all (modifying) commands run on a repo?

From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Date: 2007-02-08 11:41:39
Hi,

On Wed, 7 Feb 2007, Junio C Hamano wrote:

> Linus Torvalds <torvalds@linux-foundation.org> writes:
> 
> > With "--pretty=oneline --abbrev-commit" I'll agree that it's actually 
> > fairly pretty.
> >
> > Maybe we can make "-g" default to that? As it is, I'd otherwise still use 
> > "less" just because there is less typing...
> >
> > 			Linus
> 
> Well, you would not know if the user gave you '-g' before you
> ask setup_revisions() to parse the options, and once you let it
> do its thing, you would not know if it also found an explicit
> output format given by the end user, so your cannot sanely make
> default depend on '-g'.
> 
> I suspect that it would have to be either somewhat involved or
> outright hacky.  

Well, we could always make CMIT_FMT_DEFAULT _not_be the same as _MEDIUM, 
and if it still is the same _after_ parsing the options, set it to MEDIUM 
explicitely. Same goes for the abbrev thing.

Ciao,
Dscho

-
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
Received on Thu Feb 08 11:45:35 2007

This archive was generated by hypermail 2.1.8 : 2007-02-08 11:57:59 EST