From: Jakub Narebski <jnareb@gmail.com>
To: Alexander Shishkin <ash@koowaldah.org>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH/RFC] pretty.c: add %O format specifier to format_commit_one()
Date: Sat, 01 May 2010 12:39:48 -0700 (PDT) [thread overview]
Message-ID: <m3fx2bcsze.fsf@localhost.localdomain> (raw)
In-Reply-To: <20100501175601.GB27062@shisha.kicks-ass.net>
Alexander Shishkin <ash@koowaldah.org> writes:
> On Sat, May 01, 2010 at 10:18:35 -0700, Junio C Hamano wrote:
> > Alexander Shishkin <ash@koowaldah.org> writes:
> >
> > > This specifier represents the number of each commit in the output
> > > stream.
> >
> > I don't like this. What does such a number _mean_ in a non-linear
> > history?
>
> My idea is to have something like
>
> $ git log --pretty=oneline | nl | less -R
>
> This is generally useful when my local topic branch contains more than 5
> (or so) commits and I can't immediately see which one's which if I want
> to do a
>
> $ git show HEAD~$n
>
> to see what's inside, which is useful when reordering and/or squashing
> commits by an interactive rebase. So this %O gives me this $n quicker
> than counting.
Wouldn't somthing like
git log --pretty=oneline | git name-rev --stdin | less -R
be good enough?
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2010-05-01 19:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-01 10:56 [PATCH/RFC] pretty.c: add %O format specifier to format_commit_one() Alexander Shishkin
2010-05-01 17:18 ` Junio C Hamano
2010-05-01 17:56 ` Alexander Shishkin
2010-05-01 19:39 ` Jakub Narebski [this message]
2010-05-02 4:55 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3fx2bcsze.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=ash@koowaldah.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).