threads / discuss / 10763

cogito remote branch

Subject: cogito remote branch

## tl;dr

8 messages between Nov 9, 2007 and Nov 10, 2007.

replies: 7people: 5as markdown or json

MichaelTiloDressel@t-online.de· Nov 9, 2007, 13:16 UTC · lore
Hi,

I just saw the scripts cg-update, cg-push .. scripts try to guess a branch name functioning as origin if no argument is given. These scripts seam to use a branch named <branchname>-origin if it exists and the current branch is named <branchname> and is not the branch named master.

I like that feature. Is it anywhere documented?

In case there is no branch named <branchname>-origin the scripts just use origin even if the current branch is not master. I would prefer the scripts to fail in this case and to print a message asking the user to specifically name a branch.

Cheers, Michael

Andreas Ericsson· Nov 9, 2007, 13:20 UTC · re: MichaelTiloDressel@t-online.de · lore

Re: cogito remote branch

MichaelTiloDressel@t-online.de wrote:
Show 15 quoted lines
> Hi,
> 
> I just saw the scripts cg-update, cg-push ..  scripts try to guess a
> branch name functioning as origin if no argument is given. These scripts
> seam to use a branch named <branchname>-origin if it exists and the
> current
> branch is named <branchname> and is not the branch named master.
> 
> I like that feature. Is it anywhere documented?
> 
> In case there is no branch named <branchname>-origin the scripts just
> use origin even if the current branch is not master. I would prefer the
> scripts to fail in this case and to print a message asking the user to
> specifically name a branch.
> 

Cogito is deprecated, and has been for quite some time. The "remote" feature of core git (inspired by cogito) offers similar benefits.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
MichaelTiloDressel@t-online.de· Nov 9, 2007, 13:51 UTC · re: Andreas Ericsson · lore

Re: cogito remote branch

Such a pity.  We just got used to it.
-----Original Message-----
Date: Fri, 09 Nov 2007 14:20:05 +0100
Subject: Re: cogito remote branch
From: Andreas Ericsson 
To: "MichaelTiloDressel@t-online.de" 
MichaelTiloDressel@t-online.de wrote:
> Hi,
> 
> I just saw the scripts cg-update, cg-push ..  scripts try to guess a
> branch name functioning as origin if no argument is given. These
scripts
Show 8 quoted lines
> seam to use a branch named -origin if it exists and the
> current
> branch is named  and is not the branch named master.
> 
> I like that feature. Is it anywhere documented?
> 
> In case there is no branch named -origin the scripts just
> use origin even if the current branch is not master. I would prefer
the
> scripts to fail in this case and to print a message asking the user to
> specifically name a branch.
> 

Cogito is deprecated, and has been for quite some time. The "remote" feature of core git (inspired by cogito) offers similar benefits.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
MichaelTiloDressel@t-online.de· Nov 9, 2007, 16:10 UTC · re: Johannes Schindelin · lore

Re: cogito remote branch

>> Such a pity.  We just got used to it.
>t's open source.  You are free to use/maintain it.

True. But I'm not sure if it would be worth the effort. I don't mind using git directly. There are just some features which simplify things for me in cogito. E.g. in cogito in the simplest way you don't need to be aware of the index. While with git you have to remember to add the changes to the index explicitly to get them committed.

Cheers, Michael

Jon Loeliger· Nov 9, 2007, 16:28 UTC · re: MichaelTiloDressel@t-online.de · lore

Re: cogito remote branch

On Fri, 2007-11-09 at 10:10, MichaelTiloDressel@t-online.de wrote:
Show 8 quoted lines
>  There are just some features
> which simplify things for me in cogito. E.g. in cogito in the simplest
> way you don't need to be aware of the index. While with git
> you have to remember to add the changes to the index explicitly
> to get them committed. 
> 
> Cheers,
> Michael
"git commit -a ..." might be useful for you.
Other lingering cogito-isms you think are lacking in git?
jdl
Michael Dressel· Nov 10, 2007, 11:27 UTC · re: Jon Loeliger · lore

Re: cogito remote branch

On Fri, 9 Nov 2007, Jon Loeliger wrote:
Show 13 quoted lines
> On Fri, 2007-11-09 at 10:10, MichaelTiloDressel@t-online.de wrote:
> >  There are just some features
> > which simplify things for me in cogito. E.g. in cogito in the simplest
> > way you don't need to be aware of the index. While with git
> > you have to remember to add the changes to the index explicitly
> > to get them committed. 
> > 
> > Cheers,
> > Michael
> 
> "git commit -a ..." might be useful for you.
> 
> Other lingering cogito-isms you think are lacking in git?

Thanks for the hint. I have to use git for a while to understand what may still be lacking (at least for me, if at all). Off the top of my head one other difference is that if I do a cg-push the remote (or origin) head is updated automatically, I think.

Cheers, Michael

Jakub Narebski· Nov 10, 2007, 11:52 UTC · re: Michael Dressel · lore

Re: cogito remote branch

Michael Dressel wrote:
Show 17 quoted lines
> On Fri, 9 Nov 2007, Jon Loeliger wrote: 
>> On Fri, 2007-11-09 at 10:10, MichaelTiloDressel@t-online.de wrote:
>>
>>>  There are just some features
>>> which simplify things for me in cogito. E.g. in cogito in the simplest
>>> way you don't need to be aware of the index. While with git
>>> you have to remember to add the changes to the index explicitly
>>> to get them committed. 
>> 
>> "git commit -a ..." might be useful for you.
>> 
>> Other lingering cogito-isms you think are lacking in git?
> 
> Thanks for the hint. I have to use git for a while to understand what may 
> still be lacking (at least for me, if at all). Off the top of my head one 
> other difference is that if I do a cg-push the remote (or origin) head is 
> updated automatically, I think.

If you mean that tracking branches are updated on push, this is what git also does from some time (perhaps not in released version, so please wait or run 'master').

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

← back to recent threads