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:
26604f9
)
diff-no-index.c: use error_errno()
author
Nguyễn Thái Ngọc Duy
<redacted>
Sun, 8 May 2016 09:47:42 +0000
(16:47 +0700)
committer
Junio C Hamano
<redacted>
Mon, 9 May 2016 19:29:08 +0000
(12:29 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
diff-no-index.c
patch
|
blob
|
history
diff --git
a/diff-no-index.c
b/diff-no-index.c
index 03daadb25af835a695c7d0baf466b0e1f82b58c4..1f8999b9cabf52c85b63f27178023ff53b7567c3 100644
(file)
--- a/
diff-no-index.c
+++ b/
diff-no-index.c
@@
-65,8
+65,7
@@
static int populate_from_stdin(struct diff_filespec *s)
size_t size = 0;
if (strbuf_read(&buf, 0, 0) < 0)
- return error("error while reading from stdin %s",
- strerror(errno));
+ return error_errno("error while reading from stdin");
s->should_munmap = 0;
s->data = strbuf_detach(&buf, &size);
git clone https://git.99rst.org/PROJECT