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"