git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
f31a38bcb7b6506b8008b5cce972037db5205331 blob 1837 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
 
/* 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);
	int (*write_index)(struct index_state *istate, int newfd);
};

extern struct index_ops v2_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 f31a38b ...
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/2] 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

git@vger.kernel.org list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ https://public-inbox.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.version-control.git
	nntp://ie5yzdi7fg72h7s4sdcztq5evakq23rdt33mfyfcddc5u3ndnw24ogqd.onion/inbox.comp.version-control.git
	nntp://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

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

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git