git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
ce9b79c6d97f20660bc66f2bb42cb574f80c84bf blob 2301 bytes (raw)

 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
 
/* Index extensions.
 *
 * The first letter should be 'A'..'Z' for extensions that are not
 * necessary for a correct operation (i.e. optimization data).
 * When new extensions are added that _needs_ to be understood in
 * order to correctly interpret the index file, pick character that
 * is outside the range, to cause the reader to abort.
 */

#define CACHE_EXT(s) ( (s[0]<<24)|(s[1]<<16)|(s[2]<<8)|(s[3]) )
#define CACHE_EXT_TREE 0x54524545	/* "TREE" */
#define CACHE_EXT_RESOLVE_UNDO 0x52455543 /* "REUC" */

#define INDEX_FORMAT_DEFAULT 3

/*
 * Basic data structures for the directory cache
 */
struct cache_version_header {
	unsigned int hdr_signature;
	unsigned int hdr_version;
};

struct index_ops {
	int (*match_stat_basic)(const struct cache_entry *ce, struct stat *st, int changed);
	int (*verify_hdr)(void *mmap, unsigned long size);
	int (*read_index)(struct index_state *istate, void *mmap, unsigned long mmap_size,
			  struct filter_opts *opts);
	int (*write_index)(struct index_state *istate, int newfd);
	void (*index_change_filter_opts)(struct index_state *istate, struct filter_opts *opts);
};

struct internal_ops {
	int (*for_each_index_entry)(struct index_state *istate, each_cache_entry_fn fn, void *cb_data);
	int (*get_index_entry_by_name)(struct index_state *istate, const char *name, int namelen,
				       struct cache_entry **ce);
	void (*sort_index)(struct index_state *istate);
};

extern struct index_ops v2_ops;
extern struct internal_ops v2_internal_ops;

#ifndef NEEDS_ALIGNED_ACCESS
#define ntoh_s(var) ntohs(var)
#define ntoh_l(var) ntohl(var)
#else
static inline uint16_t ntoh_s_force_align(void *p)
{
	uint16_t x;
	memcpy(&x, p, sizeof(x));
	return ntohs(x);
}
static inline uint32_t ntoh_l_force_align(void *p)
{
	uint32_t x;
	memcpy(&x, p, sizeof(x));
	return ntohl(x);
}
#define ntoh_s(var) ntoh_s_force_align(&(var))
#define ntoh_l(var) ntoh_l_force_align(&(var))
#endif

extern int ce_modified_check_fs(const struct cache_entry *ce, struct stat *st);
extern int ce_match_stat_basic(struct index_state *istate, const struct cache_entry *ce,
			       struct stat *st);
extern int is_racy_timestamp(const struct index_state *istate, const struct cache_entry *ce);
extern void set_index_entry(struct index_state *istate, int nr, struct cache_entry *ce);
debug log:

solving ce9b79c ...
found ce9b79c in https://public-inbox.org/git/1373184720-29767-6-git-send-email-t.gummerer@gmail.com/
found f31a38b in https://public-inbox.org/git/1373184720-29767-4-git-send-email-t.gummerer@gmail.com/ ||
	https://public-inbox.org/git/1373650024-3001-4-git-send-email-t.gummerer@gmail.com/

applying [1/3] https://public-inbox.org/git/1373184720-29767-4-git-send-email-t.gummerer@gmail.com/
diff --git a/read-cache.h b/read-cache.h
new file mode 100644
index 0000000..f31a38b

Checking patch read-cache.h...
Applied patch read-cache.h cleanly.

skipping https://public-inbox.org/git/1373650024-3001-4-git-send-email-t.gummerer@gmail.com/ for f31a38b
index at:
100644 f31a38bcb7b6506b8008b5cce972037db5205331	read-cache.h

applying [2/3] https://public-inbox.org/git/1373184720-29767-6-git-send-email-t.gummerer@gmail.com/
diff --git a/read-cache.h b/read-cache.h
index f31a38b..ce9b79c 100644

Checking patch read-cache.h...
Applied patch read-cache.h cleanly.

index at:
100644 ce9b79c6d97f20660bc66f2bb42cb574f80c84bf	read-cache.h

Code repositories for project(s) associated with this 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).