OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'bc/hash-algo' into maint
[git-core/git.git]
/
pkt-line.c
diff --git
a/pkt-line.c
b/pkt-line.c
index
93ea311
..
2827ca7
100644
(file)
--- a/
pkt-line.c
+++ b/
pkt-line.c
@@
-188,6
+188,12
@@
static int packet_write_gently(const int fd_out, const char *buf, size_t size)
return 0;
}
+void packet_write(int fd_out, const char *buf, size_t size)
+{
+ if (packet_write_gently(fd_out, buf, size))
+ die_errno("packet write failed");
+}
+
void packet_buf_write(struct strbuf *buf, const char *fmt, ...)
{
va_list args;