diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-07-08 13:56:53 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-08 14:34:24 -0700 |
commit | 47a59185369b8905ad3a4012688cba92fd2ac1ff (patch) | |
tree | 7e271a236273885e4188eb7e1910ba932bd2a1eb /transport.h | |
parent | f8abaebab3fe1a1b873f9636ea410ac4007c8fa8 (diff) | |
download | git-47a59185369b8905ad3a4012688cba92fd2ac1ff.tar.gz |
cache.h: move remote/connect API out of it
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>
Diffstat (limited to 'transport.h')
-rw-r--r-- | transport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/transport.h b/transport.h index ea70ea7e4a..b551f99110 100644 --- a/transport.h +++ b/transport.h @@ -2,6 +2,7 @@ #define TRANSPORT_H #include "cache.h" +#include "run-command.h" #include "remote.h" struct git_transport_options { |