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
↓ 2 callers
Function
countLines
countLines returns the number of lines in a string à la git, this is The newline character is assumed to be '\n'. The empty string contains 0 lines.
common.go:9
↓ 2 callers
Method
createIndex
creatIndex returns a filled MemoryIndex with the information filled by the observer callbacks.
plumbing/format/idxfile/writer.go:93
↓ 2 callers
Function
createRepository
(dir string, isBare bool)
_examples/common_test.go:103
↓ 2 callers
Function
decodeFile
(data []byte)
utils/merkletrie/internal/fsnoder/new.go:142
↓ 2 callers
Function
decodeLEB128
Decodes a number encoded as an unsigned LEB128 at the start of some binary data and returns the decoded number and the rest of the stream. This must
plumbing/format/packfile/patch_delta.go:405
↓ 2 callers
Function
decodeLEB128ByteReader
(input io.ByteReader)
plumbing/format/packfile/patch_delta.go:421
↓ 2 callers
Method
decodeLine
(line, prefix []byte, expLen int)
plumbing/protocol/packp/shallowupd.go:67
↓ 2 callers
Method
decodeObjectAt
( p *packfile.Packfile, offset int64, )
storage/filesystem/object.go:482
↓ 2 callers
Function
decodeOffsetByteReader
(cmd byte, delta io.ByteReader)
plumbing/format/packfile/patch_delta.go:448
↓ 2 callers
Function
decodeSizeByteReader
(cmd byte, delta io.ByteReader)
plumbing/format/packfile/patch_delta.go:478
↓ 2 callers
Method
deltaOverDeltaCyclicTest
(c *C)
plumbing/format/packfile/encoder_test.go:196
↓ 2 callers
Method
deltaOverDeltaTest
(c *C)
plumbing/format/packfile/encoder_test.go:153
↓ 2 callers
Method
deltaSizeLimit
(targetSize int64, baseDepth int, targetDepth int, targetDelta bool)
plumbing/format/packfile/delta_selector.go:322
↓ 2 callers
Method
detectExactRenames
detectExactRenames detects matches files that were deleted with files that were added where the hash is the same on both. If there are multiple target
plumbing/object/rename.go:68
↓ 2 callers
Function
diffDelta
(index *deltaIndex, src []byte, tgt []byte)
plumbing/format/packfile/diff_delta.go:84
↓ 2 callers
Method
diffTreeWithStaging
(t *object.Tree, reverse bool)
worktree_status.go:227
↓ 2 callers
Method
dir
(baseName string)
plumbing/object/tree.go:167
↓ 2 callers
Method
doAdd
(path string, ignorePattern []gitignore.Pattern, skipStatus bool)
worktree_status.go:336
↓ 2 callers
Method
doAddDirectory
(idx *index.Index, s Status, directory string, ignorePattern []gitignore.Pattern)
worktree_status.go:277
↓ 2 callers
Method
doTestFetchNoErrAlreadyUpToDate
(c *C, url string)
remote_test.go:450
↓ 2 callers
Method
doUpdateFileToIndex
(e *index.Entry, filename string, h plumbing.Hash)
worktree_status.go:533
↓ 2 callers
Function
dotGitToOSFilesystems
(path string, detect bool)
repository.go:334
↓ 2 callers
Method
encode
(o plumbing.EncodedObject, includeSig bool)
plumbing/object/tag.go:152
↓ 2 callers
Method
encode
(o plumbing.EncodedObject, includeSig bool)
plumbing/object/commit.go:287
↓ 2 callers
Method
encodeOptions
(opts Options)
plumbing/format/config/encoder.go:62
↓ 2 callers
Method
entry
(o *ObjectToPack)
plumbing/format/packfile/encoder.go:84
↓ 2 callers
Method
entryHead
(typeNum plumbing.ObjectType, size int64)
plumbing/format/packfile/encoder.go:179
↓ 2 callers
Function
eventually
(c *C, condition func() bool)
remote_test.go:602
↓ 2 callers
Method
fetchTransport
(opts transportOptions)
plumbing/transport/http/transport.go:28
↓ 2 callers
Function
fileSimilarityIndex
(f *File)
plumbing/object/rename.go:557
↓ 2 callers
Method
fillOFSDeltaObjectContentWithBuffer
(obj plumbing.EncodedObject, offset int64, buf *bytes.Buffer)
plumbing/format/packfile/packfile.go:443
↓ 2 callers
Method
fillREFDeltaObjectContentWithBuffer
(obj plumbing.EncodedObject, ref plumbing.Hash, buf *bytes.Buffer)
plumbing/format/packfile/packfile.go:399
↓ 2 callers
Method
findPackedRefs
(recv refsRecv)
storage/filesystem/dotgit/dotgit.go:752
↓ 2 callers
Method
findPackedRefsInFile
(f billy.File, recv refsRecv)
storage/filesystem/dotgit/dotgit.go:730
↓ 2 callers
Function
finishNeeds
(curItem *queueItem)
blame.go:369
↓ 2 callers
Method
forEachObjectHash
(fun func(plumbing.Hash) error)
storage/filesystem/dotgit/dotgit.go:441
↓ 2 callers
Function
forEachReferenceIter
(iter bareReferenceIterator, cb func(*plumbing.Reference) error)
plumbing/storer/reference.go:142
↓ 2 callers
Method
genPackList
()
storage/filesystem/dotgit/dotgit.go:523
↓ 2 callers
Method
get
(pos int64)
plumbing/format/packfile/parser_test.go:210
↓ 2 callers
Method
getCRC32
(firstLevel, secondLevel int)
plumbing/format/idxfile/idxfile.go:166
↓ 2 callers
Function
getDelta
(index *deltaIndex, base, target plumbing.EncodedObject)
plumbing/format/packfile/diff_delta.go:35
↓ 2 callers
Method
getDeltaObjectSize
(buf *bytes.Buffer)
plumbing/format/packfile/packfile.go:129
↓ 2 callers
Function
getFileStatsFromFilePatches
(filePatches []fdiff.FilePatch)
plumbing/object/patch.go:289
↓ 2 callers
Function
getHaves
( localRefs []*plumbing.Reference, remoteRefStorer storer.ReferenceStorer, s storage.Storer, depth int, )
remote.go:921
↓ 2 callers
Method
getNextMemoryObject
(h *ObjectHeader)
plumbing/format/packfile/packfile.go:333
↓ 2 callers
Method
getNextObject
(h *ObjectHeader, hash plumbing.Hash)
plumbing/format/packfile/packfile.go:207
↓ 2 callers
Method
getObjectSize
(h *ObjectHeader)
plumbing/format/packfile/packfile.go:136
↓ 2 callers
Method
getObjectType
(h *ObjectHeader)
plumbing/format/packfile/packfile.go:154
↓ 2 callers
Method
getTreeFromCommitHash
(commit plumbing.Hash)
worktree.go:757
↓ 2 callers
Method
hasObject
(h plumbing.Hash)
storage/filesystem/dotgit/dotgit.go:500
↓ 2 callers
Function
hashBlock
(raw []byte, ptr int)
plumbing/format/packfile/delta_index.go:217
↓ 2 callers
Function
hashListAsMap
(l []plumbing.Hash)
storage/filesystem/object.go:858
↓ 2 callers
Function
incBytes
incBytes increments a byte slice, which involves incrementing the right-most byte, and following carry leftward. It makes a copy so that the provided
storage/filesystem/dotgit/dotgit.go:1244
↓ 2 callers
Method
init
()
plumbing/format/packfile/parser.go:160
↓ 2 callers
Function
isInvalid
isInvalid checks whether an error is an os.PathError with an os.ErrInvalid error inside. It also checks for the windows error, which is different from
plumbing/format/packfile/packfile.go:628
↓ 2 callers
Function
iterateCommitTrees
iterateCommitTrees iterate all reachable trees from the given commit
plumbing/revlist/revlist.go:178
↓ 2 callers
Function
loadPatterns
(fs billy.Filesystem, path string)
plumbing/format/gitattributes/dir.go:80
↓ 2 callers
Function
loadPatterns
(fs billy.Filesystem, path string)
plumbing/format/gitignore/dir.go:82
↓ 2 callers
Method
matches
(path string)
storage/filesystem/dotgit/dotgit_test.go:984
↓ 2 callers
Function
max
(a, b int)
plumbing/object/rename.go:392
↓ 2 callers
Function
min
(a, b int)
plumbing/object/rename.go:399
↓ 2 callers
Function
newChanges
(original merkletrie.Changes)
utils/merkletrie/difftree_test.go:136
↓ 2 callers
Function
newClient
(url string, insecure bool, cabundle []byte, proxyOpts transport.ProxyOptions)
remote.go:541
↓ 2 callers
Function
newDeltaObject
( offset, length int64, t plumbing.ObjectType, parent *objectInfo, )
plumbing/format/packfile/parser.go:588
↓ 2 callers
Function
newDeltaSelector
(s storer.EncodedObjectStorer)
plumbing/format/packfile/delta_selector.go:27
↓ 2 callers
Method
newEndpoint
(c *C, name string)
plumbing/transport/http/common_test.go:280
↓ 2 callers
Method
newEndpoint
(c *C, name string)
plumbing/transport/http/upload_pack_test.go:74
↓ 2 callers
Method
newEndpoint
(c *C, name string)
plumbing/transport/git/common_test.go:73
↓ 2 callers
Function
newIndexBuilder
(idx *index.Index)
worktree.go:1103
↓ 2 callers
Function
newIter
(root noder.Noder, base noder.Path)
utils/merkletrie/iter.go:81
↓ 2 callers
Function
newKnownHosts
(files ...string)
plumbing/transport/ssh/auth_method.go:237
↓ 2 callers
Function
newLogger
()
utils/trace/trace.go:18
↓ 2 callers
Function
newObjectWalker
(s storage.Storer)
object_walker.go:20
↓ 2 callers
Function
newPackWrite
(fs billy.Filesystem)
storage/filesystem/dotgit/writers.go:35
↓ 2 callers
Function
newPackfileIter
( fs billy.Filesystem, f billy.File, t plumbing.ObjectType, seen map[plumbing.Hash]struct{}, index idxfil
storage/filesystem/object.go:744
↓ 2 callers
Function
newParentgraphCommitNodeIter
(node CommitNode)
plumbing/object/commitgraph/commitnode.go:59
↓ 2 callers
Method
newSession
(s string, ep *transport.Endpoint, auth transport.AuthMethod)
plumbing/transport/internal/common/common.go:115
↓ 2 callers
Function
newSyncedReader
(w io.Writer, r io.ReadSeeker)
storage/filesystem/dotgit/writers.go:170
↓ 2 callers
Function
newUploadPackSession
(url string, auth transport.AuthMethod, insecure bool, cabundle []byte, proxyOpts transport.ProxyOptions)
remote.go:523
↓ 2 callers
Method
nextObjectHeader
nextObjectHeader returns the ObjectHeader for the next object in the reader without the Offset field
plumbing/format/packfile/scanner.go:189
↓ 2 callers
Function
not
(filter CommitFilter)
plumbing/object/commit_walker_bfs_filtered_test.go:53
↓ 2 callers
Function
objectEquals
(a plumbing.EncodedObject, b plumbing.EncodedObject)
storage/test/storage_suite.go:486
↓ 2 callers
Method
objectPackOpen
(hash plumbing.Hash, extension string)
storage/filesystem/dotgit/dotgit.go:267
↓ 2 callers
Method
objectPackPath
(hash plumbing.Hash, extension string)
storage/filesystem/dotgit/dotgit.go:263
↓ 2 callers
Method
objectPacks
()
storage/filesystem/dotgit/dotgit.go:234
↓ 2 callers
Method
objectsToPack
( hashes []plumbing.Hash, packWindow uint, )
plumbing/format/packfile/delta_selector.go:87
↓ 2 callers
Method
openAndLockPackedRefs
(doCreate bool)
storage/filesystem/dotgit/dotgit.go:817
↓ 2 callers
Method
packfile
(idx idxfile.Index, pack plumbing.Hash)
storage/filesystem/object.go:209
↓ 2 callers
Function
parseCommand
(b []byte)
plumbing/protocol/packp/updreq_decode.go:204
↓ 2 callers
Function
parseHash
(s string)
plumbing/protocol/packp/updreq_decode.go:230
↓ 2 callers
Method
parseTilde
parseTilde extract ~ statements
internal/revision/parser.go:335
↓ 2 callers
Function
patchDelta
(dst *bytes.Buffer, src, delta []byte)
plumbing/format/packfile/patch_delta.go:228
↓ 2 callers
Method
prepareRepositories
(c *C)
plumbing/transport/server/server_test.go:50
↓ 2 callers
Method
prepareRepository
(c *C, f *fixtures.Fixture, name string)
plumbing/transport/http/common_test.go:267
↓ 2 callers
Function
printErr
(err error)
_examples/merge_base/helpers.go:32
↓ 2 callers
Method
processLine
process lines from a packed-refs file
storage/filesystem/dotgit/dotgit.go:925
↓ 2 callers
Function
publicKey
(filePath string)
_examples/tag-create-push/main.go:67
↓ 2 callers
Method
push
(f *frame.Frame)
utils/merkletrie/iter.go:108
↓ 2 callers
Method
put
(pos int64, o observerObject)
plumbing/format/packfile/parser_test.go:219
↓ 2 callers
Function
reachableObjects
reachableObjects returns, using the callback function, all the reachable objects from the specified commit. To avoid to iterate over seen commits, if
plumbing/revlist/revlist.go:120
← previous
next →
901–1,000 of 4,185, ranked by callers