[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Equivalent of "bzr diff -rancestor:"
From: |
Nicolas Richard |
Subject: |
Re: Equivalent of "bzr diff -rancestor:" |
Date: |
Mon, 17 Nov 2014 15:58:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.51 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> I can't seem to figure out how to do the above.
>
> Say, I'm on local branch "foo" which tracks a remote branch "foo", and
> I'd like to see what are the changes on this branch foo compared to
> "master".
>
> In Bazaar, I'd do something like "bzr diff -r ancestor:<master>"
> but I can't find any equivalent in "man gitrevisions".
>
> The best I can come up with is to arrange for "foo" to be uptodate with
> respect to "master", and then I can just do "git diff <master>", but
> sometimes it's inconvenient/impractical to be "uptodate".
Perhaps you want:
git diff origin/foo master
You need to "git fetch" first, so that origin/foo is uptodate.
--
Nicolas Richard