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

Re: git branch performance problem?

From
SZSalikh Zakirov <salikh.zakirov@gmail.com>
Date
Oct 12, 2007, 17:32 UTC
Message-ID
<20071012173221.GA5475@makoto.usen.ad.jp>
Han-Wen Nienhuys wrote:
> For cherrypicking convenience, I would still appreciate it if there
> was a mechanism similar to alternates that would allow me to view
> objects from an alternate repo; objects found through this mechanism
> should never be assumed to be present in the database, of course.

There exist a script contrib/workdir/git-new-workdir, which creates a new working copy that literally shares the same object store. It will share both object store and branches, so some care must be taken: branch which checkout out in one shared working directory must never be updated (committed or pulled into) from the other shared working directory.

Said that, I personally find this trick very useful for browsing code from different branch and quick bug fixing.

Message 1 of 1 in “Re: git branch performance problem?”
  1. Salikh ZakirovOct 12, 2007

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.