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

struct repository;

enum fsmonitor_mode {
	FSMONITOR_MODE_INCOMPATIBLE = -1, /* see _reason */
	FSMONITOR_MODE_DISABLED = 0,
	FSMONITOR_MODE_HOOK = 1, /* core.fsmonitor=<hook_path> */
	FSMONITOR_MODE_IPC = 2,  /* core.fsmonitor=<true> */
};

/*
 * Incompatibility reasons.
 */
enum fsmonitor_reason {
	FSMONITOR_REASON_OK = 0, /* no incompatibility or when disbled */
	FSMONITOR_REASON_BARE,
};

void fsm_settings__set_ipc(struct repository *r);
void fsm_settings__set_hook(struct repository *r, const char *path);
void fsm_settings__set_disabled(struct repository *r);

enum fsmonitor_mode fsm_settings__get_mode(struct repository *r);
const char *fsm_settings__get_hook_path(struct repository *r);

enum fsmonitor_reason fsm_settings__get_reason(struct repository *r);
int fsm_settings__error_if_incompatible(struct repository *r);

struct fsmonitor_settings;

#endif /* FSMONITOR_SETTINGS_H */
debug log:

solving 8654edf33d8 ...
found 8654edf33d8 in https://public-inbox.org/git/f2c0569c9012a86f252562a9a906f6de37d0a236.1648140680.git.gitgitgadget@gmail.com/ ||
	https://public-inbox.org/git/a8f0b2a5256932e02469051ef5aa43445af5fc03.1647973380.git.gitgitgadget@gmail.com/ ||
	https://public-inbox.org/git/004b67b62e3717c9daeb6dcda1e9d84d44fa4984.1650487399.git.gitgitgadget@gmail.com/
found a4c5d7b4889 in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100644 a4c5d7b48891fe6d6bb3705fe1107fcae8e9dc29	fsmonitor-settings.h

applying [1/3] https://public-inbox.org/git/f2c0569c9012a86f252562a9a906f6de37d0a236.1648140680.git.gitgitgadget@gmail.com/
diff --git a/fsmonitor-settings.h b/fsmonitor-settings.h
index a4c5d7b4889..8654edf33d8 100644

Checking patch fsmonitor-settings.h...
Applied patch fsmonitor-settings.h cleanly.

skipping https://public-inbox.org/git/a8f0b2a5256932e02469051ef5aa43445af5fc03.1647973380.git.gitgitgadget@gmail.com/ for 8654edf33d8
skipping https://public-inbox.org/git/004b67b62e3717c9daeb6dcda1e9d84d44fa4984.1650487399.git.gitgitgadget@gmail.com/ for 8654edf33d8
index at:
100644 8654edf33d80d9551ac8bd4a6c4401c707baa919	fsmonitor-settings.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).