Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'pb/strbuf-read-file-doc' into maint
author
Junio C Hamano
<gitster@pobox.com>
Wed, 6 Jul 2016 20:06:45 +0000
(13:06 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 6 Jul 2016 20:06:45 +0000
(13:06 -0700)
Minor doc update.
* pb/strbuf-read-file-doc:
strbuf: describe the return value of strbuf_read_file
strbuf.h
patch
|
blob
|
history
raw
(from parent 1:
1c22105
)
diff --git
a/strbuf.h
b/strbuf.h
index 7987405313de3a8779e338129af62f9286c9985c..83c5c98530700de35bf3e3c3ef6692c4135fec4e 100644
(file)
--- a/
strbuf.h
+++ b/
strbuf.h
@@
-377,6
+377,8
@@
extern ssize_t strbuf_read_once(struct strbuf *, int fd, size_t hint);
/**
* Read the contents of a file, specified by its path. The third argument
* can be used to give a hint about the file size, to avoid reallocs.
+ * Return the number of bytes read or a negative value if some error
+ * occurred while opening or reading the file.
*/
extern ssize_t strbuf_read_file(struct strbuf *sb, const char *path, size_t hint);