]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
diff: shortcut for diff'ing two binary SHA-1 objects
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 16 Aug 2014 03:08:06 +0000 (10:08 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Aug 2014 17:16:55 +0000 (10:16 -0700)
commit1aaf69e669b7fd67073d3024b386ac25ac77d0f8
tree35d49af45158e859a9918eac1957965af800f5c7
parent6bf3b813486b4528feca39d599c256f662defc14
diff: shortcut for diff'ing two binary SHA-1 objects

If we are given two SHA-1 and asked to determine if they are different
(but not _what_ differences), we know right away by comparing SHA-1.

A side effect of this patch is, because large files are marked binary,
diff-tree will not need to unpack them. 'diff-index --cached' will not
either. But 'diff-files' still does.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
t/t1050-large.sh