From: Marat Radchenko Date: Tue, 23 Aug 2011 18:21:48 GMT Subject: Re: What's the difference between `git show branch:file | diff -u - file` vs `git diff branch file`? Message-ID: In-Reply-To: <7vk4a4rqvb.fsf@alter.siamese.dyndns.org> Junio C Hamano pobox.com> writes: > Not necessarily, especially when pathspec is given like the original post, > i.e. "git diff $tree_ish -- $path". We would need to open tree objects > that lead to the leaf of the $path and a blob, but other objects won't be > needed. And git show branch:path already has that code.