Quoting Tor Arvid Lund <torarvid@xxxxxxxxx>:
Well, I'm no expert, but I'll try:
Thanks. :-)
I think if you have the core.autocrlf config option set to true, it should automatically convert line endings to CRLF for you when checking out files to your working dir, and converting it back to LF when committing. [snipped]
I did try exactly that - actually I tried explicitly setting it either way, and neither worked. At any rate, the files in my case _have_ CRLF in perforce, and what I want to achieve is really just to have everybody leave them alone, i.e., no conversions whatsoever. :-)
From my code reading, core.autocrlf doesn't seem to be referenced anywhere in git-p4 anyways. In fact, besides the p4 -G issue I described in my first post, git-p4 itself also seems to always convert "\r\n" to "\n" on any Windows text files (in method P4Sync.commit()), prior to send them to git-fast-import.
And git-fast-import doesn't really do any conversion. The commit data it receives is always treated as binary (which is good). So it seems to me that the core git is off the hook here.
Cheers. -- Jing Xue -- 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