git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / Atom feed
b009440c0a9cfb9bf0cfc1f668a02bf0b95eb841 blob 1214 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
 
#ifndef REFSPEC_H
#define REFSPEC_H

#define TAG_REFSPEC "refs/tags/*:refs/tags/*"
const struct refspec_item *tag_refspec;

struct refspec_item {
	unsigned force : 1;
	unsigned pattern : 1;
	unsigned matching : 1;
	unsigned exact_sha1 : 1;

	char *src;
	char *dst;
};

struct refspec_item *parse_fetch_refspec(int nr_refspec, const char **refspec);
struct refspec_item *parse_push_refspec(int nr_refspec, const char **refspec);

void free_refspec(int nr_refspec, struct refspec_item *refspec);

#define REFSPEC_FETCH 1
#define REFSPEC_PUSH 0

#define REFSPEC_INIT_FETCH { .fetch = REFSPEC_FETCH }
#define REFSPEC_INIT_PUSH { .fetch = REFSPEC_PUSH }

struct refspec {
	struct refspec_item *items;
	int alloc;
	int nr;

	const char **raw;
	int raw_alloc;
	int raw_nr;

	int fetch;
};

void refspec_item_init(struct refspec_item *item, const char *refspec, int fetch);
void refspec_item_clear(struct refspec_item *item);
void refspec_init(struct refspec *rs, int fetch);
void refspec_append(struct refspec *rs, const char *refspec);
void refspec_appendn(struct refspec *rs, const char **refspecs, int nr);
void refspec_clear(struct refspec *rs);

int valid_fetch_refspec(const char *refspec);

#endif /* REFSPEC_H */
debug log:

solving b009440c0 ...
found b009440c0 in https://public-inbox.org/git/20180514215626.164960-6-bmwill@google.com/
found f6fb251f3 in https://public-inbox.org/git/20180514215626.164960-5-bmwill@google.com/
found 173cea882 in https://public-inbox.org/git/20180514215626.164960-4-bmwill@google.com/
found b1db91918 in https://public-inbox.org/git/20180514215626.164960-2-bmwill@google.com/

applying [1/4] https://public-inbox.org/git/20180514215626.164960-2-bmwill@google.com/
diff --git a/refspec.h b/refspec.h
new file mode 100644
index 000000000..b1db91918


applying [2/4] https://public-inbox.org/git/20180514215626.164960-4-bmwill@google.com/
diff --git a/refspec.h b/refspec.h
index b1db91918..173cea882 100644


applying [3/4] https://public-inbox.org/git/20180514215626.164960-5-bmwill@google.com/
diff --git a/refspec.h b/refspec.h
index 173cea882..f6fb251f3 100644


applying [4/4] https://public-inbox.org/git/20180514215626.164960-6-bmwill@google.com/
diff --git a/refspec.h b/refspec.h
index f6fb251f3..b009440c0 100644

Checking patch refspec.h...
Applied patch refspec.h cleanly.
Checking patch refspec.h...
Applied patch refspec.h cleanly.
Checking patch refspec.h...
Applied patch refspec.h cleanly.
Checking patch refspec.h...
Applied patch refspec.h cleanly.

index at:
100644 b009440c0a9cfb9bf0cfc1f668a02bf0b95eb841	refspec.h

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

Archives are clonable:
	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

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/

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