git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Feature Request: Branch Annotations
       [not found] ` <d2115f4f0810080348t62e18b14x1dfe798974332b05@mail.gmail.com>
@ 2008-10-08 10:49   ` Rotem Yaari
  2008-10-08 10:55     ` Thomas Adam
  2008-10-08 13:29     ` David Soria Parra
  0 siblings, 2 replies; 10+ messages in thread
From: Rotem Yaari @ 2008-10-08 10:49 UTC (permalink / raw)
  To: git

Hi,

I usually work with many branches in git, each of which represents a
different state of development/stability, but also development tasks
assigned to me.
Sometimes, besides the name of the branch, it could be useful to have
a short description of a branch which quickly reminds me what that
branch is intended for.

Currently I see no way in git to achieve this (there's a description
for a repository, but not for individual branches).

Any opinions on this?


Thanks in advance,

--
Rotem

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Feature Request: Branch Annotations
  2008-10-08 10:49   ` Feature Request: Branch Annotations Rotem Yaari
@ 2008-10-08 10:55     ` Thomas Adam
  2008-10-08 11:41       ` Baz
  2008-10-08 13:29     ` David Soria Parra
  1 sibling, 1 reply; 10+ messages in thread
From: Thomas Adam @ 2008-10-08 10:55 UTC (permalink / raw)
  To: Rotem Yaari; +Cc: git

2008/10/8 Rotem Yaari <vmalloc@gmail.com>:
> Hi,
>
> I usually work with many branches in git, each of which represents a
> different state of development/stability, but also development tasks
> assigned to me.
> Sometimes, besides the name of the branch, it could be useful to have
> a short description of a branch which quickly reminds me what that
> branch is intended for.
>
> Currently I see no way in git to achieve this (there's a description
> for a repository, but not for individual branches).
>
> Any opinions on this?

Wasn't this discussed here before, with a prototype?  ISTR it was, but
dropped due to lack of interest?  Have a look through the archives.

-- Thomas Adam

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Feature Request: Branch Annotations
  2008-10-08 10:55     ` Thomas Adam
@ 2008-10-08 11:41       ` Baz
  2008-10-08 12:08         ` Marc Weber
  0 siblings, 1 reply; 10+ messages in thread
From: Baz @ 2008-10-08 11:41 UTC (permalink / raw)
  To: Thomas Adam; +Cc: Rotem Yaari, git

2008/10/8 Thomas Adam <thomas.adam22@gmail.com>:
> 2008/10/8 Rotem Yaari <vmalloc@gmail.com>:
>> Hi,
>>
>> I usually work with many branches in git, each of which represents a
>> different state of development/stability, but also development tasks
>> assigned to me.
>> Sometimes, besides the name of the branch, it could be useful to have
>> a short description of a branch which quickly reminds me what that
>> branch is intended for.
>>
>> Currently I see no way in git to achieve this (there's a description
>> for a repository, but not for individual branches).
>>
>> Any opinions on this?
>
> Wasn't this discussed here before, with a prototype?  ISTR it was, but
> dropped due to lack of interest?  Have a look through the archives.

The most recent thread was 'branch description' back in April, which
discussed alternatives, but petered out:
http://kerneltrap.org/mailarchive/git/2008/4/15/1442684/thread

An older thread on 'topic descriptions' where Junio described his use
of the config file for this:
http://kerneltrap.org/mailarchive/git/2006/12/6/232466/thread

And there's a similar feature in stgit, which uses the same config
setting that Junio did:
http://kerneltrap.org/mailarchive/git/2007/5/14/246358
http://kerneltrap.org/mailarchive/git/2007/4/12/243404

-Baz

>
> -- Thomas Adam
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Feature Request: Branch Annotations
  2008-10-08 11:41       ` Baz
@ 2008-10-08 12:08         ` Marc Weber
  0 siblings, 0 replies; 10+ messages in thread
From: Marc Weber @ 2008-10-08 12:08 UTC (permalink / raw)
  To: git

On Wed, Oct 08, 2008 at 12:41:43PM +0100, Baz wrote:
> 2008/10/8 Thomas Adam <thomas.adam22@gmail.com>:
> > 2008/10/8 Rotem Yaari <vmalloc@gmail.com>:
> >> Hi,
> >>
> >> I usually work with many branches in git, each of which represents a
> >> different state of development/stability, but also development tasks
> >> assigned to me.
> >> Sometimes, besides the name of the branch, it could be useful to have
> >> a short description of a branch which quickly reminds me what that
> >> branch is intended for.
> >>
> >> Currently I see no way in git to achieve this (there's a description
> >> for a repository, but not for individual branches).
> >>
> >> Any opinions on this?
[...]
Probably I've missed something. but doesn't top git add some special
files to remember branch relations?
I guess it removes them before merging upstream ?
I would have to reread the README or topGit source to confirm this.

Marc Weber

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Feature Request: Branch Annotations
  2008-10-08 10:49   ` Feature Request: Branch Annotations Rotem Yaari
  2008-10-08 10:55     ` Thomas Adam
@ 2008-10-08 13:29     ` David Soria Parra
  2008-10-08 23:12       ` Junio C Hamano
  1 sibling, 1 reply; 10+ messages in thread
From: David Soria Parra @ 2008-10-08 13:29 UTC (permalink / raw)
  To: Rotem Yaari; +Cc: git


> Any opinions on this?

would be great to have something like that build in git-core like

git branch -i 'Fix bla' ds/fix next
git branch -i
  ds/fix (Fix Bla)

david

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Feature Request: Branch Annotations
  2008-10-08 13:29     ` David Soria Parra
@ 2008-10-08 23:12       ` Junio C Hamano
  2008-10-08 23:20         ` David Soria Parra
  2008-10-08 23:21         ` Avery Pennarun
  0 siblings, 2 replies; 10+ messages in thread
From: Junio C Hamano @ 2008-10-08 23:12 UTC (permalink / raw)
  To: David Soria Parra; +Cc: Rotem Yaari, git

David Soria Parra <sn_@gmx.net> writes:

>> Any opinions on this?
>
> would be great to have something like that build in git-core like
>
> git branch -i 'Fix bla' ds/fix next
> git branch -i
>  ds/fix (Fix Bla)

Haven't people watched Linus on google tech talk?  Here is an excerpt from
the transcript (http://git.or.cz/gitwiki/LinusTalk200705Transcript):

    ... well actually you shouldn't call it "test", you should basically
    name your branches the way you name your functions, you should call
    them something short and sweet and to the point -- What is that branch
    doing.

IOW, why did you name the branch "ds/fix" and not "ds/fix-bla"?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Feature Request: Branch Annotations
  2008-10-08 23:12       ` Junio C Hamano
@ 2008-10-08 23:20         ` David Soria Parra
  2008-10-08 23:21         ` Avery Pennarun
  1 sibling, 0 replies; 10+ messages in thread
From: David Soria Parra @ 2008-10-08 23:20 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Rotem Yaari, git


> Haven't people watched Linus on google tech talk?  Here is an excerpt from
> the transcript (http://git.or.cz/gitwiki/LinusTalk200705Transcript):
> 
>     ... well actually you shouldn't call it "test", you should basically
>     name your branches the way you name your functions, you should call
>     them something short and sweet and to the point -- What is that branch
>     doing.
> 
> IOW, why did you name the branch "ds/fix" and not "ds/fix-bla"?

Okay I just choosed a bad example. Actually I call it ds/fix-function, 
but nevertheless more additional description can be useful when dealing 
with a lot of branches. But yes, there might be porcelains that can do that.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Feature Request: Branch Annotations
  2008-10-08 23:12       ` Junio C Hamano
  2008-10-08 23:20         ` David Soria Parra
@ 2008-10-08 23:21         ` Avery Pennarun
  2008-10-09  0:20           ` Miklos Vajna
  2008-10-10  8:24           ` Peter Krefting
  1 sibling, 2 replies; 10+ messages in thread
From: Avery Pennarun @ 2008-10-08 23:21 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: David Soria Parra, Rotem Yaari, git

On 10/8/08, Junio C Hamano <gitster@pobox.com> wrote:
> David Soria Parra <sn_@gmx.net> writes:
>
>  >> Any opinions on this?
>  >
>  > would be great to have something like that build in git-core like
>  >
>  > git branch -i 'Fix bla' ds/fix next
>  > git branch -i
>  >  ds/fix (Fix Bla)
>
> Haven't people watched Linus on google tech talk?  Here is an excerpt from
>  the transcript (http://git.or.cz/gitwiki/LinusTalk200705Transcript):
>
>     ... well actually you shouldn't call it "test", you should basically
>     name your branches the way you name your functions, you should call
>     them something short and sweet and to the point -- What is that branch
>     doing.
>
>  IOW, why did you name the branch "ds/fix" and not "ds/fix-bla"?

Because it would be excessive typing every time you want to do
something to that branch?

I guess bash completions would help with this (if you're using bash),
but even then it's kind of unreasonable to name branches something
like "bug-111234-widget-performance-improvements-for-customer-x",
which is the sort of information that would be awfully helpful two
months later when you're looking at old unmerged branches.

Avery

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Feature Request: Branch Annotations
  2008-10-08 23:21         ` Avery Pennarun
@ 2008-10-09  0:20           ` Miklos Vajna
  2008-10-10  8:24           ` Peter Krefting
  1 sibling, 0 replies; 10+ messages in thread
From: Miklos Vajna @ 2008-10-09  0:20 UTC (permalink / raw)
  To: Avery Pennarun; +Cc: Junio C Hamano, David Soria Parra, Rotem Yaari, git

[-- Attachment #1: Type: text/plain, Size: 606 bytes --]

On Wed, Oct 08, 2008 at 07:21:33PM -0400, Avery Pennarun <apenwarr@gmail.com> wrote:
> I guess bash completions would help with this (if you're using bash),
> but even then it's kind of unreasonable to name branches something
> like "bug-111234-widget-performance-improvements-for-customer-x",

I think you haven't read the links mentioned in the previous mail.

IIRC the thread had a suggestion about creating such a 'desc' branch,
then you could just have a branch named 'fix' and you could do git show
desc:fix to see its description.

Just use git as a filesystem, as it was originally designed... ;-)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Feature Request: Branch Annotations
  2008-10-08 23:21         ` Avery Pennarun
  2008-10-09  0:20           ` Miklos Vajna
@ 2008-10-10  8:24           ` Peter Krefting
  1 sibling, 0 replies; 10+ messages in thread
From: Peter Krefting @ 2008-10-10  8:24 UTC (permalink / raw)
  To: Avery Pennarun
  Cc: Junio C Hamano, David Soria Parra, Rotem Yaari, Git Mailing List

Avery Pennarun:

> I guess bash completions would help with this (if you're using bash),
> but even then it's kind of unreasonable to name branches something
> like "bug-111234-widget-performance-improvements-for-customer-x",
> which is the sort of information that would be awfully helpful two
> months later when you're looking at old unmerged branches.

That's exactly what I do for one of the projects I am working on (well,
minus the "bug-" prefix, that's implied). Bash completion works quite
well for that, and the merge commits do give meaningful information.

But I would still like to be able to annotate it. Especially for
long-living bug-fix branches, it could be useful to be able to add
describe a branch with what state it is in, for instance.

-- 
\\// Peter - http://www.softwolves.pp.se/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-10-10  8:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <d2115f4f0810080341m27c4ca9bv9b1e9b66704ef3fa@mail.gmail.com>
     [not found] ` <d2115f4f0810080348t62e18b14x1dfe798974332b05@mail.gmail.com>
2008-10-08 10:49   ` Feature Request: Branch Annotations Rotem Yaari
2008-10-08 10:55     ` Thomas Adam
2008-10-08 11:41       ` Baz
2008-10-08 12:08         ` Marc Weber
2008-10-08 13:29     ` David Soria Parra
2008-10-08 23:12       ` Junio C Hamano
2008-10-08 23:20         ` David Soria Parra
2008-10-08 23:21         ` Avery Pennarun
2008-10-09  0:20           ` Miklos Vajna
2008-10-10  8:24           ` Peter Krefting

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).