My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7356b51
)
sha1_file: don't mix enum with int
author
Ramkumar Ramachandra
<artagnon@gmail.com>
Tue, 15 Nov 2011 16:59:39 +0000
(22:29 +0530)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 16 Nov 2011 00:09:20 +0000
(16:09 -0800)
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c
patch
|
blob
|
history
diff --git
a/sha1_file.c
b/sha1_file.c
index
27f3b9b
..
6dcae38
100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-2616,7
+2616,7
@@
static int index_mem(unsigned char *sha1, void *buf, size_t size,
if ((type == OBJ_BLOB) && path) {
struct strbuf nbuf = STRBUF_INIT;
if (convert_to_git(path, buf, size, &nbuf,
- write_object ? safe_crlf :
0
)) {
+ write_object ? safe_crlf :
SAFE_CRLF_FALSE
)) {
buf = strbuf_detach(&nbuf, &size);
re_allocated = 1;
}