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
↓ 5 callers
Method
lookupType
(id *Oid, t ObjectType)
repository.go:202
↓ 5 callers
Function
populateCIndexEntry
(source *IndexEntry, dest *C.git_index_entry)
index.go:91
↓ 5 callers
Method
trackRemote
(r *Remote)
remote.go:636
↓ 4 callers
Method
AnnotatedCommitFromRef
(ref *Reference)
merge.go:83
↓ 4 callers
Method
AsCommit
()
object.go:145
↓ 4 callers
Method
Branch
()
branch.go:26
↓ 4 callers
Method
Contents
()
blob.go:33
↓ 4 callers
Method
CreateBlobFromBuffer
(data []byte)
blob.go:49
↓ 4 callers
Method
Fetch
Fetch performs a fetch operation. refspecs specifies which refspecs to use for this fetch, use an empty list to use the refspecs from the configuratio
remote.go:1035
↓ 4 callers
Method
Foreach
Foreach calls the callback for each tag in the repository.
tag.go:225
↓ 4 callers
Method
Ls
(filterRefs ...string)
remote.go:1119
↓ 4 callers
Method
Next
()
branch.go:44
↓ 4 callers
Method
OpenRebase
OpenRebase opens an existing rebase that was previously started by either an invocation of InitRebase or by another client.
rebase.go:325
↓ 4 callers
Function
OpenRepository
(path string)
repository.go:61
↓ 4 callers
Method
SetBool
(name string, value bool)
config.go:276
↓ 4 callers
Method
StatusList
(opts *StatusOptions)
status.go:143
↓ 4 callers
Method
Type
()
credentials.go:100
↓ 4 callers
Function
assertStringList
(t *testing.T, expected, actual []string)
rebase_test.go:592
↓ 4 callers
Function
checkHunk
(t *testing.T, label string, hunk, want BlameHunk)
blame_test.go:65
↓ 4 callers
Function
checkRefType
(t *testing.T, ref *Reference, kind ReferenceType)
reference_test.go:262
↓ 4 callers
Function
checkoutOptionsFromC
(c *C.git_checkout_options)
checkout.go:68
↓ 4 callers
Function
commitMsgsList
(repo *Repository)
rebase_test.go:570
↓ 4 callers
Function
dupObject
(obj *Object, kind ObjectType)
object.go:91
↓ 4 callers
Function
mergeOptionsFromC
(opts *C.git_merge_options)
merge.go:151
↓ 4 callers
Function
newAnnotatedCommitFromC
(ptr *C.git_annotated_commit, r *Repository)
merge.go:25
↓ 3 callers
Method
Apply
Apply applies a single stashed state from the stash list. If local changes in the working directory conflict with changes in the stash then ErrorCode
stash.go:217
↓ 3 callers
Method
Author
Author returns the signature of the note author
note.go:166
↓ 3 callers
Method
ByIndex
(index int)
status.go:86
↓ 3 callers
Function
Clone
(url string, path string, options *CloneOptions)
clone.go:24
↓ 3 callers
Method
Commit
Commit commits the current patch. You must have resolved any conflicts that were introduced during the patch application from the Next() invocation.
rebase.go:418
↓ 3 callers
Method
Committer
Committer returns the signature of the note committer
note.go:179
↓ 3 callers
Method
Conflict
(path string)
index.go:572
↓ 3 callers
Method
CreateBranch
(branchName string, target *Commit, force bool)
branch.go:101
↓ 3 callers
Method
Data
Data returns a slice pointing to the unmanaged object memory. You must make sure the object is referenced for at least as long as the slice is used.
odb.go:373
↓ 3 callers
Method
EntryByName
(filename string)
tree.go:52
↓ 3 callers
Method
EntryCount
()
index.go:452
↓ 3 callers
Method
Finish
Finish finishes a rebase that is currently in progress once all patches have been applied.
rebase.go:448
↓ 3 callers
Function
NewRegisteredSmartTransport
NewRegisteredSmartTransport adds a custom transport definition, to be used in addition to the built-in set of transports that come with libgit2.
transport.go:224
↓ 3 callers
Method
Owner
Owner returns a weak reference to the repository which owns this object. This won't keep the underlying repository alive, but it should still be Freed
object.go:84
↓ 3 callers
Method
Parent
(n uint)
commit.go:167
↓ 3 callers
Function
ReferenceNameIsValid
ReferenceNameIsValid returns whether the reference name is well-formed. Valid reference names must follow one of two patterns: 1. Top-level names mu
reference.go:489
↓ 3 callers
Function
ReferenceNormalizeName
ReferenceNormalizeName normalizes the reference name and checks validity. This will normalize the reference name by removing any leading slash '/' ch
reference.go:525
↓ 3 callers
Method
RevparseSingle
(spec string)
revparse.go:77
↓ 3 callers
Function
SetCacheMaxSize
(maxSize int)
settings.go:121
↓ 3 callers
Method
SetHead
(refname string)
repository.go:339
↓ 3 callers
Method
Walk
Walk traverses the entries in a tree and its subtrees in pre order. The entries will be traversed in the pre order, children subtrees will be automat
tree.go:161
↓ 3 callers
Function
checkNoFilesStaged
checkNoFilesStaged checks that there is a single file called "file2" uncommitted in the repo
diff_test.go:631
↓ 3 callers
Function
checkObject
(t *testing.T, obj *Object, id *Oid)
revparse_test.go:52
↓ 3 callers
Function
checkSecondFileStaged
checkSecondFileStaged checks that there is a single file called "file2" uncommitted in the repo
diff_test.go:598
↓ 3 callers
Function
checkStashes
(t *testing.T, repo *Repository, expected []stash)
stash_test.go:130
↓ 3 callers
Function
createBranch
(repo *Repository, branch string)
rebase_test.go:422
↓ 3 callers
Function
createTestNote
(t *testing.T, repo *Repository, commit *Commit)
note_test.go:102
↓ 3 callers
Function
createTestTag
(t *testing.T, repo *Repository, commit *Commit)
tag_test.go:179
↓ 3 callers
Function
freeFetchOptions
(copts *C.git_fetch_options)
remote.go:997
↓ 3 callers
Function
freeProxyOptions
(copts *C.git_proxy_options)
remote.go:587
↓ 3 callers
Function
getSmartSubtransportInterface
(subtransport *C.git_smart_subtransport)
transport.go:359
↓ 3 callers
Function
getSmartSubtransportStreamInterface
(subtransportStream *C.git_smart_subtransport_stream)
transport.go:439
↓ 3 callers
Function
newReferenceIteratorFromC
(ptr *C.git_reference_iterator, r *Repository)
reference.go:464
↓ 3 callers
Function
newRegisteredSmartTransport
( name string, stateless bool, callback SmartSubtransportCallback, global bool, )
transport.go:232
↓ 3 callers
Function
performRebaseOnto
(repo *Repository, branch string, rebaseOpts *RebaseOptions)
rebase_test.go:359
↓ 3 callers
Function
populateFetchOptions
(copts *C.git_fetch_options, opts *FetchOptions, errorTarget *error)
remote.go:979
↓ 3 callers
Function
populateProxyOptions
(copts *C.git_proxy_options, opts *ProxyOptions)
remote.go:576
↓ 3 callers
Function
setupRepoForRebase
Utils
rebase_test.go:332
↓ 2 callers
Method
AddAll
(pathspecs []string, flags IndexAddOption, callback IndexMatchedPathCallback)
index.go:229
↓ 2 callers
Method
AddBackend
(backend *OdbBackend, priority int)
odb.go:67
↓ 2 callers
Method
AsBlob
()
object.go:167
↓ 2 callers
Method
AsObject
()
object.go:32
↓ 2 callers
Method
AsTag
()
object.go:189
↓ 2 callers
Function
CachedMemory
()
settings.go:112
↓ 2 callers
Method
CheckoutIndex
Updates files in the working tree to match the content of the given index. If index is nil, the repository's index will be used. opts may be nil.
checkout.go:223
↓ 2 callers
Method
Close
()
ssh.go:175
↓ 2 callers
Method
Connect
Connect opens a connection to a remote. The transport is selected based on the URL. The direction argument is due to a limitation of the git protocol
remote.go:1083
↓ 2 callers
Method
CreateCommitBuffer
CreateCommitBuffer creates a commit and write it into a buffer.
repository.go:525
↓ 2 callers
Method
CreateCommitWithSignature
CreateCommitWithSignature creates a commit object from the given contents and signature.
repository.go:493
↓ 2 callers
Method
CreateLightweight
CreateLightweight creates a new lightweight tag pointing to an object and returns the id of the target object. The name of the tag is validated for c
tag.go:130
↓ 2 callers
Method
CurrentOperationIndex
CurrentOperationIndex gets the index of the rebase operation that is currently being applied. There is also an error returned for API compatibility.
rebase.go:356
↓ 2 callers
Function
DefaultApplyOptions
DefaultApplyOptions returns default options for applying diffs or patches.
diff.go:962
↓ 2 callers
Function
DefaultCherrypickOptions
()
cherrypick.go:45
↓ 2 callers
Method
DefaultRef
DefaultRef returns the default notes reference for a repository
note.go:123
↓ 2 callers
Function
DefaultRevertOptions
DefaultRevertOptions initialises a RevertOptions struct with default values
revert.go:46
↓ 2 callers
Function
DefaultStashApplyOptions
DefaultStashApplyOptions initializes the structure with default values.
stash.go:149
↓ 2 callers
Method
DstMatches
SrcMatches checks if a refspec's destination descriptor matches a reference
refspec.go:104
↓ 2 callers
Function
EnableCaching
(enabled bool)
settings.go:88
↓ 2 callers
Function
EnableFsyncGitDir
(enabled bool)
settings.go:104
↓ 2 callers
Function
EnableStrictHashVerification
(enabled bool)
settings.go:96
↓ 2 callers
Method
EntryByPath
EntryByPath looks up an entry by its full path, recursing into deeper trees if necessary (i.e. if there are slashes in the path)
tree.go:89
↓ 2 callers
Method
HasConflicts
()
index.go:516
↓ 2 callers
Method
HunkByIndex
(index int)
blame.go:101
↓ 2 callers
Method
HunkByLine
(lineno int)
blame.go:110
↓ 2 callers
Method
HunkCount
()
blame.go:94
↓ 2 callers
Method
Id
()
object.go:54
↓ 2 callers
Method
InitRebase
InitRebase initializes a rebase operation to rebase the changes in branch relative to upstream onto another branch.
rebase.go:289
↓ 2 callers
Function
InitRepository
(path string, isbare bool)
repository.go:109
↓ 2 callers
Method
IsNote
IsNote checks if the reference is a note.
reference.go:356
↓ 2 callers
Method
List
List returns the names of all the tags in the repository, eg: ["v1.0.1", "v2.0.0"].
tag.go:153
↓ 2 callers
Method
ListWithMatch
ListWithMatch returns the names of all the tags in the repository that match a given pattern. The pattern is a standard fnmatch(3) pattern http://man
tag.go:174
↓ 2 callers
Method
LookupBool
(name string)
config.go:143
↓ 2 callers
Method
LookupBranch
(branchName string, bt BranchType)
branch.go:166
↓ 2 callers
Method
LookupTag
(id *Oid)
repository.go:304
↓ 2 callers
Method
Names
()
reference.go:428
← previous
next →
101–200 of 945, ranked by callers