* Is there a way to diff between a local repository and a remote one?
@ 2008-06-29 11:29 Erez Zilber
2008-06-29 11:55 ` Boaz Harrosh
2008-06-29 12:38 ` Jakub Narebski
0 siblings, 2 replies; 4+ messages in thread
From: Erez Zilber @ 2008-06-29 11:29 UTC (permalink / raw)
To: git@vger.kernel.org
I could clone the remote repository and use Linux's diff, but I prefer
to do it the right way (if possible).
Thanks,
Erez
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is there a way to diff between a local repository and a remote one?
2008-06-29 11:29 Is there a way to diff between a local repository and a remote one? Erez Zilber
@ 2008-06-29 11:55 ` Boaz Harrosh
2008-06-29 12:19 ` Erez Zilber
2008-06-29 12:38 ` Jakub Narebski
1 sibling, 1 reply; 4+ messages in thread
From: Boaz Harrosh @ 2008-06-29 11:55 UTC (permalink / raw)
To: Erez Zilber; +Cc: git@vger.kernel.org
Erez Zilber wrote:
> I could clone the remote repository and use Linux's diff, but I prefer
> to do it the right way (if possible).
>
> Thanks,
> Erez
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
I use git-remote add
and git-diff that_remote/that_branch
then from time to time "git-remote update" to update on remote progress
Boaz
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is there a way to diff between a local repository and a remote one?
2008-06-29 11:55 ` Boaz Harrosh
@ 2008-06-29 12:19 ` Erez Zilber
0 siblings, 0 replies; 4+ messages in thread
From: Erez Zilber @ 2008-06-29 12:19 UTC (permalink / raw)
To: Boaz Harrosh; +Cc: git@vger.kernel.org
On Sun, Jun 29, 2008 at 2:55 PM, Boaz Harrosh <bharrosh@panasas.com> wrote:
> Erez Zilber wrote:
>> I could clone the remote repository and use Linux's diff, but I prefer
>> to do it the right way (if possible).
>>
>> Thanks,
>> Erez
>> --
>> To unsubscribe from this list: send the line "unsubscribe git" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
> I use git-remote add
>
> and git-diff that_remote/that_branch
>
> then from time to time "git-remote update" to update on remote progress
>
> Boaz
thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is there a way to diff between a local repository and a remote one?
2008-06-29 11:29 Is there a way to diff between a local repository and a remote one? Erez Zilber
2008-06-29 11:55 ` Boaz Harrosh
@ 2008-06-29 12:38 ` Jakub Narebski
1 sibling, 0 replies; 4+ messages in thread
From: Jakub Narebski @ 2008-06-29 12:38 UTC (permalink / raw)
To: Erez Zilber; +Cc: git@vger.kernel.org
"Erez Zilber" <erezzi.list@gmail.com> writes:
> Is there a way to diff between a local repository and a remote one?
>
> I could clone the remote repository and use Linux's diff, but I prefer
> to do it the right way (if possible).
There is no way to do this remotely; you have to download either
snapshot (tarball) of remote repository (either from gitweb interface
or other web interface if snapshot feature is enabled, or using
"git archive --remote=<repo> <version>" (where <version> might be "HEAD")
if it is enabled on remote), or fetch / shallow fetch / shallow clone
of repository.
If local repository you want to diff is related to remote repository,
the simplest way would be to fetch (or shallow fetch) the repository
you want to compare into your repository, either using
$ git remote add -f <nick> <URL>
$ git diff HEAD <nick> #; or <nick>/HEAD, or <nick>/master
or
$ git fetch --no-tags <URL> <branch> #; you can add --depth=1
$ git diff HEAD FETCH_HEAD
(of course all above being in local repository; you can replace HEAD
by local revision you want to compare)
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-06-29 12:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-29 11:29 Is there a way to diff between a local repository and a remote one? Erez Zilber
2008-06-29 11:55 ` Boaz Harrosh
2008-06-29 12:19 ` Erez Zilber
2008-06-29 12:38 ` Jakub Narebski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).