Re: How do get a specific version of a particular file?
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 28, 2007, 00:31 UTC
- Message-ID
- <7vejob9l70.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0702271605290.12485@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 11 quoted lines
>> > OK, how is that different from git-diff ? >> >> I do not think there is any difference. "show" is about >> multiple points, not ranges. "diff" is about multiple >> (typically two) points, and not ranges. > > Well, I do think Ted has a good point. Having negative refs makes no sense > for the "no-walk" case (aka "git show"). > > ... Negative object refs really don't make any sense unless you walk > the object list (or you're "git diff" and know about ranges explicitly).
If you did not say "(or you're..." part, then I would agree to this 100%.
On the other hand, as you earlier said:
On Fri, 22 Dec 2006,...
>
> I can understand the advantage of a shortcut like "git diff ..next",
> ...I can't understand why people complain about this.
YOU DON'T HAVE TO USE IT.
...
> But, really, I still don't understand exactly _what_ "diff a..b" even
> means. Can you explain it to me?It means exactly the same as "diff a b".
It's that simple.
which made me lol, I am very tempted to say:
It means exactly the same as "show a b".
It's that simple.
Back to serious my self, I am wondering if this is a sensible thing to ask:
$ git show master...maint
which your patch now forbids.