Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/git/git
/ reftable_buf_reset
Function
reftable_buf_reset
reftable/basics.c:92–98 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
90
}
91
92
void reftable_buf_reset(struct reftable_buf *buf)
93
{
94
if (buf->alloc) {
95
buf->len = 0;
96
buf->buf[0] =
'\0'
;
97
}
98
}
99
100
int reftable_buf_setlen(struct reftable_buf *buf, size_t len)
101
{
Callers
15
test_reftable_block__log_read_write
Function · 0.85
test_reftable_stack__add_one
Function · 0.85
test_reftable_stack__add
Function · 0.85
test_reftable_basics__common_prefix_size
Function · 0.85
writer_reinit_block_writer
Function · 0.85
writer_index_hash
Function · 0.85
writer_add_record
Function · 0.85
reftable_writer_add_ref
Function · 0.85
writer_finish_section
Function · 0.85
writer_flush_nonempty_block
Function · 0.85
reftable_fsck_check
Function · 0.85
stack_filename
Function · 0.85
Calls
no outgoing calls
Tested by
4
test_reftable_block__log_read_write
Function · 0.68
test_reftable_stack__add_one
Function · 0.68
test_reftable_stack__add
Function · 0.68
test_reftable_basics__common_prefix_size
Function · 0.68