diff options
-rw-r--r-- | diff.c | 1 | ||||
-rw-r--r-- | entry.c | 1 | ||||
-rw-r--r-- | sha1_file.c | 1 |
3 files changed, 3 insertions, 0 deletions
@@ -1364,6 +1364,7 @@ int diff_populate_filespec(struct diff_filespec *s, int size_only) s->data = xmmap(NULL, s->size, PROT_READ, MAP_PRIVATE, fd, 0); close(fd); s->should_munmap = 1; + /* FIXME! CRLF -> LF conversion goes here, based on "s->path" */ } else { char type[20]; @@ -89,6 +89,7 @@ static int write_entry(struct cache_entry *ce, char *path, struct checkout *stat return error("git-checkout-index: unable to create file %s (%s)", path, strerror(errno)); } + /* FIXME: LF -> CRLF conversion goes here, based on "ce->name" */ wrote = write_in_full(fd, new, size); close(fd); free(new); diff --git a/sha1_file.c b/sha1_file.c index 0d4bf80e74..8ad7fad825 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -2091,6 +2091,7 @@ int index_fd(unsigned char *sha1, int fd, struct stat *st, int write_object, con if (!type) type = blob_type; + /* FIXME: CRLF -> LF conversion here for blobs! We'll need the path! */ if (write_object) ret = write_sha1_file(buf, size, type, sha1); else |