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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux