Thread (5 messages) flat view 5 messages, 5 authors, 2016-06-15

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

From: Bill Lear <hidden>
Date: 2016-06-15 22:44:26

On Friday, March 28, 2008 at 14:24:38 (+0100) =?utf-8?B?UmFmYcWCIE11xbx5xYJv?= writes:
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 ?
I'm not sure what you mean by "two remote revisions".  Do you mean you
are on machine X, and you want to diff content on machine Y and
machine Z?  If so, you could probably do that in git fairly easily
with some script magic that would fetch the remote branches into local
tracking branches, and then diff them.  This would not literally
require you to perform a "checkout", but you would need a git repo
(actually a script could take care of creating a temporary repo, fetch
into it, do the diff and then remove the temporary repo when done).

If you are talking about having an existing repo on machine X and
diffing content that is on machine Y, you can do a fetch followed by a
diff, so in that case you can do it literally "without having to do a
checkout".  Example: if you are working on master and want to see what
is different between what you have and what is in a remote repo you
are tracking, you can do "git fetch" then "git diff origin/master".


Bill
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help