]>
git.proxmox.com Git - libgit2.git/blob - src/refspec.h
2 * Copyright (C) the libgit2 contributors. All rights reserved.
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
7 #ifndef INCLUDE_refspec_h__
8 #define INCLUDE_refspec_h__
10 #include "git2/refspec.h"
18 unsigned int force
:1,
24 #define GIT_REFSPEC_TAGS "refs/tags/*:refs/tags/*"
26 int git_refspec__parse(
27 struct git_refspec
*refspec
,
31 void git_refspec__free(git_refspec
*refspec
);
33 int git_refspec__serialize(git_buf
*out
, const git_refspec
*refspec
);
36 * Determines if a refspec is a wildcard refspec.
38 * @param spec the refspec
39 * @return 1 if the refspec is a wildcard, 0 otherwise
41 int git_refspec_is_wildcard(const git_refspec
*spec
);
44 * DWIM `spec` with `refs` existing on the remote, append the dwim'ed
47 int git_refspec__dwim_one(git_vector
*out
, git_refspec
*spec
, git_vector
*refs
);