Sha256: a8709739aac8ad62ec84f6bb20ba647c223d645f0373560e8e12d662859cf8b8

Contents?: true

Size: 1006 Bytes

Versions: 4

Compression:

Stored size: 1006 Bytes

Contents

/*
 * Copyright (C) 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_git_revparse_h__
#define INCLUDE_git_revparse_h__

#include "common.h"
#include "types.h"


/**
 * @file git2/revparse.h
 * @brief Git revision parsing routines
 * @defgroup git_revparse Git revision parsing routines
 * @ingroup Git
 * @{
 */
GIT_BEGIN_DECL

/**
 * Find an object, as specified by a revision string. See `man gitrevisions`, or the documentation
 * for `git rev-parse` for information on the syntax accepted.
 *
 * @param out pointer to output object
 * @param repo the repository to search in
 * @param spec the textual specification for an object
 * @return  on success, GIT_ERROR otherwise (use git_error_last for information about the error)
 */
GIT_EXTERN(int) git_revparse_single(git_object **out, git_repository *repo, const char *spec);

/** @} */
GIT_END_DECL
#endif

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rugged-0.17.0.b7 vendor/libgit2/include/git2/revparse.h
rugged-0.17.0.b6 vendor/libgit2/include/git2/revparse.h
rugged-0.17.0b2 ext/rugged/vendor/libgit2-dist/include/git2/revparse.h
rugged-0.17.0b1 ext/rugged/vendor/libgit2-dist/include/git2/revparse.h