Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-git/go-git
/ functions
Functions
4,185 in github.com/go-git/go-git
⨍
Functions
4,185
◇
Types & classes
657
↓ 1 callers
Method
addBlames
(curItems []*queueItem)
blame.go:180
↓ 1 callers
Method
addCommit
(rs config.RefSpec, remoteRefs storer.ReferenceStorer, localCommit plumbing.Hash, req *packp.ReferenceUpdate
remote.go:713
↓ 1 callers
Method
addIndexFromFile
(name string, h plumbing.Hash, idx *indexBuilder)
worktree.go:728
↓ 1 callers
Method
addIndexFromTreeEntry
(name string, f *object.TreeEntry, idx *indexBuilder)
worktree.go:718
↓ 1 callers
Method
addLineNumbers
addLineNumbers obtains the line numbers in a new chunk.
plumbing/format/diff/unified_encoder.go:257
↓ 1 callers
Method
addOffset64
(pos uint64)
plumbing/format/idxfile/writer.go:169
↓ 1 callers
Method
addOrUpdateReferences
( rs config.RefSpec, localRefs []*plumbing.Reference, refsDict map[string]*plumbing.Reference, remoteRefs
remote.go:642
↓ 1 callers
Function
addPendingParents
(pending, visited map[plumbing.Hash]bool, commit *object.Commit)
plumbing/revlist/revlist.go:169
↓ 1 callers
Method
addReachableTags
(localRefs []*plumbing.Reference, remoteRefs storer.ReferenceStorer, req *packp.ReferenceUpdateRequest)
remote.go:240
↓ 1 callers
Method
addRefFromHEAD
(refs *[]*plumbing.Reference)
storage/filesystem/dotgit/dotgit.go:988
↓ 1 callers
Function
addReference
( repoStorer storage.Storer, commitIterFunc func(*Commit) CommitIter, ref *plumbing.Reference, commitsPath
plumbing/object/commit_walker.go:237
↓ 1 callers
Method
addReferenceIfRefSpecMatches
(rs config.RefSpec, remoteRefs storer.ReferenceStorer, localRef *plumbing.Reference, req *packp.ReferenceUpd
remote.go:750
↓ 1 callers
Method
addReferencesToUpdate
( refspecs []config.RefSpec, localRefs []*plumbing.Reference, remoteRefs storer.ReferenceStorer, req *pack
remote.go:606
↓ 1 callers
Method
addRefs
(s storer.ReferenceStorer)
plumbing/protocol/packp/advrefs.go:79
↓ 1 callers
Method
addRefsFromPackedRefs
(refs *[]*plumbing.Reference, seen map[plumbing.ReferenceName]bool)
storage/filesystem/dotgit/dotgit.go:809
↓ 1 callers
Method
addRefsFromPackedRefsFile
(refs *[]*plumbing.Reference, f billy.File, seen map[plumbing.ReferenceName]bool)
storage/filesystem/dotgit/dotgit.go:813
↓ 1 callers
Function
addRemote
(local, remote string)
_examples/common_test.go:135
↓ 1 callers
Method
addSymbolicRefs
(s storer.ReferenceStorer)
plumbing/protocol/packp/advrefs.go:183
↓ 1 callers
Method
addToQueue
addToQueue adds the passed commits to the internal fifo queue if they weren't seen or returns an error if the passed hashes could not be used to get v
plumbing/object/commit_walker_bfs_filtered.go:157
↓ 1 callers
Method
addTransport
(opts transportOptions, transport *http.Transport)
plumbing/transport/http/transport.go:16
↓ 1 callers
Function
ancestorsIndex
ancestorsIndex returns a map with the ancestors of the starting commit if the excluded one is not one of them. It returns errIsReachable if the exclud
plumbing/object/merge_base.go:64
↓ 1 callers
Method
appendHash
(store storer.EncodedObjectStorer, h plumbing.Hash)
plumbing/object/commit_walker_bfs.go:40
↓ 1 callers
Method
appendPathLines
(lines []string, fromPath, toPath string, isBinary bool)
plumbing/format/diff/unified_encoder.go:165
↓ 1 callers
Function
applyNeeds
(child *queueItem, needsMap []lineMap, identicalToChild bool, parentNo int)
blame.go:409
↓ 1 callers
Function
applyPatchBase
applyPatchBase applies the patch to target. Note that ota will be updated based on the description in resolveObject.
plumbing/format/packfile/parser.go:537
↓ 1 callers
Method
applyURLRules
(urlRules map[string]*URL)
config/config.go:681
↓ 1 callers
Function
asciiHex16
Returns the hexadecimal ascii representation of the 16 less significant bits of n. The length of the returned slice will always be 4. Example: if n
plumbing/format/pktline/encoder.go:88
↓ 1 callers
Function
asciiHexToByte
turns the hexadecimal ascii representation of a byte into its numerical value. Example: from 'b' to 11 (0xb).
plumbing/format/pktline/scanner.go:137
↓ 1 callers
Function
assertChanges
(a Changes, c *C)
plumbing/object/difftree_test.go:67
↓ 1 callers
Function
asyncReader
(p *Packfile)
plumbing/format/packfile/packfile.go:290
↓ 1 callers
Method
autoAddModifiedAndDeleted
()
worktree_commit.go:82
↓ 1 callers
Function
basicAuthFromEndpoint
(ep *transport.Endpoint)
plumbing/transport/http/common.go:338
↓ 1 callers
Function
bestNameMatch
(change *Change, changes []*Change)
plumbing/object/rename.go:268
↓ 1 callers
Function
blobHash
(path string, commit *object.Commit)
blame.go:584
↓ 1 callers
Method
buildBasicRepository
(_ *C)
common_test.go:42
↓ 1 callers
Function
buildCommand
(c []string)
plumbing/transport/ssh/upload_pack_test.go:128
↓ 1 callers
Function
buildCommand
(c []string)
plumbing/transport/ssh/internal/test/test_utils.go:52
↓ 1 callers
Method
buildCommitObject
(msg string, opts *CommitOptions, tree plumbing.Hash)
worktree_commit.go:122
↓ 1 callers
Method
buildFetchedTags
(refs memory.ReferenceStorage)
remote.go:1297
↓ 1 callers
Method
buildIndex
()
storage/filesystem/dotgit/writers.go:58
↓ 1 callers
Method
buildPackfileIters
( t plumbing.ObjectType, seen map[plumbing.Hash]struct{}, )
storage/filesystem/object.go:617
↓ 1 callers
Function
buildSidebandIfSupported
(l *capability.List, reader io.Reader, p sideband.Progress)
remote.go:1202
↓ 1 callers
Function
buildSimilarityMatrix
(srcs, dsts []*Change, renameScore int)
plumbing/object/rename.go:408
↓ 1 callers
Method
buildTagSignature
(tag *object.Tag, signKey *openpgp.Entity)
repository.go:803
↓ 1 callers
Function
byteToASCIIHex
turns a byte into its hexadecimal ascii representation. Example: from 11 (0xb) to 'b'.
plumbing/format/pktline/encoder.go:100
↓ 1 callers
Method
calculateHash
hash is calculated as the hash of "dir " plus the concatenation, for each child, of its name, a space and its hash. Children are sorted alphabeticall
utils/merkletrie/internal/fsnoder/dir.go:84
↓ 1 callers
Method
calculateHash
()
utils/merkletrie/filesystem/node.go:150
↓ 1 callers
Function
calculateRefs
( spec []config.RefSpec, remoteRefs storer.ReferenceStorer, tagMode TagMode, )
remote.go:962
↓ 1 callers
Method
calculateRemoteHeadReference
(spec []config.RefSpec, resolvedHead *plumbing.Reference)
repository.go:1132
↓ 1 callers
Function
checkFirstAndDrop
(c *C, f *Frame, expectedNodeName string, expectedOK bool)
utils/merkletrie/internal/frame/frame_test.go:81
↓ 1 callers
Method
checkForceWithLease
(localRef *plumbing.Reference, cmd *packp.Command, forceWithLease *ForceWithLease)
remote.go:798
↓ 1 callers
Function
checkIfCleanupIsNeeded
(path string)
repository.go:504
↓ 1 callers
Function
checkIfError
(err error, code exitCode, mainReason string, v ...interface{})
_examples/merge_base/helpers.go:11
↓ 1 callers
Function
checkMacro
(name string, allowMacro bool)
plumbing/format/gitattributes/attributes.go:170
↓ 1 callers
Method
checkRefFormat
checkRefFormat ensure reference name follow rules defined here : https://git-scm.com/docs/git-check-ref-format
internal/revision/parser.go:602
↓ 1 callers
Method
checkReferenceAndTruncate
(f billy.File, old *plumbing.Reference)
storage/filesystem/dotgit/dotgit.go:668
↓ 1 callers
Method
checkRequireRemoteRefs
(requires []config.RefSpec, remoteRefs storer.ReferenceStorer)
remote.go:1500
↓ 1 callers
Method
checkoutChange
(ch merkletrie.Change, t *object.Tree, idx *indexBuilder)
worktree.go:509
↓ 1 callers
Method
checkoutChangeRegularFile
(name string, a merkletrie.Action, t *object.Tree, e *object.TreeEntry, idx *indexBuilder, )
worktree.go:618
↓ 1 callers
Method
checkoutChangeSubmodule
(name string, a merkletrie.Action, e *object.TreeEntry, idx *indexBuilder, )
worktree.go:585
↓ 1 callers
Method
checkoutFile
(f *object.File)
worktree.go:651
↓ 1 callers
Method
checkoutFileSymlink
(f *object.File)
worktree.go:680
↓ 1 callers
Function
cleanUpDir
(path string, all bool)
repository.go:530
↓ 1 callers
Function
cloneRepo
(url, dir, publicKeyPath string)
_examples/tag-create-push/main.go:45
↓ 1 callers
Function
cloneRepository
(url, folder string)
_examples/common_test.go:91
↓ 1 callers
Method
close
close closes the CommitIter with an error
plumbing/object/commit_walker_bfs_filtered.go:126
↓ 1 callers
Method
commitFromStorer
(c *C, sto storer.EncodedObjectStorer, h plumbing.Hash)
plumbing/object/difftree_test.go:33
↓ 1 callers
Method
commitIndexEntry
(e *index.Entry)
worktree_commit.go:195
↓ 1 callers
Function
compactChanges
(changes []*Change)
plumbing/object/rename.go:523
↓ 1 callers
Function
composeIgnores
composeIgnores composes the ignore list with the provided seenExternal list
plumbing/object/commitgraph/commitnode_walker_helper.go:143
↓ 1 callers
Function
concat
utility function to concat slices
blame_test.go:114
↓ 1 callers
Function
configureTransport
(transport *http.Transport, ep *transport.Endpoint)
plumbing/transport/http/common.go:207
↓ 1 callers
Method
connect
()
plumbing/transport/git/common.go:58
↓ 1 callers
Method
connect
connect connects to the SSH server, unless a AuthMethod was set with SetAuth method, by default uses an auth method based on PublicKeysCallback, it co
plumbing/transport/ssh/common.go:112
↓ 1 callers
Function
contains
(haystack []string, needle string)
plumbing/format/config/option.go:119
↓ 1 callers
Method
containsUnstagedChanges
()
worktree.go:539
↓ 1 callers
Method
copyEntries
(scanner *deltaIndexScanner)
plumbing/format/packfile/delta_index.go:92
↓ 1 callers
Function
copyFile
(c *C, dstDir, dstFilename string, srcFile billy.File)
storage/filesystem/object_test.go:285
↓ 1 callers
Method
copyFileToStorage
(path string)
worktree_status.go:461
↓ 1 callers
Method
copyNewFile
(tmp billy.File, pr billy.File)
storage/filesystem/dotgit/dotgit_rewrite_packed_refs.go:65
↓ 1 callers
Method
copyObject
ReadRegularObject reads and write a non-deltified object from it zlib stream in an object entry in the packfile.
plumbing/format/packfile/scanner.go:338
↓ 1 callers
Method
copyToExistingFile
(tmp, pr billy.File)
storage/filesystem/dotgit/dotgit_rewrite_packed_refs.go:47
↓ 1 callers
Method
copyTreeToStorageRecursive
(parent string, t *object.Tree)
worktree_commit.go:243
↓ 1 callers
Function
countEntries
(scan *deltaIndexScanner)
plumbing/format/packfile/delta_index.go:62
↓ 1 callers
Function
createBareRepository
(dir string)
_examples/common_test.go:99
↓ 1 callers
Method
createBranch
(opts *CheckoutOptions)
worktree.go:201
↓ 1 callers
Function
createDotGitFile
(worktree, storage billy.Filesystem)
repository.go:158
↓ 1 callers
Method
createHeadIfCorrectReference
( reference *plumbing.Reference, s storer.ReferenceStorer)
plumbing/protocol/packp/advrefs.go:168
↓ 1 callers
Method
createNewObjectPack
createNewObjectPack is a helper for RepackObjects taking care of creating a new pack. It is used so the PackfileWriter deferred close has the right sc
repository.go:1812
↓ 1 callers
Function
createRepositoryWithRemote
(local, remote string)
_examples/common_test.go:116
↓ 1 callers
Method
createTagObject
(name string, hash plumbing.Hash, opts *CreateTagOptions)
repository.go:768
↓ 1 callers
Method
createTestObjects
()
plumbing/format/packfile/delta_selector_test.go:135
↓ 1 callers
Method
current
Returns the path to the current node, adding the base if there was one, and a nil error. If there were no noders left, it returns nil and io.EOF. If
utils/merkletrie/iter.go:177
↓ 1 callers
Method
decodeACKLine
(line []byte)
plumbing/protocol/packp/srvresp.go:117
↓ 1 callers
Function
decodeChild
A child can be a file or a dir.
utils/merkletrie/internal/fsnoder/new.go:117
↓ 1 callers
Function
decodeChildren
(data []byte)
utils/merkletrie/internal/fsnoder/new.go:72
↓ 1 callers
Method
decodeCommandStatus
(b []byte)
plumbing/protocol/packp/report_status.go:121
↓ 1 callers
Method
decodeDeltaObjectAt
( p *packfile.Packfile, offset int64, hash plumbing.Hash, )
storage/filesystem/object.go:501
↓ 1 callers
Method
decodeLine
(line []byte)
plumbing/protocol/packp/srvresp.go:99
↓ 1 callers
Function
decodeOffset
(cmd byte, delta []byte)
plumbing/format/packfile/patch_delta.go:463
← previous
next →
1,301–1,400 of 4,185, ranked by callers