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

Re: git log of remote repositories.

From
Johannes Gilger <heipei@hackvalue.de>
Date
Apr 14, 2010, 19:45 UTC
Message-ID
<20100414194552.GA5178@dualtron.lan>
In-Reply-To
<x2q3abd05a91004141208x6e154385l8b7ce6488d65f21b@mail.gmail.com>
On 14/04/10 15:08, Aghiles wrote:
> It seems to me like a major restriction! Especially that I am tracking
> a remote branch ... No possibilities to do a diff or a log without fetching?
> Very sad. :(

Major restriction? Have you understood how git works, internally? The first thing you'd have to do is to get the data (i.e. your version or their version) on one of the sides then do the diff there. Now, that either means you have to upload your non-matching objects or they have to upload their non-matching objects. Next up, you might not even have the authority (or technical possibility) to put data on that server (think http), so obviously the diff will have to be done at your side.

So, what will be transmitted? Data the server already has but you don't. git determines this data and then packs it into an efficient format and sends it to you. Which is what? A diff of your version vs. theirs. Except we don't transmit plain diffs but pack them up nicely so the data is smaller and (because you now effectively fetched it) can be reused any time after that initial diff.

If you're worried you might be downloading GBs of data in the process you can always interrupt a running fetch.

Now, one might think of some very limited form of log. Like "git remote-log master..master@origin" (syntax made up). This would be something which could only be used with smart protocols and would display a log (which you couldn't trust because you can't verify the integrity and still has not much metadata). And it would be a heap of new functionality to implement for something that doesn't fit into the workflow of a git user. For the user it would probably take the same amount of time as simply fetching everything new in most cases.

Or you can use SVN and have real online-diffs with real speed ;)

Greetings, Jojo

-- 
Johannes Gilger <heipei@hackvalue.de>
http://heipei.net
GPG-Key: 0xD47A7FFC
GPG-Fingerprint: 5441 D425 6D4A BD33 B580  618C 3CDC C4D0 D47A 7FFC
Previous: Tomas CarneckyNext: Aghiles
Message 7 of 12 in “git log of remote repositories.”
  1. AghilesApr 13, 2010
  2. Shawn O. PearceApr 13, 2010
  3. Dave OlszewskiApr 14, 2010
  4. Johannes GilgerApr 14, 2010
  5. AghilesApr 14, 2010
  6. Tomas CarneckyApr 14, 2010
  7. Johannes GilgerApr 14, 2010
  8. AghilesApr 14, 2010
  9. Sverre RabbelierApr 14, 2010
  10. AghilesApr 14, 2010
  11. Sverre RabbelierApr 14, 2010
  12. Johannes GilgerApr 14, 2010

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.