Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
git/connected.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (23 sloc)
930 Bytes
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
#ifndef CONNECTED_H | |
#define CONNECTED_H | |
struct transport; | |
/* | |
* Take callback data, and return next object name in the buffer. | |
* When called after returning the name for the last object, return -1 | |
* to signal EOF, otherwise return 0. | |
*/ | |
typedef int (*sha1_iterate_fn)(void *, unsigned char [20]); | |
/* | |
* Make sure that our object store has all the commits necessary to | |
* connect the ancestry chain to some of our existing refs, and all | |
* the trees and blobs that these commits use. | |
* | |
* Return 0 if Ok, non zero otherwise (i.e. some missing objects) | |
*/ | |
extern int check_everything_connected(sha1_iterate_fn, int quiet, void *cb_data); | |
extern int check_shallow_connected(sha1_iterate_fn, int quiet, void *cb_data, | |
const char *shallow_file); | |
extern int check_everything_connected_with_transport(sha1_iterate_fn, int quiet, | |
void *cb_data, | |
struct transport *transport); | |
#endif /* CONNECTED_H */ |