Re: Fwd: [RFC/FR] Should "git checkout (-B|-b) branch master...branch" work?
- From
Michael Haggerty <mhagger@alum.mit.edu>
- Date
- Dec 21, 2012, 21:59 UTC
- Message-ID
- <50D4DBD0.7050601@alum.mit.edu>
- In-Reply-To
- <CANiSa6hcDHTpZnAXR3zxdv-H4r-yRjuSx_kgE5V1rSFk_pNhOA@mail.gmail.com>
On 12/21/2012 10:31 PM, Martin von Zweigbergk wrote:
Show 14 quoted lines
> On Fri, Dec 21, 2012 at 11:43 AM, Michael Haggerty <mhagger@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" syntax. >> >> I often find myself using "git diff A..B" syntax when using the command >> line history because the previous command used "A..B"; e.g., >> >> git log A..B >> git diff A..B > > The problem with this, to me, if it wasn't clear, is that "git log > A..B" shows you is new _since B branched off from A_, while "git diff > A..B" shows you what has changed _between A and B_.
You are quite right, of course, though in many useful cases they are the same. But I guess I should just buck myself up for the new orthodoxy :-)
Michael
-- Michael Haggerty mhagger@alum.mit.edu http://softwareswirl.blogspot.com/