Junio C Hamano | f96400c | 2011-09-02 16:33:22 -0700 | [diff] [blame] | 1 | #ifndef CONNECTED_H |
| 2 | #define CONNECTED_H |
| 3 | |
| 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]); |
| 10 | |
| 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); |
| 19 | |
| 20 | #endif /* CONNECTED_H */ |