git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Ingo MolnarNext: Jeff King
Message 9 of 11 in “[irq/urgent]: created 3786fc7: "irq: make variable static"”
  1. Ingo MolnarOct 22, 2008
  2. Santi BéjarOct 22, 2008
  3. Ingo MolnarOct 22, 2008
  4. René ScharfeOct 26, 2008
  5. Andreas EricssonOct 22, 2008
  6. Ingo MolnarOct 22, 2008
  7. Andreas EricssonOct 22, 2008
  8. Ingo MolnarOct 22, 2008
  9. Jakub NarebskiOct 22, 2008
  10. Jeff KingOct 22, 2008
  11. Johannes SchindelinOct 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.