Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-05-01 23:39:58 +0300
committerJunio C Hamano <gitster@pobox.com>2020-05-01 23:39:59 +0300
commitdd094c2b75401f6e1e53e7a5bbfca3c66c44f556 (patch)
treec10b122157431d5be105f48436f909bdeb345381 /strbuf.c
parent6d6b412da32229bf6a5f366a72b5ad29cc70ce59 (diff)
parent8f0e9843bdf82b04591416367bee3817991e0722 (diff)
Merge branch 'es/bugreport'
The "bugreport" tool. * es/bugreport: bugreport: drop extraneous includes bugreport: add compiler info bugreport: add uname info bugreport: gather git version and build info bugreport: add tool to generate debugging info help: move list_config_help to builtin/help
Diffstat (limited to 'strbuf.c')
-rw-r--r--strbuf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/strbuf.c b/strbuf.c
index 6e74901bfa..880daaaaa9 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -554,6 +554,10 @@ ssize_t strbuf_write(struct strbuf *sb, FILE *f)
return sb->len ? fwrite(sb->buf, 1, sb->len, f) : 0;
}
+ssize_t strbuf_write_fd(struct strbuf *sb, int fd)
+{
+ return sb->len ? write(fd, sb->buf, sb->len) : 0;
+}
#define STRBUF_MAXLINK (2*PATH_MAX)