# cogito remote branch

8 messages from 2007-11-09 to 2007-11-10. Participants: MichaelTiloDressel@t-online.de, Andreas Ericsson, Johannes Schindelin, Jon Loeliger, Michael Dressel, Jakub Narebski.
Thread: https://gitlist.dev/t/10763

## MichaelTiloDressel@t-online.de, 2007-11-09 13:16

Subject: cogito remote branch
Message-ID: <1IqTj5-24rt3I0@fwd33.aul.t-online.de>
URL: https://gitlist.dev/e/1IqTj5-24rt3I0%40fwd33.aul.t-online.de

```
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, 2007-11-09 13:20

Subject: Re: cogito remote branch
Message-ID: <47345E85.8090702@op5.se>
URL: https://gitlist.dev/e/47345E85.8090702%40op5.se
In-Reply-To: <1IqTj5-24rt3I0@fwd33.aul.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
> 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, 2007-11-09 13:51

Subject: Re: cogito remote branch
Message-ID: <1IqUGN-1XXOVs0@fwd33.aul.t-online.de>
URL: https://gitlist.dev/e/1IqUGN-1XXOVs0%40fwd33.aul.t-online.de
In-Reply-To: <47345E85.8090702@op5.se>

```

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

```

## Johannes Schindelin, 2007-11-09 14:17

Subject: Re: cogito remote branch
Message-ID: <Pine.LNX.4.64.0711091417060.4362@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0711091417060.4362%40racer.site
In-Reply-To: <1IqUGN-1XXOVs0@fwd33.aul.t-online.de>

```
Hi,

On Fri, 9 Nov 2007, MichaelTiloDressel@t-online.de wrote:

> Such a pity.  We just got used to it.

It's open source.  You are free to use/maintain it.

Ciao,
Dscho

```

## MichaelTiloDressel@t-online.de, 2007-11-09 16:10

Subject: Re: cogito remote branch
Message-ID: <1IqWRW-0QQ4LA0@fwd26.aul.t-online.de>
URL: https://gitlist.dev/e/1IqWRW-0QQ4LA0%40fwd26.aul.t-online.de
In-Reply-To: <Pine.LNX.4.64.0711091417060.4362@racer.site>

```


>> 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, 2007-11-09 16:28

Subject: Re: cogito remote branch
Message-ID: <1194625691.1471.3.camel@ld0161-tx32>
URL: https://gitlist.dev/e/1194625691.1471.3.camel%40ld0161-tx32
In-Reply-To: <1IqWRW-0QQ4LA0@fwd26.aul.t-online.de>

```
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?

jdl

```

## Michael Dressel, 2007-11-10 11:27

Subject: Re: cogito remote branch
Message-ID: <Pine.LNX.4.64.0711101217130.4330@castor.milkiway.cos>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0711101217130.4330%40castor.milkiway.cos
In-Reply-To: <1194625691.1471.3.camel@ld0161-tx32>

```


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. 
> > 
> > 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, 2007-11-10 11:52

Subject: Re: cogito remote branch
Message-ID: <fh4627$men$1@ger.gmane.org>
URL: https://gitlist.dev/e/fh4627%24men%241%40ger.gmane.org
In-Reply-To: <Pine.LNX.4.64.0711101217130.4330@castor.milkiway.cos>

```
Michael Dressel wrote:
> 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

```
