git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
blob 4921c249d06b30b63864d317a38c8c924f569ea5 1086 bytes (raw)
name: reftable/writer.h 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
 
/*
Copyright 2020 Google LLC

Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/

#ifndef WRITER_H
#define WRITER_H

#include "basics.h"
#include "block.h"
#include "tree.h"
#include "reftable-writer.h"

struct reftable_writer {
	int (*write)(void *, const void *, size_t);
	void *write_arg;
	int pending_padding;
	struct strbuf last_key;

	/* offset of next block to write. */
	uint64_t next;
	uint64_t min_update_index, max_update_index;
	struct reftable_write_options opts;

	/* memory buffer for writing */
	uint8_t *block;

	/* writer for the current section. NULL or points to
	 * block_writer_data */
	struct block_writer *block_writer;

	struct block_writer block_writer_data;

	/* pending index records for the current section */
	struct reftable_index_record *index;
	size_t index_len;
	size_t index_cap;

	/*
	 * tree for use with tsearch; used to populate the 'o' inverse OID
	 * map */
	struct tree_node *obj_index_tree;

	struct reftable_stats stats;
};

#endif

debug log:

solving 4921c249d06b ...
found 4921c249d06b in https://public-inbox.org/git/f2f005afca192b0d9b0fc878ca40f3bbed53a28d.1615580397.git.gitgitgadget@gmail.com/ ||
	https://public-inbox.org/git/1f635e6c86c5ddda465280ef5cf956b688b14aea.1618255553.git.gitgitgadget@gmail.com/

applying [1/1] https://public-inbox.org/git/f2f005afca192b0d9b0fc878ca40f3bbed53a28d.1615580397.git.gitgitgadget@gmail.com/
diff --git a/reftable/writer.h b/reftable/writer.h
new file mode 100644
index 000000000000..4921c249d06b

Checking patch reftable/writer.h...
Applied patch reftable/writer.h cleanly.

skipping https://public-inbox.org/git/1f635e6c86c5ddda465280ef5cf956b688b14aea.1618255553.git.gitgitgadget@gmail.com/ for 4921c249d06b
index at:
100644 4921c249d06b30b63864d317a38c8c924f569ea5	reftable/writer.h

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).