#ifndef INCLUDE_refspec_h__
#define INCLUDE_refspec_h__
#include "git2/refspec.h"
#include "buffer.h"
#include "vector.h"
struct git_refspec {
char *string;
char *src;
char *dst;
unsigned int force :1,
push : 1,
pattern :1,
matching :1;
};
#define GIT_REFSPEC_TAGS "refs/tags/*:refs/tags/*"
int git_refspec__parse(
struct git_refspec *refspec,
const char *str,
bool is_fetch);
void git_refspec__free(git_refspec *refspec);
int git_refspec__serialize(git_buf *out, const git_refspec *refspec);
int git_refspec_is_wildcard(const git_refspec *spec);
int git_refspec__dwim_one(git_vector *out, git_refspec *spec, git_vector *refs);
#endif