diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-26 16:22:04 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-06-14 22:29:57 -0400 |
commit | 61838295a055c8c7a4a7eb730538c6e08a38dd6a (patch) | |
tree | 5604984c3a4cc35c05065e09d9691d2892b6cf66 /src/libgit2/oid.c | |
parent | b7a46fa8505f6b1d9a4c0a844b6e8f91522257bf (diff) | |
download | libgit2-61838295a055c8c7a4a7eb730538c6e08a38dd6a.tar.gz |
object: move oid header printing to object
Diffstat (limited to 'src/libgit2/oid.c')
-rw-r--r-- | src/libgit2/oid.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libgit2/oid.c b/src/libgit2/oid.c index e038cc08e..83f0fa59d 100644 --- a/src/libgit2/oid.c +++ b/src/libgit2/oid.c @@ -143,16 +143,6 @@ char *git_oid_tostr(char *out, size_t n, const git_oid *oid) return out; } -void git_oid__writebuf(git_str *buf, const char *header, const git_oid *oid) -{ - char hex_oid[GIT_OID_SHA1_HEXSIZE]; - - git_oid_fmt(hex_oid, oid); - git_str_puts(buf, header); - git_str_put(buf, hex_oid, GIT_OID_SHA1_HEXSIZE); - git_str_putc(buf, '\n'); -} - int git_oid_fromraw(git_oid *out, const unsigned char *raw) { memcpy(out->id, raw, sizeof(out->id)); |