Re: [irq/urgent]: created 3786fc7: "irq: make variable static"
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Oct 22, 2008, 10:50 UTC
- Message-ID
- <m3ljwgj3xy.fsf@localhost.localdomain>
- In-Reply-To
- <20081022061730.GA5749@elte.hu>
Ingo Molnar <mingo@elte.hu> writes:
Show 14 quoted lines
> Git recently started printing the branch name when creating commits: > > [irq/urgent]: created 3786fc7: "irq: make variable static" > > very nice idea IMO! Having it all on one line allows me to double-check > that i indeed queued up a patch in the intended topic branch. Had it > read: > > [irq/urgent]: created 3786fc7: "printk: make variable static" > > i'd have noticed the mistake immediately. > > this welcome enhancement made me remember of three usage problems i had > with Git recently:
[...]
About printing either forward (git-describe, e.g. v1.6.0.2-590-g67f6062) or backward (git-name-rev, e.g. tags/v1.6.0-rc2~8): you can use git-name-rev in filter mode (git log ... | git name-rev --stdin), or "git log --decorate", or '%d' in --pretty format specifier (this is very new thing).
You might be also interested in --abbrev-commit (when used with --pretty=oneline format), and --graph option to git-log (or git-show-branch). The "(--merged | --no-merged | --contains) [<commit>]" options to git-branch might be also of interest...
-- Jakub Narebski Poland ShadeHawk on #git