# How to make Cogito use git-fetch-pack?

5 messages from 2005-09-23 to 2005-09-26. Participants: H. Peter Anvin, Petr Baudis.
Thread: https://gitlist.dev/t/1928

## H. Peter Anvin, 2005-09-23 22:20

Subject: How to make Cogito use git-fetch-pack?
Message-ID: <43347F98.6020101@zytor.com>
URL: https://gitlist.dev/e/43347F98.6020101%40zytor.com

```
Is there any way to make Cogito use git-fetch-pack instead of 
git-ssh-fetch?  git+ssh:// seems to invoke the latter.

	-hpa

```

## Petr Baudis, 2005-09-24 01:19

Subject: Re: How to make Cogito use git-fetch-pack?
Message-ID: <20050924011912.GK10255@pasky.or.cz>
URL: https://gitlist.dev/e/20050924011912.GK10255%40pasky.or.cz
In-Reply-To: <43347F98.6020101@zytor.com>

```
Dear diary, on Sat, Sep 24, 2005 at 12:20:08AM CEST, I got a letter
where "H. Peter Anvin" <hpa@zytor.com> told me that...
> Is there any way to make Cogito use git-fetch-pack instead of 
> git-ssh-fetch?  git+ssh:// seems to invoke the latter.

I just added git+packed+ssh:// to be used for this purpose.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.

```

## H. Peter Anvin, 2005-09-24 02:04

Subject: Re: How to make Cogito use git-fetch-pack?
Message-ID: <4334B428.7020608@zytor.com>
URL: https://gitlist.dev/e/4334B428.7020608%40zytor.com
In-Reply-To: <20050924011912.GK10255@pasky.or.cz>

```
Petr Baudis wrote:
> Dear diary, on Sat, Sep 24, 2005 at 12:20:08AM CEST, I got a letter
> where "H. Peter Anvin" <hpa@zytor.com> told me that...
> 
>>Is there any way to make Cogito use git-fetch-pack instead of 
>>git-ssh-fetch?  git+ssh:// seems to invoke the latter.
> 
> I just added git+packed+ssh:// to be used for this purpose.
> 

Since git tends to use "pack" (e.g. git-fetch-pack) I'd suggest use 
git+pack+ssh:// instead.  It's shorter, too.

	-hpa

```

## H. Peter Anvin, 2005-09-26 18:10

Subject: Re: How to make Cogito use git-fetch-pack?
Message-ID: <43383999.8090508@zytor.com>
URL: https://gitlist.dev/e/43383999.8090508%40zytor.com
In-Reply-To: <4334B428.7020608@zytor.com>

```
H. Peter Anvin wrote:
> Petr Baudis wrote:
> 
>> Dear diary, on Sat, Sep 24, 2005 at 12:20:08AM CEST, I got a letter
>> where "H. Peter Anvin" <hpa@zytor.com> told me that...
>>
>>> Is there any way to make Cogito use git-fetch-pack instead of 
>>> git-ssh-fetch?  git+ssh:// seems to invoke the latter.
>>
>>
>> I just added git+packed+ssh:// to be used for this purpose.
>>
> 
> Since git tends to use "pack" (e.g. git-fetch-pack) I'd suggest use 
> git+pack+ssh:// instead.  It's shorter, too.
> 

I thought some more about this, and realized that it really doesn't make 
sense for there to be another name for this.  Simply put, git+ssh:// 
requires ssh access and git to be present on the other side, and within 
those parameters it should use whatever access method is most effective. 
Thus, having a separate URL type only makes sense if something is 
fundamentally and user-visibly different between the two.

	-hpa

```

## Petr Baudis, 2005-09-26 18:46

Subject: Re: How to make Cogito use git-fetch-pack?
Message-ID: <20050926184615.GB26340@pasky.or.cz>
URL: https://gitlist.dev/e/20050926184615.GB26340%40pasky.or.cz
In-Reply-To: <43383999.8090508@zytor.com>

```
Dear diary, on Mon, Sep 26, 2005 at 08:10:33PM CEST, I got a letter
where "H. Peter Anvin" <hpa@zytor.com> told me that...
> H. Peter Anvin wrote:
> >Petr Baudis wrote:
> >
> >>Dear diary, on Sat, Sep 24, 2005 at 12:20:08AM CEST, I got a letter
> >>where "H. Peter Anvin" <hpa@zytor.com> told me that...
> >>
> >>>Is there any way to make Cogito use git-fetch-pack instead of 
> >>>git-ssh-fetch?  git+ssh:// seems to invoke the latter.
> >>
> >>
> >>I just added git+packed+ssh:// to be used for this purpose.
> >>
> >
> >Since git tends to use "pack" (e.g. git-fetch-pack) I'd suggest use 
> >git+pack+ssh:// instead.  It's shorter, too.
> >
> 
> I thought some more about this, and realized that it really doesn't make 
> sense for there to be another name for this.  Simply put, git+ssh:// 
> requires ssh access and git to be present on the other side, and within 
> those parameters it should use whatever access method is most effective. 
> Thus, having a separate URL type only makes sense if something is 
> fundamentally and user-visibly different between the two.

Tags fetching. I agree that the difference isn't that big other than
this (contrary to the other fetchers, ssh-fetch won't reproduce the pack
setup; this may sound as a bad thing, but it prevents transfer of
redundant data which is pretty much inevitable (or for free) for the
other fetchers). And since we will probably move to the pack fetchers
for tags as well, I agree that there indeed is little point in this.
I will switch all the git+ssh fetching to it after I implement the new
tags fetching.

By the way, how much more CPU-intensive are the pack-based methods in
practice, especially on the server (packing) side? Could it be
noticeable?

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.

```
