Re: diff using 3-dot behavior

2016-08-24 Thread Jeff King
On Wed, Aug 24, 2016 at 01:48:30PM -0700, Jacob Keller wrote: > On Wed, Aug 24, 2016 at 9:22 AM, Junio C Hamano wrote: > > The merge-base is to compute the point you forked your topic from > > the mainline. So if you want to compare your current state in the > > index with

Re: diff using 3-dot behavior

2016-08-24 Thread Jacob Keller
On Wed, Aug 24, 2016 at 9:22 AM, Junio C Hamano wrote: > The merge-base is to compute the point you forked your topic from > the mainline. So if you want to compare your current state in the > index with the fork point, you'd do > > git diff --cached $(git merge-base

Re: diff using 3-dot behavior

2016-08-24 Thread Junio C Hamano
Robert Dailey writes: > $ git diff master...topic ... which is defined roughly as git diff $(git merge-base master topic) topic The merge-base is to compute the point you forked your topic from the mainline. So if you want to compare your current state in

Re: diff using 3-dot behavior

2016-08-24 Thread Robert Dailey
On Wed, Aug 24, 2016 at 11:00 AM, Michael J Gruber wrote: > The 3-dot notation means: > > Show the difference between the merge-base of master and topic, and topic. > > I'm not completely sure, but I guess what you want is: > > Show the difference between the merge-base

Re: diff using 3-dot behavior

2016-08-24 Thread Michael J Gruber
Robert Dailey venit, vidit, dixit 24.08.2016 16:28: > I want to view the complete diff of my branch (topic) relative to its > parent branch (master). This should include cached/staged files and > unstaged working tree changes. > > If I do this: > > $ git diff master > > This will include

diff using 3-dot behavior

2016-08-24 Thread Robert Dailey
I want to view the complete diff of my branch (topic) relative to its parent branch (master). This should include cached/staged files and unstaged working tree changes. If I do this: $ git diff master This will include changes on master *since* my last merge, which I do not want (I don't want