Sha256: 6ebd69454d6f9942c531cd7dfb976a2a8f7474e4f12eabbc33f741c0f9632d04

Contents?: true

Size: 1.11 KB

Versions: 20

Compression:

Stored size: 1.11 KB

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * 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_refspec_h__
#define INCLUDE_refspec_h__

#include "common.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__dispose(git_refspec *refspec);

int git_refspec__serialize(git_buf *out, const git_refspec *refspec);

/**
 * Determines if a refspec is a wildcard refspec.
 *
 * @param spec the refspec
 * @return 1 if the refspec is a wildcard, 0 otherwise
 */
int git_refspec_is_wildcard(const git_refspec *spec);

/**
 * DWIM `spec` with `refs` existing on the remote, append the dwim'ed
 * result in `out`.
 */
int git_refspec__dwim_one(git_vector *out, git_refspec *spec, git_vector *refs);

#endif

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rugged-1.3.2.3 vendor/libgit2/src/refspec.h
rugged-1.3.2.1 vendor/libgit2/src/refspec.h
rugged-1.3.2 vendor/libgit2/src/refspec.h
rugged-1.3.1 vendor/libgit2/src/refspec.h
rugged-1.3.0 vendor/libgit2/src/refspec.h
rugged-1.2.0 vendor/libgit2/src/refspec.h
rugged-1.1.1 vendor/libgit2/src/refspec.h
rugged-1.1.0 vendor/libgit2/src/refspec.h
rugged-1.0.1 vendor/libgit2/src/refspec.h
rugged-0.28.5 vendor/libgit2/src/refspec.h
rugged-1.0.0 vendor/libgit2/src/refspec.h
rugged-0.99.0 vendor/libgit2/src/refspec.h
rugged-0.28.4.1 vendor/libgit2/src/refspec.h
rugged-0.28.4 vendor/libgit2/src/refspec.h
rugged-0.27.10 vendor/libgit2/src/refspec.h
rugged-0.28.3.1 vendor/libgit2/src/refspec.h
rugged-0.28.2 vendor/libgit2/src/refspec.h
rugged-0.28.1 vendor/libgit2/src/refspec.h
rugged-0.28.0 vendor/libgit2/src/refspec.h
rugged-0.27.7 vendor/libgit2/src/refspec.h