git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
5ca64e4
)
When showing a commit message, do not lose an incomplete line.
author
Linus Torvalds
<redacted>
Wed, 12 Apr 2006 18:31:23 +0000
(11:31 -0700)
committer
Junio C Hamano
<redacted>
Wed, 12 Apr 2006 18:31:23 +0000
(11:31 -0700)
commit.c
patch
|
blob
|
history
diff --git
a/commit.c
b/commit.c
index d534c9ba586ddf75be9104aa3d4a3845a54d39f2..c7bb8dba64d37a6733f521c166d24e348778965b 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-400,11
+400,11
@@
static int get_one_line(const char *msg, unsigned long len)
while (len--) {
char c = *msg++;
+ if (!c)
+ break;
ret++;
if (c == '\n')
break;
- if (!c)
- return 0;
}
return ret;
}
git clone https://git.99rst.org/PROJECT