mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 16:22:40 +00:00

Instad of each transport having its own function and logic to get to its refs, store them directly in transport. Leverage the new gitno_buffer to make the parsing and storing of the refs use common code and get rid of the git_protocol struct.
18 lines
465 B
C
18 lines
465 B
C
/*
|
|
* Copyright (C) 2009-2012 the libgit2 contributors
|
|
*
|
|
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
|
* a Linking Exception. For full terms see the included COPYING file.
|
|
*/
|
|
#ifndef INCLUDE_protocol_h__
|
|
#define INCLUDE_protocol_h__
|
|
|
|
#include "transport.h"
|
|
#include "buffer.h"
|
|
#include "pkt.h"
|
|
|
|
int git_protocol_store_refs(git_transport *t, int flushes);
|
|
int git_protocol_detect_caps(git_pkt_ref *pkt, git_transport_caps *caps);
|
|
|
|
#endif
|