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

Re: Git vs svn. Is ... possible ?

From
APAdam Piatyszek <ediap@users.sourceforge.net>
Date
Mar 28, 2008, 13:36 UTC
Message-ID
<47ECF459.2040500@users.sourceforge.net>
In-Reply-To
<20080328132438.GA32646@blackspire>
Hi Rafał,
* Rafa? Mu?y?o [28 III 2008 14:24]:
> Well, the actual question is:
> In svn I can do a remote diff (diff between two remote revisions) without
> having to do a checkout, is this possible for git ?

The question makes no sense to me. Git by design is a distributed SCM tool, so there is no such thing like "remote revisions". You can have tracking branches (clones) of some remote repositories, but all the commits on such branches are also stored locally. So you have full access to them, even without a permanent connection to such remote repositories.

And answering to the second part of your question: Yes, you can do "git diff" operation between any of the commits in the repository you are working with. No need to checkout before. You can perform "git diff" even on a bare repository without the working three.

Please refer to "man git-diff" for more info.

BR, /Adam

PS. The encoding you used for your message is not playing well with the Polish accented characters in your name ;)

-- 
.:.  Adam Piatyszek (ediap)  .:.....................................:.
.:.  ediap@users.sourceforge.net  .:................................:.
Previous: Rafał MużyłoNext: Theodore Tso
Message 2 of 5 in “Git vs svn. Is ... possible ?”
  1. Rafał MużyłoMar 28, 2008
  2. Adam PiatyszekMar 28, 2008
  3. Theodore TsoMar 28, 2008
  4. Bill LearMar 28, 2008
  5. John GoerzenMar 31, 2008

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.