git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git repository for net drivers available

From
Junio C Hamano <junkio@cox.net>
Date
May 15, 2005, 21:46 UTC
Message-ID
<7vacmwqi1o.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050515200514.GA31414@pasky.ji.cz>
>>>>> "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.

Previous: Jeff Garzik
Message 3 of 3 in “Re: git repository for net drivers available”
  1. Petr BaudisMay 15, 2005
  2. Jeff GarzikMay 15, 2005
  3. Junio C HamanoMay 15, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.