git diff-index --raw HEAD and git diff --raw HEAD output the same thing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does these two commands output the same content except displaying format?

Follwoing is my test

$ git diff-index --raw HEAD
:160000 000000 ad1e416e87dc02617de68c41bb18e5abf0e24729
0000000000000000000000000000000000000000 D      WordBreak
:160000 160000 34f279b1662a6bef6a8fdea1827bbdbd80f12444
0000000000000000000000000000000000000000 M      commonmake
:160000 100644 c517f783d9efb5a8d24f80fb67f644a39afec2a6
e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 T      util

$ git diff --raw HEAD
:160000 000000 ad1e416e87dc02617de68c41bb18e5abf0e24729 0000000... D
 WordBreak
:160000 160000 34f279b1662a6bef6a8fdea1827bbdbd80f12444
c1f46b3f10cc041e196c388490ddb049dacc7dc0 M      commonmake
:160000 100644 c517f783d9efb5a8d24f80fb67f644a39afec2a6 e69de29... T    util

Strange things is this line
:160000 160000 34f279b1662a6bef6a8fdea1827bbdbd80f12444
0000000000000000000000000000000000000000 M      commonmake

why mod is 160000 while sha1 is 0000...

-- 
Ping Yin
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux