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

Re: worktrees vs. alternates

From
Duy Nguyen <pclouds@gmail.com>
Date
May 19, 2018, 05:45 UTC
Message-ID
<CACsJy8AGugSYaPw9qxxXhGEz4RgawQ+moVtoGJcWhQ_=HRUOqA@mail.gmail.com>
In-Reply-To
<20180517033110.GA13235@sigill.intra.peff.net>
On Thu, May 17, 2018 at 5:31 AM, Jeff King <peff@peff.net> wrote:
Show 25 quoted lines
> On Thu, May 17, 2018 at 06:13:55AM +0530, Sitaram Chamarty wrote:
>
>> I may have missed a few of the earlier messages, but in the last
>> 20 or so in this thread, I did not see namespaces mentioned by
>> anyone. (I.e., apologies if it was addressed and discarded
>> earlier!)
>>
>> I was under the impression that, as long as "read" access need
>> not be controlled (Konstantin's situation, at least, and maybe
>> Peff's too, for public repos), namespaces are a good way to
>> create and manage that "mother repo".
>>
>> Is that not true anymore?  Mind, I have not actually used them
>> in anger anywhere, so I could be missing some really big point
>> here.
>
> The biggest problem with namespaces as they are currently implemented is
> that they do not apply universally to all commands. If you only access
> the repo via push/fetch, they may be fine. But as soon as you start
> doing other operations (e.g., showing the history of a branch in a web
> interface), you don't get to use the namespaced names anymore.
>
> I think a different implementation of namespaces could do this better.
> E.g., by controlling the view of the refs at the refs.c layer (or
> perhaps as a filtering backend).

Yeah. Namespaces (that work for all commands) + worktree was my plan for centralizing repos (for one user). But I never got that far to look into making ref namespaces work for everything.

-- 
Duy
Previous: Jeff KingNext: Jeff King
Message 31 of 34 in “worktrees vs. alternates”
  1. Lars SchneiderMay 16, 2018
  2. Ævar Arnfjörð BjarmasonMay 16, 2018
  3. Robert P. J. DayMay 16, 2018
  4. Ævar Arnfjörð BjarmasonMay 16, 2018
  5. Lars SchneiderMay 16, 2018
  6. Ævar Arnfjörð BjarmasonMay 16, 2018
  7. Derrick StoleeMay 16, 2018
  8. Konstantin RyabitsevMay 16, 2018
  9. Ævar Arnfjörð BjarmasonMay 16, 2018
  10. Konstantin RyabitsevMay 16, 2018
  11. Ævar Arnfjörð BjarmasonMay 16, 2018
  12. Martin FickMay 16, 2018
  13. Konstantin RyabitsevMay 16, 2018
  14. Ævar Arnfjörð BjarmasonMay 16, 2018
  15. Konstantin RyabitsevMay 16, 2018
  16. Martin FickMay 16, 2018
  17. Konstantin RyabitsevMay 16, 2018
  18. Martin FickMay 16, 2018
  19. Konstantin RyabitsevMay 16, 2018
  20. Martin FickMay 16, 2018
  21. Jeff KingMay 16, 2018
  22. Konstantin RyabitsevMay 16, 2018
  23. Jeff KingMay 16, 2018
  24. Martin FickMay 16, 2018
  25. Jeff KingMay 16, 2018
  26. Martin FickMay 16, 2018
  27. Konstantin RyabitsevMay 16, 2018
  28. Jeff KingMay 16, 2018
  29. Sitaram ChamartyMay 17, 2018
  30. Jeff KingMay 17, 2018
  31. Duy NguyenMay 19, 2018
  32. Jeff KingMay 16, 2018
  33. Stefan BellerMay 16, 2018
  34. Jeff KingMay 16, 2018

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.