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

Re: [PATCH] gitweb: prepare for repositories with packed refs.

From
Junio C Hamano <junkio@cox.net>
Date
Oct 7, 2006, 10:26 UTC
Message-ID
<7v1wpks9qf.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20061006154059.GQ20017@pasky.or.cz>
Petr Baudis <pasky@suse.cz> writes:
> Having HEAD a dangling
> symlink is just wrong...

While I still disagree with this statement, as a practical issue, I think it might make sense to have an option to pack-refs to pack only tags, which are supposed to be mostly immutable. Or even introduce --all option and make the default pack only tags. Your branches point at commits waiting to be updated, and if you have remote tracking branches they are meant to be updated every time you fetch from that remote; otherwise you would not be using tracking branches but merging straight into your branch.

Also you are likely to do pack-refs (or whatever repository-wide git operations) while on an active branch (be it "master" or some non-master branch similar to my "next" or "pu"), and for that reason I suspect packing the current branch is almost always not very useful. Active branches are by definition expected to frequently change.

Previous: Petr BaudisNext: Jakub Narebski
Message 5 of 6 in “gitweb: prepare for repositories with packed refs.”
  1. gitweb: prepare for repositories with packed refs.Junio C Hamano, Oct 3, 2006
  2. Petr BaudisOct 6, 2006
  3. Junio C HamanoOct 7, 2006
  4. Petr BaudisOct 7, 2006
  5. Junio C HamanoOct 7, 2006
  6. Jakub NarebskiOct 7, 2006

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.