git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: git@vger.kernel.org
Subject: Re: Reference to a commit inside a commit message
Date: Mon, 28 Apr 2014 23:41:28 -0400	[thread overview]
Message-ID: <20140429034128.GD11979@sigill.intra.peff.net> (raw)
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"

  parent reply	other threads:[~2014-04-29  3:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-28 18:35 Reference to a commit inside a commit message enzodicicco
2014-04-28 19:55 ` Jonathan Nieder
2014-04-28 20:43   ` Vincenzo di Cicco
2014-04-29  3:41 ` Jeff King [this message]
2014-04-29  7:57   ` Felipe Contreras
2014-04-29 23:23     ` Vincenzo di Cicco
     [not found]       ` <CAP8UFD1q2zdJZVkJVsNtGfN35LFmuK5txd91nTak5kGmvvKdWA@mail.gmail.com>
2014-04-30 18:29         ` Vincenzo di Cicco

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140429034128.GD11979@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).