Re: [RFC/PATCH] commit notes workflow
- From
- Michel Lespinasse <walken@google.com>
- Date
- Mar 8, 2011, 12:39 UTC
- Message-ID
- <AANLkTi=ybDr61jH2J+sZq3r+zeyN2KxdguGpKH67wrAe@mail.gmail.com>
- In-Reply-To
- <20110307233902.GA20447@sigill.intra.peff.net>
On Mon, Mar 7, 2011 at 3:39 PM, Jeff King <peff@peff.net> wrote:
> Yeah, that's my biggest concern. I just really foresee myself getting > annoyed by typing "--- nOtes ---", or "-- Notes ---". It's just a few > characters shorter, but "---" is really less error prone.
git often puts comment lines lines (starting with '#') around the commit message. How about just adding one more such comment:
# Lines after this one will be added as git notes
and make it so that any non-empty line entered afterwards does get added as notes ?
Also, I would love to see this functionality in other places such as rebasing (if the original commit has notes attached, I would like these to show up so I can attach these to the rebased commit as well). I realize not everybody would want that, but this could be easily controlled with message hooks...
-- Michel "Walken" Lespinasse A program is never fully debugged until the last user dies.