Git diff cr+lf inconsistency observations

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

 



(I am on the list cc not needed)

jpyeron@black /projects/cipherShed
$ git --version && uname -a
git version 1.8.4.21.g992c386
CYGWIN_NT-5.2-WOW64 black 1.7.30(0.272/5/3) 2014-05-23 10:36 i686 Cygwin

jpyeron@black /projects/cipherShed
$ git diff src/Format/Format.vcproj
diff --git a/src/Format/Format.vcproj b/src/Format/Format.vcproj
index 41081b5..e78f153 100644
--- a/src/Format/Format.vcproj
+++ b/src/Format/Format.vcproj
@@ -505,6 +505,10 @@
                                >
                        </File>
                        <File
+                               RelativePath="..\Common\snprintf.h"^M
+                               >^M
+                       </File>^M
+                       <File^M
                                RelativePath="..\Common\Tcdefs.h"
                                >
                        </File>

jpyeron@black /projects/cipherShed
$ hexdump.exe -C src/Format/Format.vcproj | less

000029c0  09 09 3c 2f 46 69 6c 65  3e 0d 0a 09 09 09 3c 46  |..</File>.....<F|
000029d0  69 6c 65 0d 0a 09 09 09  09 52 65 6c 61 74 69 76  |ile......Relativ|
000029e0  65 50 61 74 68 3d 22 2e  2e 5c 43 6f 6d 6d 6f 6e  |ePath="..\Common|
000029f0  5c 53 65 63 75 72 69 74  79 54 6f 6b 65 6e 2e 68  |\SecurityToken.h|
00002a00  22 0d 0a 09 09 09 09 3e  0d 0a 09 09 09 3c 2f 46  |"......>.....</F|
00002a10  69 6c 65 3e 0d 0a 09 09  09 3c 46 69 6c 65 0d 0a  |ile>.....<File..|
----------------------^^-----------------------------^^---
Why does git diff output not show these as CTRL-M?

00002a20  09 09 09 09 52 65 6c 61  74 69 76 65 50 61 74 68  |....RelativePath|
00002a30  3d 22 2e 2e 5c 43 6f 6d  6d 6f 6e 5c 73 6e 70 72  |="..\Common\snpr|
00002a40  69 6e 74 66 2e 68 22 0d  0a 09 09 09 09 3e 0d 0a  |intf.h"......>..|
-------------------------------^^--------------------^^---
When it shows these,
00002a50  09 09 09 3c 2f 46 69 6c  65 3e 0d 0a 09 09 09 3c  |...</File>.....<|
-----------------------------------------^^---------------
these,
00002a60  46 69 6c 65 0d 0a 09 09  09 09 52 65 6c 61 74 69  |File......Relati|
----------------------^^----------------------------------
and these.
00002a70  76 65 50 61 74 68 3d 22  2e 2e 5c 43 6f 6d 6d 6f  |vePath="..\Commo|
00002a80  6e 5c 54 63 64 65 66 73  2e 68 22 0d 0a 09 09 09  |n\Tcdefs.h".....|
00002a90  09 3e 0d 0a 09 09 09 3c  2f 46 69 6c 65 3e 0d 0a  |.>.....</File>..|

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.


--
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]