diff options
| author | Junio C Hamano <gitster@pobox.com> | 2018-07-24 14:50:47 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-07-24 14:50:47 -0700 |
| commit | 9cb10ca9df2f95e97b5a75d7fea3087972c298ae (patch) | |
| tree | 0b288477e15e44c5501880b32b74befd24c778da /refs/refs-internal.h | |
| parent | Merge branch 'jt/partial-clone-fsck-connectivity' (diff) | |
| parent | convert log_ref_write_fd() to use strbuf (diff) | |
| download | git-9cb10ca9df2f95e97b5a75d7fea3087972c298ae.tar.gz git-9cb10ca9df2f95e97b5a75d7fea3087972c298ae.zip | |
Merge branch 'bp/log-ref-write-fd-with-strbuf'
Code clean-up.
* bp/log-ref-write-fd-with-strbuf:
convert log_ref_write_fd() to use strbuf
Diffstat (limited to 'refs/refs-internal.h')
| -rw-r--r-- | refs/refs-internal.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h index 54bde5089a..04425d6d1e 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -93,11 +93,10 @@ enum peel_status { enum peel_status peel_object(const struct object_id *name, struct object_id *oid); /* - * Copy the reflog message msg to buf, which has been allocated sufficiently - * large, while cleaning up the whitespaces. Especially, convert LF to space, - * because reflog file is one line per entry. + * Copy the reflog message msg to sb while cleaning up the whitespaces. + * Especially, convert LF to space, because reflog file is one line per entry. */ -int copy_reflog_msg(char *buf, const char *msg); +void copy_reflog_msg(struct strbuf *sb, const char *msg); /** * Information needed for a single ref update. Set new_oid to the new |
