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

Re: Complete http-pull; where should it go?

From
Linus Torvalds <torvalds@osdl.org>
Date
May 1, 2005, 19:44 UTC
Message-ID
<Pine.LNX.4.58.0505011237410.2296@ppc970.osdl.org>
In-Reply-To
<Pine.LNX.4.21.0505011508270.30848-100000@iabervon.org>
On Sun, 1 May 2005, Daniel Barkalow wrote:
>
> My question is, where does this belong? It's based on adding to the core
> as it has been the knowledge that .git/refs/*/* consists of hex-format
> hash files, both locally and on remote servers.

So the main reason I _don't_ like programs that automatically look up the refs etc is that its' often simply WRONG.

For example, if I want to know what objects I have in my object directory that are needed for a release, I want to be able to tell fsck to list the objects that are extraneous for that release _regardless_ of the fact that I may have .git/refs/*/* files that point to other things.

So if fsck-cache automatically looks up references in .git/refs/ like in one of your earlier patches, then instead of adding value to the program, you actually _remove_ value from it by making it less flexible, and enforcing a world-view that is not necessarily the only view.

This is why I want the true _plumbing_ to not care about these things, and if you include references to trees, you _list_ them explicitly.

And if you want to have a command that takes implied references, then just make a script that does that for you, rather than making the core plumbing understand it.

This is a classic "ease of use" vs "power-user" issue. I'm very fundamentally of the opinion that power-users are good, and that ease of use is done by having scripts that turn normal ops into "power user" operations.

That's the unix way, really.
		Linus
Previous: Daniel BarkalowNext: Daniel Barkalow
Message 2 of 14 in “Complete http-pull; where should it go?”
  1. Daniel BarkalowMay 1, 2005
  2. Linus TorvaldsMay 1, 2005
  3. Daniel BarkalowMay 1, 2005
  4. Linus TorvaldsMay 1, 2005
  5. Daniel BarkalowMay 1, 2005
  6. Linus TorvaldsMay 1, 2005
  7. Daniel BarkalowMay 1, 2005
  8. Linus TorvaldsMay 1, 2005
  9. Junio C HamanoMay 2, 2005
  10. Linus TorvaldsMay 2, 2005
  11. Junio C HamanoMay 2, 2005
  12. Linus TorvaldsMay 2, 2005
  13. Daniel BarkalowMay 2, 2005
  14. Junio C HamanoMay 1, 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.