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

Re: Reference to a commit inside a commit message

From
Jeff King <peff@peff.net>
Date
Apr 29, 2014, 03:41 UTC
Message-ID
<20140429034128.GD11979@sigill.intra.peff.net>
In-Reply-To
<20140428183552.GA9709@workstation.Belkin>
On Mon, Apr 28, 2014 at 08:35:52PM +0200, enzodicicco@gmail.com wrote:
> For example, thinking about it, I've imagined to add this feature to `git commit`:
> 
>     git commit --see-also <commit1> <commit2> ...

Jonathan mentioned already that we typically just do this by hand[1], though look on the list for the "interpret-trailers" work being done by Christian. It would make it very easy to add:

  See-also: ....

lines to the bottom of your commit using a command like the above. I don't know if it would be easy to convert refnames into commit ids with it or not. You'd have to look.

-Peff
[1] I do not know about others, but I typically cut and paste from
    another terminal, and use the following alias in my config:
      [alias]
      ll = "!git --no-pager log -1 --pretty='tformat:%h (%s, %ad)' --date=short"
Previous: Vincenzo di CiccoNext: Felipe Contreras
Message 4 of 7 in “Reference to a commit inside a commit message”
  1. enzodicicco@gmail.comApr 28, 2014
  2. Jonathan NiederApr 28, 2014
  3. Vincenzo di CiccoApr 28, 2014
  4. Jeff KingApr 29, 2014
  5. Felipe ContrerasApr 29, 2014
  6. Vincenzo di CiccoApr 29, 2014
  7. Vincenzo di CiccoApr 30, 2014

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.