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

Re: Reference to a commit inside a commit message

From
Vincenzo di Cicco <enzodicicco@gmail.com>
Date
Apr 29, 2014, 23:23 UTC
Message-ID
<CAKOJyXfHKwRXA==M2TaPNT-ZwLPF8YQeEoBoxbe-s6Q+UQgL0Q@mail.gmail.com>
In-Reply-To
<535f5b6a41ff6_45e485b3087b@nysa.notmuch>

Thanks to all. With interpret-trailers has been easy to make a simple script, also it checks if the Hash passed is a valid Object. I haven't found a simple way to mantain the blank line above the output of interpet-trailers (not even through cleanup). Follows the script, maybe could be usefull for somebody:

#!/bin/sh
for i in $*
do
    git show $i &> /dev/null
    if [ $? = 0 ]
    then
        trailers+=" see-also=$i"
    fi
done
msg=$(cat /dev/null | ../git-interpret-trailers $trailers)
git commit -m "$msg" -e
Previous: Felipe ContrerasNext: Vincenzo di Cicco
Message 6 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.