swh:1:snp:47f1e8bb459169b0feb652a9c3d9cbabd8526d4a
Raw File
Tip revision: e8dde3e5f9ddb7cf95a6ff3cea6cf07c3a2db80d authored by Junio C Hamano on 06 April 2012, 17:47:58 UTC
Git 1.7.10
Tip revision: e8dde3e
connected.h
#ifndef CONNECTED_H
#define CONNECTED_H

/*
 * 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);

#endif /* CONNECTED_H */
back to top