threads / rfc / 4805

[RFC] just an (stupid) idea when creating a new branch

Subject: [RFC] just an (stupid) idea when creating a new branch

## tl;dr

12 messages between Jul 8, 2006 and Jul 9, 2006.

replies: 11people: 7as markdown or json

moreau francis· Jul 8, 2006, 15:55 UTC · lore
Hi GIT folks.

I'm a complete newbie on git development so excuse me if this idea is completely stupid.

Would it be possible to let the user stick a short explanation on what a branch is supposed to implement during its creation.

That is
$ git branch --topic "Implement a killer feature \
> This set of patches add the foo feature to GIT" mybranch master

Then it would be possible with another command to consult this topic after a while. And even more useful, when generating the patch set with the following git command

$ git-format-patch -n HEAD master

it uses the topic branch to generate as first patch a summary of the patch serie. That is

"""
Subject: [PATCH 0/n] Implement a killer feature

This This set of patches add the foo feature to GIT. """

Is it useless ?
Thanks
Francis
Jakub Narebski· Jul 8, 2006, 21:41 UTC · re: moreau francis · lore

Re: [RFC] just an (stupid) idea when creating a new branch

moreau francis wrote:
Show 7 quoted lines
> Hi GIT folks.
> 
> I'm a complete newbie on git development so excuse me if
> this idea is completely stupid.
> 
> Would it be possible to let the user stick a short explanation
> on  what a branch is supposed to implement during its creation.

It would be possible when/if branch and remotes config would migrate to .git/config. Currently too many I think relies on refs/heads being simple sha1 of "top" commit.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Johannes Schindelin· Jul 8, 2006, 22:15 UTC · re: Jakub Narebski · lore

Re: [RFC] just an (stupid) idea when creating a new branch

Hi,
On Sat, 8 Jul 2006, Jakub Narebski wrote:
Show 13 quoted lines
> moreau francis wrote:
> 
> > Hi GIT folks.
> > 
> > I'm a complete newbie on git development so excuse me if
> > this idea is completely stupid.
> > 
> > Would it be possible to let the user stick a short explanation
> > on  what a branch is supposed to implement during its creation.
> 
> It would be possible when/if branch and remotes config would migrate
> to .git/config. Currently too many I think relies on refs/heads being
> simple sha1 of "top" commit.

But it does not need a change of existing practice at all! Just add the information provided by --topic as branch."pathname".description to the config. And make format-patch aware of that.

Ciao, Dscho

Jakub Narebski· Jul 9, 2006, 17:04 UTC · re: Johannes Schindelin · lore

Re: [RFC] just an (stupid) idea when creating a new branch

Johannes Schindelin wrote:
Show 14 quoted lines
> On Sat, 8 Jul 2006, Jakub Narebski wrote:
> 
>> moreau francis wrote:
>> 
>>> Would it be possible to let the user stick a short explanation
>>> on  what a branch is supposed to implement during its creation.
>> 
>> It would be possible when/if branch and remotes config would migrate
>> to .git/config. Currently too many I think relies on refs/heads being
>> simple sha1 of "top" commit.
> 
> But it does not need a change of existing practice at all! Just add the 
> information provided by --topic as branch."pathname".description to the 
> config. And make format-patch aware of that.

And make tools remove stale descriptions. I sometimes rename branches "by hand", as currently there is I think no tool for this...

By the way, did this series of patches (adding support for branch and remotes configuretion to config file) made into 'next', 'master' or even 'pu', or after some discussion it stalled?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Johannes Schindelin· Jul 9, 2006, 19:09 UTC · re: Jakub Narebski · lore

Re: [RFC] just an (stupid) idea when creating a new branch

Hi,
On Sun, 9 Jul 2006, Jakub Narebski wrote:
> By the way, did this series of patches (adding support for branch and
> remotes configuretion to config file) made into 'next', 'master' or even
> 'pu', or after some discussion it stalled?

The latter. Some parts are there (the remote configuration made it in AFAIK) but things like the default remote(s) to fetch / push are not.

Ciao, Dscho

Marco Costalba· Jul 9, 2006, 06:54 UTC · re: Jakub Narebski · lore

Re: [RFC] just an (stupid) idea when creating a new branch

On 7/8/06, Jakub Narebski <jnareb@gmail.com> wrote:
Show 14 quoted lines
> moreau francis wrote:
>
> > Hi GIT folks.
> >
> > I'm a complete newbie on git development so excuse me if
> > this idea is completely stupid.
> >
> > Would it be possible to let the user stick a short explanation
> > on  what a branch is supposed to implement during its creation.
>
> It would be possible when/if branch and remotes config would migrate
> to .git/config. Currently too many I think relies on refs/heads being
> simple sha1 of "top" commit.
>

It is possible to add a message (and more) to a tag creating a tag object. FWIK this is not allowed for the other refs.

Why there is this (artifical?) difference between tags and the other kind of refs?

   Marco
Johannes Schindelin· Jul 9, 2006, 14:33 UTC · re: Marco Costalba · lore

Re: [RFC] just an (stupid) idea when creating a new branch

Hi,
On Sun, 9 Jul 2006, Marco Costalba wrote:
Show 5 quoted lines
> It is possible to add a message (and more) to a tag creating a tag
> object. FWIK this is not allowed for the other refs.
> 
> Why there is this (artifical?) difference between tags and the other
> kind of refs?

The tag message is nothing else than a commit message. The (artificial-but-on-purpose) difference is that you are not supposed to change a tag ref, whereas a regular ref pointing to a commit is _expected_ to point to some other commit in the future.

Ciao, Dscho

Petr Baudis· Jul 9, 2006, 22:01 UTC · re: Johannes Schindelin · lore

Re: [RFC] just an (stupid) idea when creating a new branch

  Hi,

Dear diary, on Sun, Jul 09, 2006 at 04:33:53PM CEST, I got a letter where Johannes Schindelin <Johannes.Schindelin@gmx.de> said that...

Show 9 quoted lines
> On Sun, 9 Jul 2006, Marco Costalba wrote:
> 
> > It is possible to add a message (and more) to a tag creating a tag
> > object. FWIK this is not allowed for the other refs.
> > 
> > Why there is this (artifical?) difference between tags and the other
> > kind of refs?
> 
> The tag message is nothing else than a commit message.
  huh?
  The tag message is a message in the "freeform" part of the tag object,
but disregarding the format similiraties, it has really nothing to do
with a commit message. (Also, commit messages don't tend to be commonly
PGP signed. ;-)
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Snow falling on Perl. White noise covering line noise.
Hides all the bugs too. -- J. Putnam
Johannes Schindelin· Jul 9, 2006, 22:12 UTC · re: Petr Baudis · lore

Re: [RFC] just an (stupid) idea when creating a new branch

Hi,
On Mon, 10 Jul 2006, Petr Baudis wrote:
Show 20 quoted lines
>   Hi,
> 
> Dear diary, on Sun, Jul 09, 2006 at 04:33:53PM CEST, I got a letter
> where Johannes Schindelin <Johannes.Schindelin@gmx.de> said that...
> > On Sun, 9 Jul 2006, Marco Costalba wrote:
> > 
> > > It is possible to add a message (and more) to a tag creating a tag
> > > object. FWIK this is not allowed for the other refs.
> > > 
> > > Why there is this (artifical?) difference between tags and the other
> > > kind of refs?
> > 
> > The tag message is nothing else than a commit message.
> 
>   huh?
> 
>   The tag message is a message in the "freeform" part of the tag object,
> but disregarding the format similiraties, it has really nothing to do
> with a commit message. (Also, commit messages don't tend to be commonly
> PGP signed. ;-)

Marco was talking about an "artificial difference", which means technical issues. From a technical viewpoint, the tag message is _exactly_ the same as a commit message.

Hth, Dscho

Pavel Roskin· Jul 9, 2006, 03:27 UTC · re: moreau francis · lore

Re: [RFC] just an (stupid) idea when creating a new branch

Hello!
On Sat, 2006-07-08 at 15:55 +0000, moreau francis wrote:
Show 7 quoted lines
> Hi GIT folks.
> 
> I'm a complete newbie on git development so excuse me if
> this idea is completely stupid.
> 
> Would it be possible to let the user stick a short explanation
> on  what a branch is supposed to implement during its creation.

Just for your information, this is already implemented by StGIT. For instance, .git/patches/master/description contains the description of the "master" branch.

If you run "stg branch --list", the branch descriptions will be listed. I'm not aware of any commands to change the description.

-- 
Regards,
Pavel Roskin
moreau francis· Jul 9, 2006, 09:48 UTC · re: Pavel Roskin · lore

Re : [RFC] just an (stupid) idea when creating a new branch

> Just for your information, this is already implemented by StGIT.  For
> instance, .git/patches/master/description contains the description of
> the "master" branch.
well I'm using plain git for now. And it doesn't seem to be a high level
 feature.
 
 Another point to this would be to show this set of patch and its summary
 threaded under a mailer. I use thunderbird, and it's possible to use threaded
 view which is very convinient. I don't know how it works, but see the set of
 patchs like:
 
 [PATCH 0/3] Summary of the set
                     |
                    + [PATCH 1/4] blababla
                     + [PATCH 2/4] another useful commit
                    + [PATCH 3/4] ...
 
 would be great !
 
 Francis
 
 PS: please CC me when answering.
Junio C Hamano· Jul 9, 2006, 10:16 UTC · re: moreau francis · lore

Re: Re : [RFC] just an (stupid) idea when creating a new branch

moreau francis <francis_moreau2000@yahoo.fr> writes:
Show 10 quoted lines
>  I don't know how it works, but see the set of
>  patchs like:
>  
>  [PATCH 0/3] Summary of the set
>                      |
>                     + [PATCH 1/4] blababla
>                      + [PATCH 2/4] another useful commit
>                     + [PATCH 3/4] ...
>  
>  would be great !

Doing the cover letter is primarily a job of the patch submitter, and I think git-send-email has some support for that.

← back to recent threads