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

Re: Remote git-cat-file?

From
EElrond <elrond+kernel.org@samba-tng.org>
Date
May 28, 2006, 10:57 UTC
Message-ID
<loom.20060528T124835-757@post.gmane.org>
In-Reply-To
<Pine.LNX.4.64.0605271727110.5623@g5.osdl.org>

Linus Torvalds <torvalds <at> osdl.org> writes: [...]

> But in the general case, the answer is no. Set up a gitweb thing, and look 
> up the objects that way. Or just pull the repo, and look at it locally.
I ended up doing that (clone whole remote repo).
> Just out of interest, why would you ever want to just look at a single 
> object?

Well... I screwed up my local clone of a repo. git-fsck told me what objects I needed. So I finally ended up downloading the whole repo again to extract 16 objects. ;)

The other possible use for remote git-cat-file: It might be useful in shallow repos to selectively load objects "on demand". (In fact, I screwed my repo by trying to make it shallow.)

    Elrond
Previous: Linus TorvaldsNext: Jakub Narebski
Message 4 of 7 in “Remote git-cat-file?”
  1. ElrondMay 27, 2006
  2. Linus TorvaldsMay 28, 2006
  3. Linus TorvaldsMay 28, 2006
  4. ElrondMay 28, 2006
  5. Jakub NarebskiMay 28, 2006
  6. Junio C HamanoMay 28, 2006
  7. Jakub NarebskiMay 28, 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.