From: Daniel Wagner <wagi@monom.org>
To: git@vger.kernel.org
Subject: 'git log' numbering commits?
Date: Thu, 12 Apr 2012 09:54:12 +0200 [thread overview]
Message-ID: <4F868A24.9090004@monom.org> (raw)
Hi,
I have a stupid question I could not answer myself when reading the
excellent documentation.
My workflow involves a lot of "git rebase -i". For figuring out which
commit id to use I do first a 'git log --oneline'. Then I do copy past
the id to the 'git rebase -i'. The reason why I don't use relative
id such as HEAD~4, because I keep miscounting the commits.
So my question is there a magic option to have git log to enumerate the
commits, e.g.
1: 2fcd2b3 network: Remove unused function
2: b376b2a session: Fix introspection for Change()
3: 15c9cd0 wifi: Refactor desctruction of network object
4: a9c699f network: Remove device pointer in network_remove()
[...]
cheers,
daniel
next reply other threads:[~2012-04-12 8:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-12 7:54 Daniel Wagner [this message]
2012-04-12 8:41 ` 'git log' numbering commits? Jeff King
2012-04-12 9:15 ` Daniel Wagner
2012-04-12 18:14 ` Philippe Vaucher
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=4F868A24.9090004@monom.org \
--to=wagi@monom.org \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.