git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joshua Shrader <jshrader83@gmail.com>
To: Git Mailing List <git@vger.kernel.org>
Cc: Joshua Shrader <jshrader83@gmail.com>
Subject: Git Notes on Branches
Date: Thu, 22 Jul 2010 16:22:48 -0400	[thread overview]
Message-ID: <AANLkTinnDBUzoDj-C289l4Kui2qSiKmF-027MzijyCFY@mail.gmail.com> (raw)

I'm wondering if there is a way to (or a reason that would prevent one
from implementing a feature that allows one to) associate a note with
a branch, rather than a specific object.  It seems like a notes object
contains a reference to the object that it annotates:

Annotate 4bd93734af...

Rather than forcing this to be a SHA1, can the same approaches as
taken with HEAD be employed?  That is, allow it to be either an object
ID, or a local branch?

This would essentially define a new use case for notes.  Rather than
just being used to annotate objects, they could be used to describe a
feature branch or a bug fix, for example.  Then, when a release is
created (from, say, master), a "git branches --merged" will show all
merged branches.  Assuming the workflow is to develop on well-defined
branches, if each of these branches had a description in an attached
note, created Release Notes would be a piece of cake.  Add a
description via "git notes add feat-branch-2" that you want to show up
in the Release Notes once the branch is re-integrated.

I see a potential problem when working remotely and trying to push the
note to origin, but I don't think its insurmountable.

Thoughts?

Josh

             reply	other threads:[~2010-07-22 20:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-22 20:22 Joshua Shrader [this message]
2010-07-22 21:05 ` Git Notes on Branches Jonathan Nieder

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=AANLkTinnDBUzoDj-C289l4Kui2qSiKmF-027MzijyCFY@mail.gmail.com \
    --to=jshrader83@gmail.com \
    --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).