Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/smanonr..../opt/imh-pyth.../include/git2
File: refspec.h
/*
[0] Fix | Delete
* Copyright (C) the libgit2 contributors. All rights reserved.
[1] Fix | Delete
*
[2] Fix | Delete
* This file is part of libgit2, distributed under the GNU GPL v2 with
[3] Fix | Delete
* a Linking Exception. For full terms see the included COPYING file.
[4] Fix | Delete
*/
[5] Fix | Delete
#ifndef INCLUDE_git_refspec_h__
[6] Fix | Delete
#define INCLUDE_git_refspec_h__
[7] Fix | Delete
[8] Fix | Delete
#include "common.h"
[9] Fix | Delete
#include "types.h"
[10] Fix | Delete
#include "net.h"
[11] Fix | Delete
#include "buffer.h"
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* @file git2/refspec.h
[15] Fix | Delete
* @brief Git refspec attributes
[16] Fix | Delete
* @defgroup git_refspec Git refspec attributes
[17] Fix | Delete
* @ingroup Git
[18] Fix | Delete
* @{
[19] Fix | Delete
*/
[20] Fix | Delete
GIT_BEGIN_DECL
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* Parse a given refspec string
[24] Fix | Delete
*
[25] Fix | Delete
* @param refspec a pointer to hold the refspec handle
[26] Fix | Delete
* @param input the refspec string
[27] Fix | Delete
* @param is_fetch is this a refspec for a fetch
[28] Fix | Delete
* @return 0 if the refspec string could be parsed, -1 otherwise
[29] Fix | Delete
*/
[30] Fix | Delete
GIT_EXTERN(int) git_refspec_parse(git_refspec **refspec, const char *input, int is_fetch);
[31] Fix | Delete
[32] Fix | Delete
/**
[33] Fix | Delete
* Free a refspec object which has been created by git_refspec_parse
[34] Fix | Delete
*
[35] Fix | Delete
* @param refspec the refspec object
[36] Fix | Delete
*/
[37] Fix | Delete
GIT_EXTERN(void) git_refspec_free(git_refspec *refspec);
[38] Fix | Delete
[39] Fix | Delete
/**
[40] Fix | Delete
* Get the source specifier
[41] Fix | Delete
*
[42] Fix | Delete
* @param refspec the refspec
[43] Fix | Delete
* @return the refspec's source specifier
[44] Fix | Delete
*/
[45] Fix | Delete
GIT_EXTERN(const char *) git_refspec_src(const git_refspec *refspec);
[46] Fix | Delete
[47] Fix | Delete
/**
[48] Fix | Delete
* Get the destination specifier
[49] Fix | Delete
*
[50] Fix | Delete
* @param refspec the refspec
[51] Fix | Delete
* @return the refspec's destination specifier
[52] Fix | Delete
*/
[53] Fix | Delete
GIT_EXTERN(const char *) git_refspec_dst(const git_refspec *refspec);
[54] Fix | Delete
[55] Fix | Delete
/**
[56] Fix | Delete
* Get the refspec's string
[57] Fix | Delete
*
[58] Fix | Delete
* @param refspec the refspec
[59] Fix | Delete
* @returns the refspec's original string
[60] Fix | Delete
*/
[61] Fix | Delete
GIT_EXTERN(const char *) git_refspec_string(const git_refspec *refspec);
[62] Fix | Delete
[63] Fix | Delete
/**
[64] Fix | Delete
* Get the force update setting
[65] Fix | Delete
*
[66] Fix | Delete
* @param refspec the refspec
[67] Fix | Delete
* @return 1 if force update has been set, 0 otherwise
[68] Fix | Delete
*/
[69] Fix | Delete
GIT_EXTERN(int) git_refspec_force(const git_refspec *refspec);
[70] Fix | Delete
[71] Fix | Delete
/**
[72] Fix | Delete
* Get the refspec's direction.
[73] Fix | Delete
*
[74] Fix | Delete
* @param spec refspec
[75] Fix | Delete
* @return GIT_DIRECTION_FETCH or GIT_DIRECTION_PUSH
[76] Fix | Delete
*/
[77] Fix | Delete
GIT_EXTERN(git_direction) git_refspec_direction(const git_refspec *spec);
[78] Fix | Delete
[79] Fix | Delete
/**
[80] Fix | Delete
* Check if a refspec's source descriptor matches a reference
[81] Fix | Delete
*
[82] Fix | Delete
* @param refspec the refspec
[83] Fix | Delete
* @param refname the name of the reference to check
[84] Fix | Delete
* @return 1 if the refspec matches, 0 otherwise
[85] Fix | Delete
*/
[86] Fix | Delete
GIT_EXTERN(int) git_refspec_src_matches(const git_refspec *refspec, const char *refname);
[87] Fix | Delete
[88] Fix | Delete
/**
[89] Fix | Delete
* Check if a refspec's destination descriptor matches a reference
[90] Fix | Delete
*
[91] Fix | Delete
* @param refspec the refspec
[92] Fix | Delete
* @param refname the name of the reference to check
[93] Fix | Delete
* @return 1 if the refspec matches, 0 otherwise
[94] Fix | Delete
*/
[95] Fix | Delete
GIT_EXTERN(int) git_refspec_dst_matches(const git_refspec *refspec, const char *refname);
[96] Fix | Delete
[97] Fix | Delete
/**
[98] Fix | Delete
* Transform a reference to its target following the refspec's rules
[99] Fix | Delete
*
[100] Fix | Delete
* @param out where to store the target name
[101] Fix | Delete
* @param spec the refspec
[102] Fix | Delete
* @param name the name of the reference to transform
[103] Fix | Delete
* @return 0, GIT_EBUFS or another error
[104] Fix | Delete
*/
[105] Fix | Delete
GIT_EXTERN(int) git_refspec_transform(git_buf *out, const git_refspec *spec, const char *name);
[106] Fix | Delete
[107] Fix | Delete
/**
[108] Fix | Delete
* Transform a target reference to its source reference following the refspec's rules
[109] Fix | Delete
*
[110] Fix | Delete
* @param out where to store the source reference name
[111] Fix | Delete
* @param spec the refspec
[112] Fix | Delete
* @param name the name of the reference to transform
[113] Fix | Delete
* @return 0, GIT_EBUFS or another error
[114] Fix | Delete
*/
[115] Fix | Delete
GIT_EXTERN(int) git_refspec_rtransform(git_buf *out, const git_refspec *spec, const char *name);
[116] Fix | Delete
[117] Fix | Delete
GIT_END_DECL
[118] Fix | Delete
[119] Fix | Delete
#endif
[120] Fix | Delete
[121] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function