Code

RelNotes: the first batch of topics graduated to 'master'
[git.git] / connected.h
1 #ifndef CONNECTED_H
2 #define CONNECTED_H
4 /*
5  * Take callback data, and return next object name in the buffer.
6  * When called after returning the name for the last object, return -1
7  * to signal EOF, otherwise return 0.
8  */
9 typedef int (*sha1_iterate_fn)(void *, unsigned char [20]);
11 /*
12  * Make sure that our object store has all the commits necessary to
13  * connect the ancestry chain to some of our existing refs, and all
14  * the trees and blobs that these commits use.
15  *
16  * Return 0 if Ok, non zero otherwise (i.e. some missing objects)
17  */
18 extern int check_everything_connected(sha1_iterate_fn, int quiet, void *cb_data);
20 #endif /* CONNECTED_H */