mirror of
https://github.com/git/git.git
synced 2024-11-08 10:13:18 +01:00
47a5918536
The definition of "struct ref" in "cache.h", a header file so central to the system, always confused me. This structure is not about the local ref used by sha1-name API to name local objects. It is what refspecs are expanded into, after finding out what refs the other side has, to define what refs are updated after object transfer succeeds to what values. It belongs to "remote.h" together with "struct refspec". While we are at it, also move the types and functions related to the Git transport connection to a new header file connect.h Signed-off-by: Junio C Hamano <gitster@pobox.com>
13 lines
607 B
C
13 lines
607 B
C
#ifndef CONNECT_H
|
|
#define CONNECT_H
|
|
|
|
#define CONNECT_VERBOSE (1u << 0)
|
|
extern struct child_process *git_connect(int fd[2], const char *url, const char *prog, int flags);
|
|
extern int finish_connect(struct child_process *conn);
|
|
extern int git_connection_is_socket(struct child_process *conn);
|
|
extern int server_supports(const char *feature);
|
|
extern int parse_feature_request(const char *features, const char *feature);
|
|
extern const char *server_feature_value(const char *feature, int *len_ret);
|
|
extern const char *parse_feature_value(const char *feature_list, const char *feature, int *len_ret);
|
|
|
|
#endif
|