]> git.ipfire.org Git - thirdparty/git.git/blame - connected.h
kill limit_pathspec_to_literal() as it's only used by parse_pathspec()
[thirdparty/git.git] / connected.h
CommitLineData
f96400cb
JH
1#ifndef CONNECTED_H
2#define CONNECTED_H
3
c6807a40
NTND
4struct transport;
5
f96400cb
JH
6/*
7 * Take callback data, and return next object name in the buffer.
8 * When called after returning the name for the last object, return -1
9 * to signal EOF, otherwise return 0.
10 */
11typedef int (*sha1_iterate_fn)(void *, unsigned char [20]);
12
13/*
14 * Make sure that our object store has all the commits necessary to
15 * connect the ancestry chain to some of our existing refs, and all
16 * the trees and blobs that these commits use.
17 *
18 * Return 0 if Ok, non zero otherwise (i.e. some missing objects)
19 */
20extern int check_everything_connected(sha1_iterate_fn, int quiet, void *cb_data);
c6807a40
NTND
21extern int check_everything_connected_with_transport(sha1_iterate_fn, int quiet,
22 void *cb_data,
23 struct transport *transport);
f96400cb
JH
24
25#endif /* CONNECTED_H */