Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/smanonr..../opt/imh-pyth.../include/git2
File: deprecated.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_deprecated_h__
[6] Fix | Delete
#define INCLUDE_git_deprecated_h__
[7] Fix | Delete
[8] Fix | Delete
#include "attr.h"
[9] Fix | Delete
#include "config.h"
[10] Fix | Delete
#include "common.h"
[11] Fix | Delete
#include "blame.h"
[12] Fix | Delete
#include "buffer.h"
[13] Fix | Delete
#include "checkout.h"
[14] Fix | Delete
#include "cherrypick.h"
[15] Fix | Delete
#include "clone.h"
[16] Fix | Delete
#include "describe.h"
[17] Fix | Delete
#include "diff.h"
[18] Fix | Delete
#include "errors.h"
[19] Fix | Delete
#include "index.h"
[20] Fix | Delete
#include "indexer.h"
[21] Fix | Delete
#include "merge.h"
[22] Fix | Delete
#include "object.h"
[23] Fix | Delete
#include "proxy.h"
[24] Fix | Delete
#include "refs.h"
[25] Fix | Delete
#include "rebase.h"
[26] Fix | Delete
#include "remote.h"
[27] Fix | Delete
#include "trace.h"
[28] Fix | Delete
#include "repository.h"
[29] Fix | Delete
#include "revert.h"
[30] Fix | Delete
#include "stash.h"
[31] Fix | Delete
#include "status.h"
[32] Fix | Delete
#include "submodule.h"
[33] Fix | Delete
#include "worktree.h"
[34] Fix | Delete
#include "credential.h"
[35] Fix | Delete
#include "credential_helpers.h"
[36] Fix | Delete
[37] Fix | Delete
/*
[38] Fix | Delete
* Users can avoid deprecated functions by defining `GIT_DEPRECATE_HARD`.
[39] Fix | Delete
*/
[40] Fix | Delete
#ifndef GIT_DEPRECATE_HARD
[41] Fix | Delete
[42] Fix | Delete
/*
[43] Fix | Delete
* The credential structures are now opaque by default, and their
[44] Fix | Delete
* definition has moved into the `sys/credential.h` header; include
[45] Fix | Delete
* them here for backward compatibility.
[46] Fix | Delete
*/
[47] Fix | Delete
#include "sys/credential.h"
[48] Fix | Delete
[49] Fix | Delete
/**
[50] Fix | Delete
* @file git2/deprecated.h
[51] Fix | Delete
* @brief libgit2 deprecated functions and values
[52] Fix | Delete
* @ingroup Git
[53] Fix | Delete
* @{
[54] Fix | Delete
*/
[55] Fix | Delete
GIT_BEGIN_DECL
[56] Fix | Delete
[57] Fix | Delete
/** @name Deprecated Attribute Constants
[58] Fix | Delete
*
[59] Fix | Delete
* These enumeration values are retained for backward compatibility.
[60] Fix | Delete
* The newer versions of these functions should be preferred in all
[61] Fix | Delete
* new code.
[62] Fix | Delete
*
[63] Fix | Delete
* There is no plan to remove these backward compatibility values at
[64] Fix | Delete
* this time.
[65] Fix | Delete
*/
[66] Fix | Delete
/**@{*/
[67] Fix | Delete
[68] Fix | Delete
#define GIT_ATTR_UNSPECIFIED_T GIT_ATTR_VALUE_UNSPECIFIED
[69] Fix | Delete
#define GIT_ATTR_TRUE_T GIT_ATTR_VALUE_TRUE
[70] Fix | Delete
#define GIT_ATTR_FALSE_T GIT_ATTR_VALUE_FALSE
[71] Fix | Delete
#define GIT_ATTR_VALUE_T GIT_ATTR_VALUE_STRING
[72] Fix | Delete
[73] Fix | Delete
#define GIT_ATTR_TRUE(attr) GIT_ATTR_IS_TRUE(attr)
[74] Fix | Delete
#define GIT_ATTR_FALSE(attr) GIT_ATTR_IS_FALSE(attr)
[75] Fix | Delete
#define GIT_ATTR_UNSPECIFIED(attr) GIT_ATTR_IS_UNSPECIFIED(attr)
[76] Fix | Delete
[77] Fix | Delete
typedef git_attr_value_t git_attr_t;
[78] Fix | Delete
[79] Fix | Delete
/**@}*/
[80] Fix | Delete
[81] Fix | Delete
/** @name Deprecated Blob Functions
[82] Fix | Delete
*
[83] Fix | Delete
* These functions are retained for backward compatibility. The newer
[84] Fix | Delete
* versions of these functions should be preferred in all new code.
[85] Fix | Delete
*
[86] Fix | Delete
* There is no plan to remove these backward compatibility values at
[87] Fix | Delete
* this time.
[88] Fix | Delete
*/
[89] Fix | Delete
/**@{*/
[90] Fix | Delete
[91] Fix | Delete
GIT_EXTERN(int) git_blob_create_fromworkdir(git_oid *id, git_repository *repo, const char *relative_path);
[92] Fix | Delete
GIT_EXTERN(int) git_blob_create_fromdisk(git_oid *id, git_repository *repo, const char *path);
[93] Fix | Delete
GIT_EXTERN(int) git_blob_create_fromstream(
[94] Fix | Delete
git_writestream **out,
[95] Fix | Delete
git_repository *repo,
[96] Fix | Delete
const char *hintpath);
[97] Fix | Delete
GIT_EXTERN(int) git_blob_create_fromstream_commit(
[98] Fix | Delete
git_oid *out,
[99] Fix | Delete
git_writestream *stream);
[100] Fix | Delete
GIT_EXTERN(int) git_blob_create_frombuffer(
[101] Fix | Delete
git_oid *id, git_repository *repo, const void *buffer, size_t len);
[102] Fix | Delete
[103] Fix | Delete
/** Deprecated in favor of `git_blob_filter`.
[104] Fix | Delete
*
[105] Fix | Delete
* @deprecated Use git_blob_filter
[106] Fix | Delete
* @see git_blob_filter
[107] Fix | Delete
*/
[108] Fix | Delete
GIT_EXTERN(int) git_blob_filtered_content(
[109] Fix | Delete
git_buf *out,
[110] Fix | Delete
git_blob *blob,
[111] Fix | Delete
const char *as_path,
[112] Fix | Delete
int check_for_binary_data);
[113] Fix | Delete
[114] Fix | Delete
/**@}*/
[115] Fix | Delete
[116] Fix | Delete
/** @name Deprecated Buffer Functions
[117] Fix | Delete
*
[118] Fix | Delete
* These functions and enumeration values are retained for backward
[119] Fix | Delete
* compatibility. The newer versions of these functions should be
[120] Fix | Delete
* preferred in all new code.
[121] Fix | Delete
*
[122] Fix | Delete
* There is no plan to remove these backward compatibility values at
[123] Fix | Delete
* this time.
[124] Fix | Delete
*/
[125] Fix | Delete
/**@{*/
[126] Fix | Delete
[127] Fix | Delete
/**
[128] Fix | Delete
* Free the memory referred to by the git_buf. This is an alias of
[129] Fix | Delete
* `git_buf_dispose` and is preserved for backward compatibility.
[130] Fix | Delete
*
[131] Fix | Delete
* This function is deprecated, but there is no plan to remove this
[132] Fix | Delete
* function at this time.
[133] Fix | Delete
*
[134] Fix | Delete
* @deprecated Use git_buf_dispose
[135] Fix | Delete
* @see git_buf_dispose
[136] Fix | Delete
*/
[137] Fix | Delete
GIT_EXTERN(void) git_buf_free(git_buf *buffer);
[138] Fix | Delete
[139] Fix | Delete
/**@}*/
[140] Fix | Delete
[141] Fix | Delete
/** @name Deprecated Config Functions and Constants
[142] Fix | Delete
*/
[143] Fix | Delete
/**@{*/
[144] Fix | Delete
[145] Fix | Delete
#define GIT_CVAR_FALSE GIT_CONFIGMAP_FALSE
[146] Fix | Delete
#define GIT_CVAR_TRUE GIT_CONFIGMAP_TRUE
[147] Fix | Delete
#define GIT_CVAR_INT32 GIT_CONFIGMAP_INT32
[148] Fix | Delete
#define GIT_CVAR_STRING GIT_CONFIGMAP_STRING
[149] Fix | Delete
[150] Fix | Delete
typedef git_configmap git_cvar_map;
[151] Fix | Delete
[152] Fix | Delete
/**@}*/
[153] Fix | Delete
[154] Fix | Delete
/** @name Deprecated Error Functions and Constants
[155] Fix | Delete
*
[156] Fix | Delete
* These functions and enumeration values are retained for backward
[157] Fix | Delete
* compatibility. The newer versions of these functions and values
[158] Fix | Delete
* should be preferred in all new code.
[159] Fix | Delete
*
[160] Fix | Delete
* There is no plan to remove these backward compatibility values at
[161] Fix | Delete
* this time.
[162] Fix | Delete
*/
[163] Fix | Delete
/**@{*/
[164] Fix | Delete
[165] Fix | Delete
#define GITERR_NONE GIT_ERROR_NONE
[166] Fix | Delete
#define GITERR_NOMEMORY GIT_ERROR_NOMEMORY
[167] Fix | Delete
#define GITERR_OS GIT_ERROR_OS
[168] Fix | Delete
#define GITERR_INVALID GIT_ERROR_INVALID
[169] Fix | Delete
#define GITERR_REFERENCE GIT_ERROR_REFERENCE
[170] Fix | Delete
#define GITERR_ZLIB GIT_ERROR_ZLIB
[171] Fix | Delete
#define GITERR_REPOSITORY GIT_ERROR_REPOSITORY
[172] Fix | Delete
#define GITERR_CONFIG GIT_ERROR_CONFIG
[173] Fix | Delete
#define GITERR_REGEX GIT_ERROR_REGEX
[174] Fix | Delete
#define GITERR_ODB GIT_ERROR_ODB
[175] Fix | Delete
#define GITERR_INDEX GIT_ERROR_INDEX
[176] Fix | Delete
#define GITERR_OBJECT GIT_ERROR_OBJECT
[177] Fix | Delete
#define GITERR_NET GIT_ERROR_NET
[178] Fix | Delete
#define GITERR_TAG GIT_ERROR_TAG
[179] Fix | Delete
#define GITERR_TREE GIT_ERROR_TREE
[180] Fix | Delete
#define GITERR_INDEXER GIT_ERROR_INDEXER
[181] Fix | Delete
#define GITERR_SSL GIT_ERROR_SSL
[182] Fix | Delete
#define GITERR_SUBMODULE GIT_ERROR_SUBMODULE
[183] Fix | Delete
#define GITERR_THREAD GIT_ERROR_THREAD
[184] Fix | Delete
#define GITERR_STASH GIT_ERROR_STASH
[185] Fix | Delete
#define GITERR_CHECKOUT GIT_ERROR_CHECKOUT
[186] Fix | Delete
#define GITERR_FETCHHEAD GIT_ERROR_FETCHHEAD
[187] Fix | Delete
#define GITERR_MERGE GIT_ERROR_MERGE
[188] Fix | Delete
#define GITERR_SSH GIT_ERROR_SSH
[189] Fix | Delete
#define GITERR_FILTER GIT_ERROR_FILTER
[190] Fix | Delete
#define GITERR_REVERT GIT_ERROR_REVERT
[191] Fix | Delete
#define GITERR_CALLBACK GIT_ERROR_CALLBACK
[192] Fix | Delete
#define GITERR_CHERRYPICK GIT_ERROR_CHERRYPICK
[193] Fix | Delete
#define GITERR_DESCRIBE GIT_ERROR_DESCRIBE
[194] Fix | Delete
#define GITERR_REBASE GIT_ERROR_REBASE
[195] Fix | Delete
#define GITERR_FILESYSTEM GIT_ERROR_FILESYSTEM
[196] Fix | Delete
#define GITERR_PATCH GIT_ERROR_PATCH
[197] Fix | Delete
#define GITERR_WORKTREE GIT_ERROR_WORKTREE
[198] Fix | Delete
#define GITERR_SHA1 GIT_ERROR_SHA1
[199] Fix | Delete
[200] Fix | Delete
/**
[201] Fix | Delete
* Return the last `git_error` object that was generated for the
[202] Fix | Delete
* current thread. This is an alias of `git_error_last` and is
[203] Fix | Delete
* preserved for backward compatibility.
[204] Fix | Delete
*
[205] Fix | Delete
* This function is deprecated, but there is no plan to remove this
[206] Fix | Delete
* function at this time.
[207] Fix | Delete
*
[208] Fix | Delete
* @deprecated Use git_error_last
[209] Fix | Delete
* @see git_error_last
[210] Fix | Delete
*/
[211] Fix | Delete
GIT_EXTERN(const git_error *) giterr_last(void);
[212] Fix | Delete
[213] Fix | Delete
/**
[214] Fix | Delete
* Clear the last error. This is an alias of `git_error_last` and is
[215] Fix | Delete
* preserved for backward compatibility.
[216] Fix | Delete
*
[217] Fix | Delete
* This function is deprecated, but there is no plan to remove this
[218] Fix | Delete
* function at this time.
[219] Fix | Delete
*
[220] Fix | Delete
* @deprecated Use git_error_clear
[221] Fix | Delete
* @see git_error_clear
[222] Fix | Delete
*/
[223] Fix | Delete
GIT_EXTERN(void) giterr_clear(void);
[224] Fix | Delete
[225] Fix | Delete
/**
[226] Fix | Delete
* Sets the error message to the given string. This is an alias of
[227] Fix | Delete
* `git_error_set_str` and is preserved for backward compatibility.
[228] Fix | Delete
*
[229] Fix | Delete
* This function is deprecated, but there is no plan to remove this
[230] Fix | Delete
* function at this time.
[231] Fix | Delete
*
[232] Fix | Delete
* @deprecated Use git_error_set_str
[233] Fix | Delete
* @see git_error_set_str
[234] Fix | Delete
*/
[235] Fix | Delete
GIT_EXTERN(void) giterr_set_str(int error_class, const char *string);
[236] Fix | Delete
[237] Fix | Delete
/**
[238] Fix | Delete
* Indicates that an out-of-memory situation occurred. This is an alias
[239] Fix | Delete
* of `git_error_set_oom` and is preserved for backward compatibility.
[240] Fix | Delete
*
[241] Fix | Delete
* This function is deprecated, but there is no plan to remove this
[242] Fix | Delete
* function at this time.
[243] Fix | Delete
*
[244] Fix | Delete
* @deprecated Use git_error_set_oom
[245] Fix | Delete
* @see git_error_set_oom
[246] Fix | Delete
*/
[247] Fix | Delete
GIT_EXTERN(void) giterr_set_oom(void);
[248] Fix | Delete
[249] Fix | Delete
/**@}*/
[250] Fix | Delete
[251] Fix | Delete
/** @name Deprecated Index Functions and Constants
[252] Fix | Delete
*
[253] Fix | Delete
* These functions and enumeration values are retained for backward
[254] Fix | Delete
* compatibility. The newer versions of these values should be
[255] Fix | Delete
* preferred in all new code.
[256] Fix | Delete
*
[257] Fix | Delete
* There is no plan to remove these backward compatibility values at
[258] Fix | Delete
* this time.
[259] Fix | Delete
*/
[260] Fix | Delete
/**@{*/
[261] Fix | Delete
[262] Fix | Delete
#define GIT_IDXENTRY_NAMEMASK GIT_INDEX_ENTRY_NAMEMASK
[263] Fix | Delete
#define GIT_IDXENTRY_STAGEMASK GIT_INDEX_ENTRY_STAGEMASK
[264] Fix | Delete
#define GIT_IDXENTRY_STAGESHIFT GIT_INDEX_ENTRY_STAGESHIFT
[265] Fix | Delete
[266] Fix | Delete
/* The git_indxentry_flag_t enum */
[267] Fix | Delete
#define GIT_IDXENTRY_EXTENDED GIT_INDEX_ENTRY_EXTENDED
[268] Fix | Delete
#define GIT_IDXENTRY_VALID GIT_INDEX_ENTRY_VALID
[269] Fix | Delete
[270] Fix | Delete
#define GIT_IDXENTRY_STAGE(E) GIT_INDEX_ENTRY_STAGE(E)
[271] Fix | Delete
#define GIT_IDXENTRY_STAGE_SET(E,S) GIT_INDEX_ENTRY_STAGE_SET(E,S)
[272] Fix | Delete
[273] Fix | Delete
/* The git_idxentry_extended_flag_t enum */
[274] Fix | Delete
#define GIT_IDXENTRY_INTENT_TO_ADD GIT_INDEX_ENTRY_INTENT_TO_ADD
[275] Fix | Delete
#define GIT_IDXENTRY_SKIP_WORKTREE GIT_INDEX_ENTRY_SKIP_WORKTREE
[276] Fix | Delete
#define GIT_IDXENTRY_EXTENDED_FLAGS (GIT_INDEX_ENTRY_INTENT_TO_ADD | GIT_INDEX_ENTRY_SKIP_WORKTREE)
[277] Fix | Delete
#define GIT_IDXENTRY_EXTENDED2 (1 << 15)
[278] Fix | Delete
#define GIT_IDXENTRY_UPDATE (1 << 0)
[279] Fix | Delete
#define GIT_IDXENTRY_REMOVE (1 << 1)
[280] Fix | Delete
#define GIT_IDXENTRY_UPTODATE (1 << 2)
[281] Fix | Delete
#define GIT_IDXENTRY_ADDED (1 << 3)
[282] Fix | Delete
#define GIT_IDXENTRY_HASHED (1 << 4)
[283] Fix | Delete
#define GIT_IDXENTRY_UNHASHED (1 << 5)
[284] Fix | Delete
#define GIT_IDXENTRY_WT_REMOVE (1 << 6)
[285] Fix | Delete
#define GIT_IDXENTRY_CONFLICTED (1 << 7)
[286] Fix | Delete
#define GIT_IDXENTRY_UNPACKED (1 << 8)
[287] Fix | Delete
#define GIT_IDXENTRY_NEW_SKIP_WORKTREE (1 << 9)
[288] Fix | Delete
[289] Fix | Delete
/* The git_index_capability_t enum */
[290] Fix | Delete
#define GIT_INDEXCAP_IGNORE_CASE GIT_INDEX_CAPABILITY_IGNORE_CASE
[291] Fix | Delete
#define GIT_INDEXCAP_NO_FILEMODE GIT_INDEX_CAPABILITY_NO_FILEMODE
[292] Fix | Delete
#define GIT_INDEXCAP_NO_SYMLINKS GIT_INDEX_CAPABILITY_NO_SYMLINKS
[293] Fix | Delete
#define GIT_INDEXCAP_FROM_OWNER GIT_INDEX_CAPABILITY_FROM_OWNER
[294] Fix | Delete
[295] Fix | Delete
GIT_EXTERN(int) git_index_add_frombuffer(
[296] Fix | Delete
git_index *index,
[297] Fix | Delete
const git_index_entry *entry,
[298] Fix | Delete
const void *buffer, size_t len);
[299] Fix | Delete
[300] Fix | Delete
/**@}*/
[301] Fix | Delete
[302] Fix | Delete
/** @name Deprecated Object Constants
[303] Fix | Delete
*
[304] Fix | Delete
* These enumeration values are retained for backward compatibility. The
[305] Fix | Delete
* newer versions of these values should be preferred in all new code.
[306] Fix | Delete
*
[307] Fix | Delete
* There is no plan to remove these backward compatibility values at
[308] Fix | Delete
* this time.
[309] Fix | Delete
*/
[310] Fix | Delete
/**@{*/
[311] Fix | Delete
[312] Fix | Delete
#define git_otype git_object_t
[313] Fix | Delete
[314] Fix | Delete
#define GIT_OBJ_ANY GIT_OBJECT_ANY
[315] Fix | Delete
#define GIT_OBJ_BAD GIT_OBJECT_INVALID
[316] Fix | Delete
#define GIT_OBJ__EXT1 0
[317] Fix | Delete
#define GIT_OBJ_COMMIT GIT_OBJECT_COMMIT
[318] Fix | Delete
#define GIT_OBJ_TREE GIT_OBJECT_TREE
[319] Fix | Delete
#define GIT_OBJ_BLOB GIT_OBJECT_BLOB
[320] Fix | Delete
#define GIT_OBJ_TAG GIT_OBJECT_TAG
[321] Fix | Delete
#define GIT_OBJ__EXT2 5
[322] Fix | Delete
#define GIT_OBJ_OFS_DELTA GIT_OBJECT_OFS_DELTA
[323] Fix | Delete
#define GIT_OBJ_REF_DELTA GIT_OBJECT_REF_DELTA
[324] Fix | Delete
[325] Fix | Delete
/**
[326] Fix | Delete
* Get the size in bytes for the structure which
[327] Fix | Delete
* acts as an in-memory representation of any given
[328] Fix | Delete
* object type.
[329] Fix | Delete
*
[330] Fix | Delete
* For all the core types, this would the equivalent
[331] Fix | Delete
* of calling `sizeof(git_commit)` if the core types
[332] Fix | Delete
* were not opaque on the external API.
[333] Fix | Delete
*
[334] Fix | Delete
* @param type object type to get its size
[335] Fix | Delete
* @return size in bytes of the object
[336] Fix | Delete
*/
[337] Fix | Delete
GIT_EXTERN(size_t) git_object__size(git_object_t type);
[338] Fix | Delete
[339] Fix | Delete
/**@}*/
[340] Fix | Delete
[341] Fix | Delete
/** @name Deprecated Reference Constants
[342] Fix | Delete
*
[343] Fix | Delete
* These enumeration values are retained for backward compatibility. The
[344] Fix | Delete
* newer versions of these values should be preferred in all new code.
[345] Fix | Delete
*
[346] Fix | Delete
* There is no plan to remove these backward compatibility values at
[347] Fix | Delete
* this time.
[348] Fix | Delete
*/
[349] Fix | Delete
/**@{*/
[350] Fix | Delete
[351] Fix | Delete
/** Basic type of any Git reference. */
[352] Fix | Delete
#define git_ref_t git_reference_t
[353] Fix | Delete
#define git_reference_normalize_t git_reference_format_t
[354] Fix | Delete
[355] Fix | Delete
#define GIT_REF_INVALID GIT_REFERENCE_INVALID
[356] Fix | Delete
#define GIT_REF_OID GIT_REFERENCE_DIRECT
[357] Fix | Delete
#define GIT_REF_SYMBOLIC GIT_REFERENCE_SYMBOLIC
[358] Fix | Delete
#define GIT_REF_LISTALL GIT_REFERENCE_ALL
[359] Fix | Delete
[360] Fix | Delete
#define GIT_REF_FORMAT_NORMAL GIT_REFERENCE_FORMAT_NORMAL
[361] Fix | Delete
#define GIT_REF_FORMAT_ALLOW_ONELEVEL GIT_REFERENCE_FORMAT_ALLOW_ONELEVEL
[362] Fix | Delete
#define GIT_REF_FORMAT_REFSPEC_PATTERN GIT_REFERENCE_FORMAT_REFSPEC_PATTERN
[363] Fix | Delete
#define GIT_REF_FORMAT_REFSPEC_SHORTHAND GIT_REFERENCE_FORMAT_REFSPEC_SHORTHAND
[364] Fix | Delete
[365] Fix | Delete
GIT_EXTERN(int) git_tag_create_frombuffer(
[366] Fix | Delete
git_oid *oid,
[367] Fix | Delete
git_repository *repo,
[368] Fix | Delete
const char *buffer,
[369] Fix | Delete
int force);
[370] Fix | Delete
[371] Fix | Delete
/**@}*/
[372] Fix | Delete
[373] Fix | Delete
/** @name Deprecated Credential Types
[374] Fix | Delete
*
[375] Fix | Delete
* These types are retained for backward compatibility. The newer
[376] Fix | Delete
* versions of these values should be preferred in all new code.
[377] Fix | Delete
*
[378] Fix | Delete
* There is no plan to remove these backward compatibility values at
[379] Fix | Delete
* this time.
[380] Fix | Delete
*/
[381] Fix | Delete
[382] Fix | Delete
typedef git_credential git_cred;
[383] Fix | Delete
typedef git_credential_userpass_plaintext git_cred_userpass_plaintext;
[384] Fix | Delete
typedef git_credential_username git_cred_username;
[385] Fix | Delete
typedef git_credential_default git_cred_default;
[386] Fix | Delete
typedef git_credential_ssh_key git_cred_ssh_key;
[387] Fix | Delete
typedef git_credential_ssh_interactive git_cred_ssh_interactive;
[388] Fix | Delete
typedef git_credential_ssh_custom git_cred_ssh_custom;
[389] Fix | Delete
[390] Fix | Delete
typedef git_credential_acquire_cb git_cred_acquire_cb;
[391] Fix | Delete
typedef git_credential_sign_cb git_cred_sign_callback;
[392] Fix | Delete
typedef git_credential_sign_cb git_cred_sign_cb;
[393] Fix | Delete
typedef git_credential_ssh_interactive_cb git_cred_ssh_interactive_callback;
[394] Fix | Delete
typedef git_credential_ssh_interactive_cb git_cred_ssh_interactive_cb;
[395] Fix | Delete
[396] Fix | Delete
#define git_credtype_t git_credential_t
[397] Fix | Delete
[398] Fix | Delete
#define GIT_CREDTYPE_USERPASS_PLAINTEXT GIT_CREDENTIAL_USERPASS_PLAINTEXT
[399] Fix | Delete
#define GIT_CREDTYPE_SSH_KEY GIT_CREDENTIAL_SSH_KEY
[400] Fix | Delete
#define GIT_CREDTYPE_SSH_CUSTOM GIT_CREDENTIAL_SSH_CUSTOM
[401] Fix | Delete
#define GIT_CREDTYPE_DEFAULT GIT_CREDENTIAL_DEFAULT
[402] Fix | Delete
#define GIT_CREDTYPE_SSH_INTERACTIVE GIT_CREDENTIAL_SSH_INTERACTIVE
[403] Fix | Delete
#define GIT_CREDTYPE_USERNAME GIT_CREDENTIAL_USERNAME
[404] Fix | Delete
#define GIT_CREDTYPE_SSH_MEMORY GIT_CREDENTIAL_SSH_MEMORY
[405] Fix | Delete
[406] Fix | Delete
GIT_EXTERN(void) git_cred_free(git_credential *cred);
[407] Fix | Delete
GIT_EXTERN(int) git_cred_has_username(git_credential *cred);
[408] Fix | Delete
GIT_EXTERN(const char *) git_cred_get_username(git_credential *cred);
[409] Fix | Delete
GIT_EXTERN(int) git_cred_userpass_plaintext_new(
[410] Fix | Delete
git_credential **out,
[411] Fix | Delete
const char *username,
[412] Fix | Delete
const char *password);
[413] Fix | Delete
GIT_EXTERN(int) git_cred_default_new(git_credential **out);
[414] Fix | Delete
GIT_EXTERN(int) git_cred_username_new(git_credential **out, const char *username);
[415] Fix | Delete
GIT_EXTERN(int) git_cred_ssh_key_new(
[416] Fix | Delete
git_credential **out,
[417] Fix | Delete
const char *username,
[418] Fix | Delete
const char *publickey,
[419] Fix | Delete
const char *privatekey,
[420] Fix | Delete
const char *passphrase);
[421] Fix | Delete
GIT_EXTERN(int) git_cred_ssh_key_memory_new(
[422] Fix | Delete
git_credential **out,
[423] Fix | Delete
const char *username,
[424] Fix | Delete
const char *publickey,
[425] Fix | Delete
const char *privatekey,
[426] Fix | Delete
const char *passphrase);
[427] Fix | Delete
GIT_EXTERN(int) git_cred_ssh_interactive_new(
[428] Fix | Delete
git_credential **out,
[429] Fix | Delete
const char *username,
[430] Fix | Delete
git_credential_ssh_interactive_cb prompt_callback,
[431] Fix | Delete
void *payload);
[432] Fix | Delete
GIT_EXTERN(int) git_cred_ssh_key_from_agent(
[433] Fix | Delete
git_credential **out,
[434] Fix | Delete
const char *username);
[435] Fix | Delete
GIT_EXTERN(int) git_cred_ssh_custom_new(
[436] Fix | Delete
git_credential **out,
[437] Fix | Delete
const char *username,
[438] Fix | Delete
const char *publickey,
[439] Fix | Delete
size_t publickey_len,
[440] Fix | Delete
git_credential_sign_cb sign_callback,
[441] Fix | Delete
void *payload);
[442] Fix | Delete
[443] Fix | Delete
/* Deprecated Credential Helper Types */
[444] Fix | Delete
[445] Fix | Delete
typedef git_credential_userpass_payload git_cred_userpass_payload;
[446] Fix | Delete
[447] Fix | Delete
GIT_EXTERN(int) git_cred_userpass(
[448] Fix | Delete
git_credential **out,
[449] Fix | Delete
const char *url,
[450] Fix | Delete
const char *user_from_url,
[451] Fix | Delete
unsigned int allowed_types,
[452] Fix | Delete
void *payload);
[453] Fix | Delete
[454] Fix | Delete
/**@}*/
[455] Fix | Delete
[456] Fix | Delete
/** @name Deprecated Trace Callback Types
[457] Fix | Delete
*
[458] Fix | Delete
* These types are retained for backward compatibility. The newer
[459] Fix | Delete
* versions of these values should be preferred in all new code.
[460] Fix | Delete
*
[461] Fix | Delete
* There is no plan to remove these backward compatibility values at
[462] Fix | Delete
* this time.
[463] Fix | Delete
*/
[464] Fix | Delete
/**@{*/
[465] Fix | Delete
[466] Fix | Delete
typedef git_trace_cb git_trace_callback;
[467] Fix | Delete
[468] Fix | Delete
/**@}*/
[469] Fix | Delete
[470] Fix | Delete
/** @name Deprecated Object ID Types
[471] Fix | Delete
*
[472] Fix | Delete
* These types are retained for backward compatibility. The newer
[473] Fix | Delete
* versions of these values should be preferred in all new code.
[474] Fix | Delete
*
[475] Fix | Delete
* There is no plan to remove these backward compatibility values at
[476] Fix | Delete
* this time.
[477] Fix | Delete
*/
[478] Fix | Delete
/**@{*/
[479] Fix | Delete
[480] Fix | Delete
GIT_EXTERN(int) git_oid_iszero(const git_oid *id);
[481] Fix | Delete
[482] Fix | Delete
/**@}*/
[483] Fix | Delete
[484] Fix | Delete
/** @name Deprecated Transfer Progress Types
[485] Fix | Delete
*
[486] Fix | Delete
* These types are retained for backward compatibility. The newer
[487] Fix | Delete
* versions of these values should be preferred in all new code.
[488] Fix | Delete
*
[489] Fix | Delete
* There is no plan to remove these backward compatibility values at
[490] Fix | Delete
* this time.
[491] Fix | Delete
*/
[492] Fix | Delete
/**@{*/
[493] Fix | Delete
[494] Fix | Delete
/**
[495] Fix | Delete
* This structure is used to provide callers information about the
[496] Fix | Delete
* progress of indexing a packfile.
[497] Fix | Delete
*
[498] Fix | Delete
* This type is deprecated, but there is no plan to remove this
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function