threads / discuss / 632

Re: git repository for net drivers available

Subject: Re: git repository for net drivers available

## tl;dr

3 messages between May 15, 2005 and May 15, 2005.

replies: 2people: 3as markdown or json

Petr Baudis· May 15, 2005, 20:05 UTC · lore

Dear diary, on Fri, May 13, 2005 at 05:29:30PM CEST, I got a letter where Jeff Garzik <jgarzik@pobox.com> told me that...

> Looks like cogito is using $repo/heads/$branch, whereas my git repo is 
> using $repo/branches/$branch.

Would it be a big problem to use refs/heads/$branch? That's the currently commonly agreed convention about location for storing branch heads, not just some weird Cogito-specific invention. And it'd be very nice to have those locations consistent across git repositories.

Thanks,
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Jeff Garzik· May 15, 2005, 20:20 UTC · re: Petr Baudis · lore
Petr Baudis wrote:
Show 11 quoted lines
> Dear diary, on Fri, May 13, 2005 at 05:29:30PM CEST, I got a letter
> where Jeff Garzik <jgarzik@pobox.com> told me that...
> 
>>Looks like cogito is using $repo/heads/$branch, whereas my git repo is 
>>using $repo/branches/$branch.
> 
> 
> Would it be a big problem to use refs/heads/$branch? That's the
> currently commonly agreed convention about location for storing branch
> heads, not just some weird Cogito-specific invention. And it'd be very
> nice to have those locations consistent across git repositories.
Sure, that's doable.
I've pushed out this change to kernel.org.
	Jeff
Junio C Hamano· May 15, 2005, 21:46 UTC · re: Petr Baudis · lore
>>>>> "PB" == Petr Baudis <pasky@ucw.cz> writes:

PB> Dear diary, on Fri, May 13, 2005 at 05:29:30PM CEST, I got a letter PB> where Jeff Garzik <jgarzik@pobox.com> told me that...

>> Looks like cogito is using $repo/heads/$branch, whereas my git repo is 
>> using $repo/branches/$branch.

PB> Would it be a big problem to use refs/heads/$branch? That's the PB> currently commonly agreed convention about location for storing branch PB> heads, not just some weird Cogito-specific invention. And it'd be very PB> nice to have those locations consistent across git repositories.

Since Jeff brought up $repo/branches/$branch, you may also want to add that $repo/branches/$branch is used to record the URL of the remote $branch (the information used to be in a flat file $repo/remotes, branch name and URL separated by shell $IFS, one record on each line), and is quite different from those 40-byte SHA1 plus LF files you see in $repo/refs/*/ directory.

I think it is a reasonable one, I also follow the $repo/branches/$branch convention Cogito uses, and I would encorage other Porcelain implementations to follow suit.

← back to recent threads