Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/git2go
/ functions
Functions
945 in github.com/libgit2/git2go
⨍
Functions
945
◇
Types & classes
221
↓ 500 callers
Function
checkFatal
(t *testing.T, err error)
index_test.go:271
↓ 322 callers
Function
MakeGitError
(c C.int)
git.go:319
↓ 206 callers
Method
free
free releases the resources of the Remote.
remote.go:612
↓ 101 callers
Method
Free
Free releases the resources of the SmartSubtransport.
transport.go:196
↓ 94 callers
Function
cleanupTestRepo
(t *testing.T, r *Repository)
git_test.go:49
↓ 91 callers
Function
createTestRepo
(t *testing.T)
git_test.go:61
↓ 77 callers
Method
toC
()
git.go:215
↓ 60 callers
Method
String
()
git.go:239
↓ 60 callers
Function
seedTestRepo
(t *testing.T, repo *Repository)
git_test.go:91
↓ 38 callers
Method
LookupCommit
(id *Oid)
repository.go:262
↓ 37 callers
Method
Get
Get retrieves the pointer from the given handle
handles.go:58
↓ 33 callers
Function
newOidFromC
(coid *C.git_oid)
git.go:199
↓ 30 callers
Method
Error
()
git.go:295
↓ 26 callers
Method
Create
(name string, obj Objecter, tagger *Signature, message string)
tag.go:72
↓ 26 callers
Method
LookupTree
(id *Oid)
repository.go:241
↓ 25 callers
Method
Untrack
Untrack stops tracking the pointer given by the handle
handles.go:40
↓ 25 callers
Function
cbool
(b bool)
git.go:342
↓ 23 callers
Function
setCallbackError
(errorMessage **C.char, err error)
git.go:356
↓ 22 callers
Method
Id
Id returns the note object's id
note.go:172
↓ 22 callers
Method
Track
Track adds the given pointer to the list of pointers to track and returns a pointer value which can be passed to C as an opaque pointer.
handles.go:29
↓ 20 callers
Function
compareStrings
(t *testing.T, expected, value string)
tag_test.go:173
↓ 18 callers
Method
Write
(data []byte, otype ObjectType)
odb.go:139
↓ 17 callers
Method
Lookup
(id *Oid)
repository.go:232
↓ 17 callers
Function
set_callback_error
* Sets the thread-local error to the provided string. This needs to happen in * C because Go might change Goroutines _just_ before returning, which w
wrapper.c:103
↓ 16 callers
Function
newReferenceFromC
(ptr *C.git_reference, repo *Repository)
reference.go:157
↓ 15 callers
Method
Index
()
repository.go:188
↓ 15 callers
Function
updateReadme
(t *testing.T, repo *Repository, content string)
git_test.go:148
↓ 14 callers
Method
Close
Close closes the SmartSubtransport. Subtransports are guaranteed a call to Close between calls to Action, except for the following two "natural" prog
transport.go:193
↓ 14 callers
Function
IsErrorCode
(err error, c ErrorCode)
git.go:309
↓ 13 callers
Function
freeStrarray
(arr *C.git_strarray)
remote.go:909
↓ 13 callers
Function
pathInRepo
(repo *Repository, name string)
git_test.go:144
↓ 12 callers
Method
Type
()
object.go:75
↓ 12 callers
Function
makeCStringsFromStrings
(s []string)
remote.go:898
↓ 12 callers
Function
newSignatureFromC
(sig *C.git_signature)
signature.go:19
↓ 11 callers
Method
Odb
()
repository.go:665
↓ 11 callers
Function
freeCheckoutOptions
(copts *C.git_checkout_options)
checkout.go:182
↓ 11 callers
Function
populateCheckoutOptions
populateCheckoutOptions populates the provided C-struct with the contents of the provided CheckoutOptions struct. Returns copts, or nil if opts is ni
checkout.go:142
↓ 10 callers
Method
AddByPath
(path string)
index.go:191
↓ 10 callers
Method
Cmp
(oid2 *Oid)
git.go:243
↓ 10 callers
Method
CreateCommit
( refname string, author, committer *Signature, message string, tree *Tree, parents ...*Commit)
repository.go:432
↓ 10 callers
Method
Equal
(oid2 *Oid)
git.go:252
↓ 10 callers
Function
NewOid
(s string)
git.go:219
↓ 10 callers
Method
Path
Path returns the index' path on disk or an empty string if it exists only in memory.
index.go:151
↓ 10 callers
Method
Target
()
tag.go:44
↓ 10 callers
Method
WriteTreeTo
(repo *Repository)
index.go:387
↓ 10 callers
Function
allocObject
(cobj *C.git_object, repo *Repository)
object.go:230
↓ 10 callers
Function
signature
()
rebase_test.go:436
↓ 9 callers
Method
Add
Add adds or replaces the given entry to the index, making a copy of the data
index.go:173
↓ 9 callers
Method
Message
()
tag.go:25
↓ 9 callers
Method
Name
()
tag.go:31
↓ 9 callers
Method
Read
(oid *Oid)
odb.go:162
↓ 9 callers
Method
WriteTree
()
index.go:419
↓ 9 callers
Function
newIndexFromC
(ptr *C.git_index, repo *Repository)
index.go:110
↓ 9 callers
Function
newRepositoryFromC
(ptr *C.git_repository)
repository.go:45
↓ 9 callers
Function
setSizet
(opt C.int, val int)
settings.go:163
↓ 8 callers
Method
ApplyDiff
ApplyDiff appllies a Diff to the given repository, making changes directly in the working directory, the index, or both.
diff.go:1030
↓ 8 callers
Method
DiffTreeToTree
(oldTree, newTree *Tree, opts *DiffOptions)
diff.go:689
↓ 8 callers
Method
Head
()
repository.go:325
↓ 8 callers
Method
Workdir
()
repository.go:693
↓ 8 callers
Function
freeMergeOptions
(copts *C.git_merge_options)
merge.go:187
↓ 8 callers
Function
newCredential
()
credentials.go:87
↓ 8 callers
Function
newIndexEntryFromC
(entry *C.git_index_entry)
index.go:75
↓ 8 callers
Function
populateMergeOptions
(copts *C.git_merge_options, opts *MergeOptions)
merge.go:174
↓ 8 callers
Function
untrackCallbacksPayload
(callbacks *C.git_remote_callbacks)
remote.go:322
↓ 7 callers
Method
Describe
Describe performs the describe operation on the commit.
describe.go:106
↓ 7 callers
Method
Peel
Peel recursively peels an object until an object of the specified type is met. If the query cannot be satisfied due to the object model, ErrorCodeInv
object.go:215
↓ 7 callers
Method
Type
()
odb.go:365
↓ 7 callers
Function
commitSomething
(repo *Repository, something, content string, commitOpts commitOptions)
rebase_test.go:474
↓ 7 callers
Function
compareStringList
(t *testing.T, expected, actual []string)
reference_test.go:254
↓ 7 callers
Function
freeDiffOptions
(copts *C.git_diff_options)
diff.go:677
↓ 7 callers
Function
makeStringsFromCStrings
(x **C.char, l int)
remote.go:888
↓ 7 callers
Function
populateDiffOptions
(copts *C.git_diff_options, opts *DiffOptions, repo *Repository, errorTarget *error)
diff.go:646
↓ 6 callers
Method
ConnectFetch
(callbacks *RemoteCallbacks, proxyOpts *ProxyOptions, headers []string)
remote.go:1068
↓ 6 callers
Method
EntryCount
()
tree.go:118
↓ 6 callers
Method
ForEach
(callback OdbForEachCallback)
odb.go:227
↓ 6 callers
Method
Format
Format prints the DescribeResult as a string.
describe.go:192
↓ 6 callers
Method
State
()
repository.go:760
↓ 6 callers
Method
Tree
()
commit.go:132
↓ 6 callers
Function
createTag
(t *testing.T, repo *Repository, commit *Commit, name, message string)
tag_test.go:193
↓ 6 callers
Function
diffDeltaFromC
(delta *C.git_diff_delta)
diff.go:88
↓ 6 callers
Function
headCommit
(repo *Repository)
rebase_test.go:444
↓ 6 callers
Function
newDiffFromC
(ptr *C.git_diff, repo *Repository)
diff.go:165
↓ 6 callers
Function
newTreeEntry
(entry *C.git_tree_entry)
tree.go:43
↓ 6 callers
Function
populateRemoteCallbacks
(ptr *C.git_remote_callbacks, callbacks *RemoteCallbacks, errorTarget *error)
remote.go:329
↓ 6 callers
Function
readReadme
(t *testing.T, repo *Repository)
cherrypick_test.go:27
↓ 5 callers
Method
AsTree
()
object.go:123
↓ 5 callers
Method
Config
()
repository.go:155
↓ 5 callers
Method
ContentToSign
ContentToSign returns the content that will be passed to a signing function for this commit
commit.go:64
↓ 5 callers
Method
LookupBlob
(id *Oid)
repository.go:283
↓ 5 callers
Function
NewIndex
NewIndex allocates a new index. It won't be associated with any file on the filesystem or repository
index.go:118
↓ 5 callers
Method
Next
(id *Oid)
walk.go:166
↓ 5 callers
Method
RemoveAll
(pathspecs []string, callback IndexMatchedPathCallback)
index.go:302
↓ 5 callers
Method
ResetToCommit
(commit *Commit, resetType ResetType, opts *CheckoutOptions)
reset.go:17
↓ 5 callers
Method
ToBuf
(format DiffFormat)
diff.go:446
↓ 5 callers
Function
addAndGetTree
addAndGetTree creates a file and commits it, returning the commit and tree
diff_test.go:649
↓ 5 callers
Function
appendCommit
(t *testing.T, repo *Repository)
merge_test.go:125
↓ 5 callers
Function
diffFileFromC
(file *C.git_diff_file)
diff.go:70
↓ 5 callers
Function
freeCIndexEntry
(entry *C.git_index_entry)
index.go:106
↓ 5 callers
Function
freeRebaseOptions
(copts *C.git_rebase_options)
rebase.go:261
↓ 5 callers
Method
lookupPrefixType
(id *Oid, prefix uint, t ObjectType)
repository.go:217
next →
1–100 of 945, ranked by callers