Re: Simplify '--prett=xyz' options
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 15, 2009, 20:22 UTC
- Message-ID
- <alpine.DEB.1.00.0908152220060.8306@pacific.mpi-cbg.de>
- In-Reply-To
- <alpine.LFD.2.01.0908151156510.3162@localhost.localdomain>
Hi,
On Sat, 15 Aug 2009, Linus Torvalds wrote:
> > I keep on thinking that I can write > > git log --format:'%aN: %s'
You mean as opposed to "--format=%aN:\ %s" (which works)?
> Now I just need a patch to make me athletic and handsome.
I thought that already happened? /me remembers seeing a youtube video with you in speedos.
Show 9 quoted lines
> diff --git a/revision.c b/revision.c
> index 9f5dac5..181593f 100644
> --- a/revision.c
> +++ b/revision.c
> @@ -1192,6 +1192,8 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
> } else if (!strcmp(arg, "--children")) {
> revs->children.name = "children";
> revs->limited = 1;
> + } else if (!strncmp(arg, "--", 2) && try_get_commit_format(arg+2, revs)) {prefixcmp?
Ciao, Dscho