forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fsmonitor-ll.h: split this header out of fsmonitor.h
This creates a new fsmonitor-ll.h with most of the functions from fsmonitor.h, though it leaves three inline functions where they were. Two-thirds of the files that previously included fsmonitor.h did not need those three inline functions or the six extra includes those inline functions required, so this allows them to only include the lower level header. Diff best viewed with `--color-moved`. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
- Loading branch information
Showing
15 changed files
with
73 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#ifndef FSMONITOR_LL_H | ||
#define FSMONITOR_LL_H | ||
|
||
struct index_state; | ||
struct strbuf; | ||
|
||
extern struct trace_key trace_fsmonitor; | ||
|
||
/* | ||
* Read the fsmonitor index extension and (if configured) restore the | ||
* CE_FSMONITOR_VALID state. | ||
*/ | ||
int read_fsmonitor_extension(struct index_state *istate, const void *data, unsigned long sz); | ||
|
||
/* | ||
* Fill the fsmonitor_dirty ewah bits with their state from the index, | ||
* before it is split during writing. | ||
*/ | ||
void fill_fsmonitor_bitmap(struct index_state *istate); | ||
|
||
/* | ||
* Write the CE_FSMONITOR_VALID state into the fsmonitor index | ||
* extension. Reads from the fsmonitor_dirty ewah in the index. | ||
*/ | ||
void write_fsmonitor_extension(struct strbuf *sb, struct index_state *istate); | ||
|
||
/* | ||
* Add/remove the fsmonitor index extension | ||
*/ | ||
void add_fsmonitor(struct index_state *istate); | ||
void remove_fsmonitor(struct index_state *istate); | ||
|
||
/* | ||
* Add/remove the fsmonitor index extension as necessary based on the current | ||
* core.fsmonitor setting. | ||
*/ | ||
void tweak_fsmonitor(struct index_state *istate); | ||
|
||
/* | ||
* Run the configured fsmonitor integration script and clear the | ||
* CE_FSMONITOR_VALID bit for any files returned as dirty. Also invalidate | ||
* any corresponding untracked cache directory structures. Optimized to only | ||
* run the first time it is called. | ||
*/ | ||
void refresh_fsmonitor(struct index_state *istate); | ||
|
||
/* | ||
* Does the received result contain the "trivial" response? | ||
*/ | ||
int fsmonitor_is_trivial_response(const struct strbuf *query_result); | ||
|
||
#endif /* FSMONITOR_LL_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters