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
readLength
the length is codified in the last 4 bits of the first byte and in the last 7 bits of subsequent bytes. Last byte has a 0 MSB.
plumbing/format/packfile/scanner.go:290
↓ 1 callers
Method
readOFSDeltaObjectContent
(h *ObjectHeader, deltaRC io.Reader)
plumbing/format/packfile/packfile.go:429
↓ 1 callers
Method
readObjectTypeAndLength
ReadObjectTypeAndLength reads and returns the object type and the length field from an object entry in a packfile.
plumbing/format/packfile/scanner.go:261
↓ 1 callers
Method
readPayloadLen
Method readPayloadLen returns the payload length by reading the pkt-len and subtracting the pkt-len size.
plumbing/format/pktline/scanner.go:93
↓ 1 callers
Method
readREFDeltaObjectContent
(h *ObjectHeader, deltaRC io.Reader)
plumbing/format/packfile/packfile.go:385
↓ 1 callers
Function
readRef
Reads a ref-name
plumbing/protocol/packp/advrefs_decode.go:244
↓ 1 callers
Method
readSignature
readSignature reads a returns the signature field in the packfile.
plumbing/format/packfile/scanner.go:116
↓ 1 callers
Method
readStage
(e *ResolveUndoEntry, s Stage)
plumbing/format/index/decoder.go:447
↓ 1 callers
Method
readType
()
plumbing/format/packfile/scanner.go:272
↓ 1 callers
Method
readUntil
readSlice reads one byte at a time from r until it encounters delim or an error.
plumbing/format/objfile/reader.go:72
↓ 1 callers
Method
readVersion
readVersion reads and returns the version field of a packfile.
plumbing/format/packfile/scanner.go:131
↓ 1 callers
Function
referenceExists
(s storer.ReferenceStorer, n plumbing.ReferenceName)
plumbing/transport/server/server.go:425
↓ 1 callers
Function
referencesToHashes
(refs storer.ReferenceStorer)
remote.go:1405
↓ 1 callers
Method
remaining
Remaining returns if there are no more noders in the tree, if both have noders or if one of them doesn't.
utils/merkletrie/doubleiter.go:110
↓ 1 callers
Function
remove
remove returns the passed commits excluding the commit toDelete
plumbing/object/merge_base.go:170
↓ 1 callers
Function
removeDuplicated
removeDuplicated removes duplicated commits from the passed slice of commits
plumbing/object/merge_base.go:186
↓ 1 callers
Function
removeDuplicatedSpace
(s string)
utils/merkletrie/difftree_test.go:200
↓ 1 callers
Function
repeat
utility function to avoid writing so many repeated commits
blame_test.go:101
↓ 1 callers
Method
reportStatus
()
plumbing/transport/server/server.go:326
↓ 1 callers
Method
resetIndex
(t *object.Tree, dirs []string)
worktree.go:329
↓ 1 callers
Method
resetWorktree
(t *object.Tree)
worktree.go:382
↓ 1 callers
Method
resolveDeltas
()
plumbing/format/packfile/parser.go:317
↓ 1 callers
Method
resolveExternalRef
(o *objectInfo)
plumbing/format/packfile/parser.go:361
↓ 1 callers
Method
resolveHashPrefix
resolveHashPrefix returns a list of potential hashes that the given string is a prefix of. It quietly swallows errors, returning nil.
repository.go:1691
↓ 1 callers
Method
resolveHead
If the server does not support symrefs capability, we need to guess the reference where HEAD is pointing to. Git versions prior to 1.8.4.3 has an spe
plumbing/protocol/packp/advrefs.go:105
↓ 1 callers
Function
resolveReference
(s ReferenceStorer, r *plumbing.Reference, recursion int)
plumbing/storer/reference.go:224
↓ 1 callers
Method
resolveToCommitHash
(h plumbing.Hash)
repository.go:865
↓ 1 callers
Method
rewritePackedRefsWithoutRef
(name plumbing.ReferenceName)
storage/filesystem/dotgit/dotgit.go:872
↓ 1 callers
Function
rmFileAndDirsIfEmpty
will walk up the directory tree removing all encountered empty directories, not just the one containing this file
worktree.go:1053
↓ 1 callers
Method
run
(c *C, context string)
utils/merkletrie/difftree_test.go:99
↓ 1 callers
Method
run
Runs a test on the provided iterator, checking that the names of the returned values are correct. If not, the treeDescription value is printed along
utils/merkletrie/iter_test.go:53
↓ 1 callers
Function
sameMode
(a, b *Change)
plumbing/object/rename.go:356
↓ 1 callers
Method
save
()
storage/filesystem/dotgit/writers.go:132
↓ 1 callers
Method
save
()
storage/filesystem/dotgit/writers.go:280
↓ 1 callers
Method
scan
slightly modified version of JGit's DeltaIndexScanner. We store the offset on the entries instead of the entries and the key, so we avoid operations t
plumbing/format/packfile/delta_index.go:148
↓ 1 callers
Function
scanChunk
scanChunk gets the next segment of pattern, which is a non-star string possibly preceded by a star.
plumbing/format/index/match.go:56
↓ 1 callers
Method
scanFirstLine
(scan *pktline.Scanner)
plumbing/protocol/packp/report_status.go:92
↓ 1 callers
Method
scanLine
()
plumbing/protocol/packp/updreq_decode.go:116
↓ 1 callers
Function
sectionsExample
returns nSection sections, each of them with nLines pkt-lines (not counting the flush-pkt: 0009 0.0\n 0009 0.1\n ... 0000 and so on
plumbing/format/pktline/scanner_test.go:202
↓ 1 callers
Function
sendDone
(w io.Writer)
plumbing/transport/internal/common/common.go:476
↓ 1 callers
Method
setAuth
(auth transport.AuthMethod)
plumbing/transport/ssh/common.go:73
↓ 1 callers
Method
setAuthFromEndpoint
()
plumbing/transport/ssh/common.go:249
↓ 1 callers
Function
setConfigWorktree
(r *Repository, worktree, storage billy.Filesystem)
repository.go:179
↓ 1 callers
Function
setEmptyRemote
(dir string)
_examples/common_test.go:122
↓ 1 callers
Method
setFirstRef
()
plumbing/protocol/packp/advrefs_encode.go:64
↓ 1 callers
Method
setHEADCommit
(commit plumbing.Hash)
worktree.go:561
↓ 1 callers
Method
setHEADToBranch
(branch plumbing.ReferenceName, commit plumbing.Hash)
worktree.go:264
↓ 1 callers
Method
setHEADToCommit
(commit plumbing.Hash)
worktree.go:259
↓ 1 callers
Method
setIsBare
(isBare bool)
repository.go:1030
↓ 1 callers
Method
setRef
(fileName, content string, old *plumbing.Reference)
storage/filesystem/dotgit/dotgit_setref.go:13
↓ 1 callers
Method
setRefNorwfs
There are some filesystems that don't support opening files in RDWD mode. In these filesystems the standard SetRef function can not be used as it read
storage/filesystem/dotgit/dotgit_setref.go:61
↓ 1 callers
Method
setRefRwfs
(fileName, content string, old *plumbing.Reference)
storage/filesystem/dotgit/dotgit_setref.go:21
↓ 1 callers
Function
setRemote
(local, remote string)
_examples/common_test.go:128
↓ 1 callers
Method
setStatus
(ref plumbing.ReferenceName, err error)
plumbing/transport/server/server.go:319
↓ 1 callers
Function
setTag
(r *git.Repository, tag string)
_examples/tag-create-push/main.go:100
↓ 1 callers
Function
setWorktreeAndStoragePaths
(r *Repository, worktree billy.Filesystem)
repository.go:139
↓ 1 callers
Function
setupHTTPProxy
(proxy *goproxy.ProxyHttpServer, proxiedRequests *int32)
plumbing/transport/http/proxy_test.go:104
↓ 1 callers
Function
signObject
(signer Signer, obj signableObject)
signer.go:22
↓ 1 callers
Function
simpleJoin
(parent, child string)
plumbing/object/tree.go:552
↓ 1 callers
Method
simpleNameMatch
(path []string, isDir bool)
plumbing/format/gitignore/pattern.go:92
↓ 1 callers
Method
sleep
()
storage/filesystem/dotgit/writers.go:222
↓ 1 callers
Method
sortName
(te object.TreeEntry)
worktree_commit.go:233
↓ 1 callers
Method
sortRefs
()
plumbing/protocol/packp/advrefs_encode.go:52
↓ 1 callers
Function
sortShallows
(c []plumbing.Hash)
plumbing/protocol/packp/advrefs_encode.go:163
↓ 1 callers
Function
split
returns the description of the elements of a dir. It is just looking for spaces if they are not part of inner dirs.
utils/merkletrie/internal/fsnoder/new.go:93
↓ 1 callers
Function
splitLines
(s string)
plumbing/format/diff/unified_encoder.go:304
↓ 1 callers
Method
status
(commit plumbing.Hash)
worktree_status.go:50
↓ 1 callers
Method
stepBoth
StepBoth makes d advance to the next noder in both merkletries, getting deeper into directories if that is the case.
utils/merkletrie/doubleiter.go:98
↓ 1 callers
Method
stopReading
stopReading detects when a valid command such as ACK or NAK is found to be read in the buffer without moving the read pointer.
plumbing/protocol/packp/srvresp.go:67
↓ 1 callers
Method
storageFromPackfile
(f *fixtures.Fixture)
plumbing/object/difftree_test.go:41
↓ 1 callers
Method
storePackfileInCache
(hash plumbing.Hash, p *packfile.Packfile)
storage/filesystem/object.go:242
↓ 1 callers
Function
sumOverflows
(a, b uint)
plumbing/format/packfile/patch_delta.go:524
↓ 1 callers
Method
supportSymrefs
()
plumbing/protocol/packp/advrefs.go:201
↓ 1 callers
Function
tableSize
(worstCaseBlockCnt int)
plumbing/format/packfile/delta_index.go:175
↓ 1 callers
Function
tagExists
(tag string, r *git.Repository)
_examples/tag-create-push/main.go:77
↓ 1 callers
Function
testAuthorDateOrder
(c *C, head CommitNode)
plumbing/object/commitgraph/commitnode_walker_test.go:136
↓ 1 callers
Function
testDateOrder
(c *C, head CommitNode)
plumbing/object/commitgraph/commitnode_walker_test.go:83
↓ 1 callers
Method
testDecodeOK
(c *C, payloads []string)
plumbing/protocol/packp/updreq_decode_test.go:268
↓ 1 callers
Method
testDecodeOk
(c *C, expected *ReportStatus, lines ...string)
plumbing/protocol/packp/report_status_test.go:42
↓ 1 callers
Method
testDecodeOkRaw
(c *C, expected *ReferenceUpdateRequest, raw []byte)
plumbing/protocol/packp/updreq_decode_test.go:280
↓ 1 callers
Method
testEncodeOk
(c *C, input *ReportStatus, lines ...string)
plumbing/protocol/packp/report_status_test.go:55
↓ 1 callers
Function
testExample
(t *testing.T, name, dir string)
_examples/common_test.go:142
↓ 1 callers
Method
testSendPackAddReference
(c *C)
plumbing/transport/test/receive_pack.go:314
↓ 1 callers
Method
testSendPackDeleteReference
(c *C)
plumbing/transport/test/receive_pack.go:337
↓ 1 callers
Function
testTopoOrder
(c *C, head CommitNode)
plumbing/object/commitgraph/commitnode_walker_test.go:31
↓ 1 callers
Function
testUlReqEncodeError
(c *C, ur *UploadRequest, expectedErrorRegEx string)
plumbing/protocol/packp/ulreq_encode_test.go:34
↓ 1 callers
Function
testWriter
(c *C, dest io.Writer, hash plumbing.Hash, t plumbing.ObjectType, content []byte)
plumbing/format/objfile/writer_test.go:34
↓ 1 callers
Method
timeToUint32
(t *time.Time)
plumbing/format/index/encoder.go:138
↓ 1 callers
Function
tokenizeExpression
tokenizeExpression aggregates a series of runes matching check predicate into a single string and provides given tokenType as token type
internal/revision/scanner.go:15
↓ 1 callers
Function
transformChildren
Returns the children of a tree as treenoders. Efficiency is key here.
plumbing/object/treenoder.go:98
↓ 1 callers
Function
transportWithCABundle
(transport *http.Transport, caBundle []byte)
plumbing/transport/http/common.go:187
↓ 1 callers
Function
transportWithInsecureTLS
(transport *http.Transport)
plumbing/transport/http/common.go:180
↓ 1 callers
Function
transportWithProxy
(transport *http.Transport, proxyURL *url.URL)
plumbing/transport/http/common.go:203
↓ 1 callers
Method
tryToDeltify
(indexMap map[plumbing.Hash]*deltaIndex, base, target *ObjectToPack)
plumbing/format/packfile/delta_selector.go:271
↓ 1 callers
Function
turnSpaceIntoLiteralSpace
(s string)
utils/merkletrie/difftree_test.go:218
↓ 1 callers
Method
undeltify
undeltify undeltifies an *ObjectToPack by retrieving the original object from the storer and resetting it.
plumbing/format/packfile/delta_selector.go:206
↓ 1 callers
Method
unmarshal
(s *format.Subsection)
config/modules.go:112
↓ 1 callers
Method
unmarshal
(s *format.Subsection)
config/branch.go:106
↓ 1 callers
Method
unmarshal
(s *format.Subsection)
config/url.go:40
↓ 1 callers
Method
unmarshal
(s *format.Subsection)
config/config.go:621
← previous
next →
1,701–1,800 of 4,185, ranked by callers