Re: Reference to a commit inside a commit message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 28, 2014 at 08:35:52PM +0200, enzodicicco@xxxxxxxxx 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"
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]