Fwd: [RFC/FR] Should git checkout (-B|-b) branch master...branch work?

2012-12-21 Thread Martin von Zweigbergk
Oops, meant for all of you. -- Forwarded message -- From: Martin von Zweigbergk martinv...@gmail.com Date: Fri, Dec 21, 2012 at 8:45 AM Subject: Re: [RFC/FR] Should git checkout (-B|-b) branch master...branch work? To: Junio C Hamano gits...@pobox.com On Fri, Dec 21, 2012 at

Re: Fwd: [RFC/FR] Should git checkout (-B|-b) branch master...branch work?

2012-12-21 Thread Junio C Hamano
Martin von Zweigbergk martinv...@gmail.com writes: I keep forgetting what git diff A..B does. diff is always about two endpoints, not the path that connects these two endpoints (aka range), and when you want to diff between two commits, you say diff A B. A..B happens to be accepted as such

Re: Fwd: [RFC/FR] Should git checkout (-B|-b) branch master...branch work?

2012-12-21 Thread Michael Haggerty
On 12/21/2012 06:12 PM, Junio C Hamano wrote: diff is always about two endpoints, not the path that connects these two endpoints (aka range), and when you want to diff between two commits, you say diff A B. A..B happens to be accepted as such only by accident (e.g. the old command line parser

Re: Fwd: [RFC/FR] Should git checkout (-B|-b) branch master...branch work?

2012-12-21 Thread Junio C Hamano
Off topic: I also find it hard to wrap my head around what diffing against a negative revision would mean. Looking at the result of running it, it seems to be the same as diffing against a positive one. That is not an off-topic at all, but is the crux of diff A..B being a hysterical raisins.

Re: Fwd: [RFC/FR] Should git checkout (-B|-b) branch master...branch work?

2012-12-21 Thread Michael Haggerty
On 12/21/2012 10:31 PM, Martin von Zweigbergk wrote: On Fri, Dec 21, 2012 at 11:43 AM, Michael Haggerty mhag...@alum.mit.edu wrote: On 12/21/2012 06:12 PM, Junio C Hamano wrote: side note: incidentally, now we have rev_cmdline_info support, we could start deprecating diff A..B