Re: branch description
- From
Brian Gernhardt <benji@silverinsanity.com>
- Date
- Apr 15, 2008, 18:01 UTC
- Message-ID
- <C55CA6EB-D427-4CF5-923E-DE0071D2F870@silverinsanity.com>
- In-Reply-To
- <f9d2a5e10804151031o1d09c1f9od0ad78dcf9b746c5@mail.gmail.com>
On Apr 15, 2008, at 1:31 PM, Russ Dill wrote:
> The problem is that a branch is just a floating name for a line of > development. Its not really a "thing" in the repository like a tag or > a commit. You'd need to make some sort of special tag that describes > the branch or somesuch.
No special tags needed. A simple file that I'll call .git/info/ ref_names could be a set of lines that have "<ref>\t<description>", like the following:
refs/heads/master Collection point for all my work refs/heads/ref_names Add descriptions for branches refs/heads/segfault Trying to fix bug #12345
Simple, no tags, new object types or anything. All you have to do is add the bits to git-branch to add, edit, and remove the description alongside the branch itself.
Now if you want to propagate these descriptions when you push and pull, things get a lot more complicated.
~~ Brian