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
↓ 2 callers
Method
NewBranchIterator
(flags BranchType)
branch.go:85
↓ 2 callers
Function
NewCredentialUsername
(username string)
credentials.go:138
↓ 2 callers
Function
NewOdb
()
odb.go:34
↓ 2 callers
Function
NewOdbBackendFromC
(ptr unsafe.Pointer)
odb.go:49
↓ 2 callers
Function
NewOidFromBytes
(b []byte)
git.go:209
↓ 2 callers
Method
NewReferenceIterator
NewReferenceIterator creates a new iterator over reference names
reference.go:379
↓ 2 callers
Method
NewWriteStream
NewWriteStream opens a write stream to the ODB, which allows you to create a new object in the database. The size and type must be known in advance
odb.go:300
↓ 2 callers
Method
Next
Next retrieves the next reference. If the iterationis over, the returned error code is git.ErrorCodeIterOver
reference.go:450
↓ 2 callers
Method
ParentCount
()
commit.go:185
↓ 2 callers
Method
Patch
(deltaIndex int)
diff.go:418
↓ 2 callers
Method
Remove
(filename string)
tree.go:213
↓ 2 callers
Method
Save
Save saves the local modifications to a new stash. Stasher is the identity of the person performing the stashing. Message is the optional description
stash.go:47
↓ 2 callers
Method
SetString
(name, value string)
config.go:220
↓ 2 callers
Method
Shorthand
Shorthand returns a "human-readable" short reference name.
reference.go:318
↓ 2 callers
Function
Shutdown
Shutdown frees all the resources acquired by libgit2. Make sure no references to any git2go objects are live before calling this. After this is called
git.go:177
↓ 2 callers
Method
SmartCredentials
SmartCredentials calls the credentials callback for this transport.
transport.go:101
↓ 2 callers
Method
SrcMatches
SrcMatches checks if a refspec's source descriptor matches a reference
refspec.go:95
↓ 2 callers
Method
StateCleanup
()
repository.go:770
↓ 2 callers
Method
WithSignature
WithSignature creates a new signed commit from the given signature and signature field
commit.go:95
↓ 2 callers
Function
allocCommit
(ptr *C.git_commit, repo *Repository)
object.go:132
↓ 2 callers
Function
allocTree
(ptr *C.git_tree, repo *Repository)
object.go:110
↓ 2 callers
Function
blameHunkFromC
(hunk *C.git_blame_hunk)
blame.go:154
↓ 2 callers
Function
checkCommitSigned
(t *testing.T, entity *openpgp.Entity, commit *Commit)
rebase_test.go:313
↓ 2 callers
Function
checkDescribeNoRefsFound
(t *testing.T, err error)
describe_test.go:93
↓ 2 callers
Function
checkOwner
(t *testing.T, repo *Repository, obj Object)
object_test.go:81
↓ 2 callers
Function
checkout
(t *testing.T, repo *Repository, commit *Commit)
cherrypick_test.go:8
↓ 2 callers
Function
createTestTrees
(t *testing.T, repo *Repository)
diff_test.go:180
↓ 2 callers
Function
diffHunkFromC
(hunk *C.git_diff_hunk)
diff.go:106
↓ 2 callers
Function
doublePointerBytes
()
blob_test.go:13
↓ 2 callers
Function
fileExistsInRepo
(repo *Repository, name string)
stash_test.go:193
↓ 2 callers
Function
freeApplyOptions
(copts *C.git_apply_options)
diff.go:996
↓ 2 callers
Function
freeCherrypickOpts
(copts *C.git_cherrypick_options)
cherrypick.go:37
↓ 2 callers
Function
freeRevertOptions
(copts *C.git_revert_options)
revert.go:37
↓ 2 callers
Function
freeStashApplyOptions
(copts *C.git_stash_apply_options)
stash.go:183
↓ 2 callers
Function
getSizet
(opt C.int)
settings.go:137
↓ 2 callers
Function
initLibGit2
()
git.go:139
↓ 2 callers
Function
newChannelPipe
(t *testing.T, w io.Writer, wg *sync.WaitGroup)
remote_test.go:261
↓ 2 callers
Function
newDescribeResultFromC
(ptr *C.git_describe_result)
describe.go:183
↓ 2 callers
Function
newPatchFromC
(ptr *C.git_patch)
patch.go:17
↓ 2 callers
Function
newRebaseFromC
(ptr *C.git_rebase, repo *Repository, opts *C.git_rebase_options)
rebase.go:481
↓ 2 callers
Function
newRebaseOperationFromC
(c *C.git_rebase_operation)
rebase.go:66
↓ 2 callers
Function
newSubmoduleFromC
(ptr *C.git_submodule, r *Repository)
submodule.go:28
↓ 2 callers
Function
populateApplyOptions
(copts *C.git_apply_options, opts *ApplyOptions, errorTarget *error)
diff.go:976
↓ 2 callers
Function
populateRebaseOptions
(copts *C.git_rebase_options, opts *RebaseOptions, repo *Repository, errorTarget *error)
rebase.go:236
↓ 2 callers
Function
populateStashApplyOptions
(copts *C.git_stash_apply_options, opts *StashApplyOptions, errorTarget *error)
stash.go:165
↓ 2 callers
Function
registerManagedHTTP
()
http.go:22
↓ 2 callers
Function
seedTestRepoOpt
(t *testing.T, repo *Repository, opts commitOptions)
git_test.go:95
↓ 2 callers
Method
sendRequest
()
http.go:187
↓ 2 callers
Function
sptr
(p uintptr)
remote.go:884
↓ 2 callers
Function
toPointer
(data []byte)
patch.go:60
↓ 2 callers
Function
unregisterManagedTransports
unregisterManagedTransports unregisters all git2go-managed transports.
transport.go:45
↓ 2 callers
Method
untrack
untrack stops tracking the git_remote pointer.
remote.go:225
↓ 2 callers
Method
untrackRemote
(r *Remote)
remote.go:644
↓ 1 callers
Method
Abort
Abort aborts a rebase that is currently in progress, resetting the repository and working directory to their state before rebase began.
rebase.go:462
↓ 1 callers
Method
Action
Action creates a SmartSubtransportStream for the provided url and requested action.
transport.go:183
↓ 1 callers
Method
AddFromBuffer
AddFromBuffer adds or replaces an index entry from a buffer in memory
index.go:208
↓ 1 callers
Method
AnnotatedCommitFromRevspec
(spec string)
merge.go:100
↓ 1 callers
Method
ApplyToTree
ApplyToTree applies a Diff to a Tree and returns the resulting image as an Index.
diff.go:1053
↓ 1 callers
Method
BlameFile
(path string, opts *BlameOptions)
blame.go:54
↓ 1 callers
Method
CheckoutTree
(tree *Tree, opts *CheckoutOptions)
checkout.go:248
↓ 1 callers
Method
Cherrypick
(commit *Commit, opts CherrypickOptions)
cherrypick.go:59
↓ 1 callers
Method
CherrypickCommit
(pick, our *Commit, opts CherrypickOptions)
cherrypick.go:79
↓ 1 callers
Method
Clear
Clear clears the index object in memory; changes must be explicitly written to disk for them to take effect persistently
index.go:159
↓ 1 callers
Method
Commit
Commit finalizes the pack and index. It resolves any pending deltas and writes out the index file. It also returns the packfile's hash. A packfile's
indexer.go:78
↓ 1 callers
Method
Copy
()
git.go:247
↓ 1 callers
Method
CreateAnonymous
(url string)
remote.go:746
↓ 1 callers
Method
CreateCommitFromIds
( refname string, author, committer *Signature, message string, tree *Oid, parents ...*Oid)
repository.go:587
↓ 1 callers
Method
CreateWithOptions
CreateWithOptions Creates a repository object with extended options.
remote.go:689
↓ 1 callers
Function
DefaultDescribeFormatOptions
DefaultDescribeFormatOptions returns default options for formatting the output.
describe.go:75
↓ 1 callers
Function
DefaultDescribeOptions
DefaultDescribeOptions returns default options for the describe operation.
describe.go:41
↓ 1 callers
Function
DefaultDiffFindOptions
()
diff.go:575
↓ 1 callers
Function
DefaultDiffOptions
()
diff.go:520
↓ 1 callers
Function
DefaultRebaseOptions
DefaultRebaseOptions returns a RebaseOptions with default values.
rebase.go:213
↓ 1 callers
Function
DefaultRemoteCreateOptions
DefaultApplyOptions returns default options for remote create
remote.go:1216
↓ 1 callers
Method
Delete
()
branch.go:120
↓ 1 callers
Method
Deletions
()
diff.go:243
↓ 1 callers
Method
Delta
(index int)
diff.go:150
↓ 1 callers
Method
DescribeWorkdir
DescribeWorkdir describes the working tree. It means describe HEAD and appends <mark> (-dirty by default) if the working tree is dirty.
describe.go:141
↓ 1 callers
Function
DiffBlobs
DiffBlobs performs a diff between two arbitrary blobs. You can pass whatever file names you'd like for them to appear as in the diff.
diff.go:836
↓ 1 callers
Function
DiffFromBuffer
DiffFromBuffer reads the contents of a git patch file into a Diff object. The diff object produced is similar to the one that would be produced if yo
diff.go:1087
↓ 1 callers
Method
Direction
Direction returns the refspec's direction
refspec.go:44
↓ 1 callers
Method
Drop
Drop removes a single stashed state from the stash list. 'index' is the position within the stash list. 0 points to the most recent stashed state. R
stash.go:298
↓ 1 callers
Method
Dst
Dst returns the refspec's destination specifier
refspec.go:63
↓ 1 callers
Method
Dump
Dump dumps all the queued in-memory writes to a packfile. It is the caller's responsibility to ensure that the generated packfile is available to the
mempack.go:63
↓ 1 callers
Method
Dwim
Dwim looks up a reference by DWIMing its short name
reference.go:140
↓ 1 callers
Method
EntryById
EntryById performs a lookup for a tree entry with the given SHA value. It returns a *TreeEntry that is owned by the Tree. You don't have to free it,
tree.go:72
↓ 1 callers
Method
EntryByIndex
(index uint64)
tree.go:107
↓ 1 callers
Method
ExtractSignature
()
commit.go:103
↓ 1 callers
Function
Features
Features returns a bit-flag of Feature values indicating which features the loaded libgit2 library has.
features.go:26
↓ 1 callers
Method
FilesChanged
()
diff.go:249
↓ 1 callers
Method
FindSimilar
(opts *DiffFindOptions)
diff.go:195
↓ 1 callers
Method
ForEach
(f BranchIteratorFunc)
branch.go:68
↓ 1 callers
Method
ForEach
ForEach repeatedly calls the callback with new packfile data until there is no more data or the callback returns an error
packbuilder.go:163
↓ 1 callers
Method
Force
Force returns the refspec's force-update setting
refspec.go:76
↓ 1 callers
Method
Free
()
index.go:447
↓ 1 callers
Method
Free
()
repository.go:655
↓ 1 callers
Method
Free
Free releases all resources used by the RegisteredSmartTransport and unregisters the custom transport definition referenced by it.
transport.go:281
↓ 1 callers
Method
Free
Free frees the indexer and its resources.
indexer.go:93
↓ 1 callers
Method
From
()
revparse.go:33
↓ 1 callers
Method
GetSSHKey
GetSSHKey returns the SSH-specific key information from the Cred object.
credentials.go:124
← previous
next →
201–300 of 945, ranked by callers