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
Method
Next
Next returns the next reference from the iterator, if one iterator reach io.EOF is removed and the next one is used.
plumbing/storer/reference.go:186
Method
Next
()
plumbing/storer/object.go:103
Method
Next
Next returns the next object from the iterator. If the iterator has reached the end it will return io.EOF as an error. If the object can't be found in
plumbing/storer/object.go:146
Method
Next
Next returns the next object from the iterator. If the iterator has reached the end it will return io.EOF as an error. If the object is retrieved succ
plumbing/storer/object.go:193
Method
Next
Next returns the next object from the iterator, if one iterator reach io.EOF is removed and the next one is used.
plumbing/storer/object.go:233
Method
Next
()
plumbing/object/tree.go:380
Method
Next
Next moves the iterator to the next commit and returns a pointer to it. If there are no more commits, it returns io.EOF.
plumbing/object/commit.go:482
Method
Next
()
plumbing/object/commitgraph/commitnode.go:48
Method
Next
()
plumbing/format/idxfile/idxfile.go:277
Method
Next
()
plumbing/format/idxfile/idxfile.go:319
Method
NumChildren
()
utils/merkletrie/internal/fsnoder/file.go:54
Method
NumChildren
()
utils/merkletrie/internal/fsnoder/dir.go:111
Method
NumChildren
()
utils/merkletrie/index/node.go:93
Method
NumChildren
NumChildren returns the number of children the final noder of the path has.
utils/merkletrie/noder/path.go:68
Method
NumChildren
()
utils/merkletrie/noder/noder_test.go:27
Method
NumChildren
()
utils/merkletrie/filesystem/node.go:85
Method
NumChildren
len(t.tree.Entries) != the number of elements walked by treewalker for some reason because of empty directories, submodules, etc, so we have to walk h
plumbing/object/treenoder.go:135
Method
NumParents
()
plumbing/object/commitgraph/commitnode_graph.go:86
Method
NumParents
()
plumbing/object/commitgraph/commitnode_object.go:58
Method
ObjectPacks
()
storage/memory/storage.go:189
Method
ObjectPacks
()
storage/filesystem/object.go:886
Method
ObjectPacks
ObjectPacks returns the list of availables packfiles
storage/filesystem/dotgit/dotgit.go:221
Method
OnFooter
(h plumbing.Hash)
plumbing/format/packfile/parser_test.go:205
Method
OnFooter
OnFooter implements packfile.Observer interface.
plumbing/format/idxfile/writer.go:83
Method
OnHeader
(count uint32)
plumbing/format/packfile/parser_test.go:178
Method
OnHeader
OnHeader implements packfile.Observer interface.
plumbing/format/idxfile/writer.go:65
Method
OnInflatedObjectContent
(h plumbing.Hash, pos int64, crc uint32, _ []byte)
plumbing/format/packfile/parser_test.go:195
Method
OnInflatedObjectContent
OnInflatedObjectContent implements packfile.Observer interface.
plumbing/format/idxfile/writer.go:77
Method
OnInflatedObjectHeader
(otype plumbing.ObjectType, objSize int64, pos int64)
plumbing/format/packfile/parser_test.go:184
Method
OnInflatedObjectHeader
OnInflatedObjectHeader implements packfile.Observer interface.
plumbing/format/idxfile/writer.go:72
Function
OpenChainOrFileIndex
OpenChainOrFileIndex expects a billy.Filesystem representing a .git directory. It will first attempt to read a commit-graph index file, before trying
plumbing/format/commitgraph/v2/chain.go:48
Method
PackRefs
()
storage/memory/storage.go:293
Method
PackRefs
PackRefs honors the storer.ReferenceStorer interface.
storage/transactional/reference.go:107
Method
PackRefs
()
storage/filesystem/reference.go:42
Method
PackRefs
PackRefs packs all loose refs into the packed-refs file. This implementation only works under the assumption that the view of the file system won't b
storage/filesystem/dotgit/dotgit.go:1046
Method
PackfileWriter
()
remote_test.go:373
Method
PackfileWriter
PackfileWriter honors storage.PackfileWriter.
storage/transactional/storage.go:98
Method
PackfileWriter
()
storage/filesystem/object.go:98
Method
ParentHashes
()
plumbing/object/commitgraph/commitnode_graph.go:112
Method
ParentHashes
()
plumbing/object/commitgraph/commitnode_object.go:77
Method
ParentNode
(i int)
plumbing/object/commitgraph/commitnode_graph.go:94
Method
ParentNode
(i int)
plumbing/object/commitgraph/commitnode_object.go:66
Method
ParentNodes
()
plumbing/object/commitgraph/commitnode_graph.go:90
Method
ParentNodes
()
plumbing/object/commitgraph/commitnode_object.go:62
Method
Patch
Patch returns a Patch with all the changes in chunks. This representation can be used to create several diff outputs.
plumbing/object/change.go:149
Method
Patch
Patch returns the Patch between the actual commit and the provided one. NOTE: Since version 5.1.0 the renames are correctly handled, the settings use
plumbing/object/commit.go:121
Method
Path
()
plumbing/object/patch.go:164
Method
Path
()
plumbing/format/diff/unified_encoder_test.go:1059
Method
Peek
()
blame.go:527
Method
Peek
()
blame.go:544
Method
Peek
Peek returns the most recently added CommitNode from the stack without removing it
plumbing/object/commitgraph/commitnode_walker_helper.go:40
Method
Peek
Peek returns top element on the heap without removing it, or nil if heap is empty. Second return parameter is true, unless the heap was empty and ther
plumbing/object/commitgraph/commitnode_walker_helper.go:74
Method
Pop
()
blame.go:519
Method
Pop
()
blame.go:541
Method
Pop
Pop pops the most recently added CommitNode from the stack
plumbing/object/commitgraph/commitnode_walker_helper.go:30
Method
Pop
Pop removes top element on heap and returns it, or nil if heap is empty. Second return parameter is true, unless the heap was empty and there was noth
plumbing/object/commitgraph/commitnode_walker_helper.go:64
Method
Push
Push performs a push to the remote. Returns NoErrAlreadyUpToDate if the remote was already up-to-date, from the remote named as FetchOptions.RemoteNam
repository.go:1214
Method
Push
(x any)
blame.go:518
Method
Push
(c *queueItem)
blame.go:538
Method
Put
Put puts a buffer into the cache. If the buffer is already in the cache, it will be marked as used. Otherwise, it will be inserted. Buffer might be ev
plumbing/cache/common.go:33
Method
Read
(p []byte)
utils/sync/zlib_test.go:67
Method
Read
(bs []byte)
utils/ioutil/common.go:112
Method
Read
(p []byte)
storage/filesystem/dotgit/writers.go:191
Method
Read
([]byte)
plumbing/protocol/packp/sideband/demux_test.go:73
Method
Read
(p []byte)
plumbing/object/tree_test.go:203
Method
Read
(p []byte)
plumbing/format/packfile/scanner.go:432
Method
Read
([]byte)
plumbing/format/pktline/scanner_test.go:165
Method
ReadDir
(path string)
storage/filesystem/dotgit/repository_filesystem.go:85
Method
ReadObject
ReadObject returns a reader for the object content and an error
plumbing/format/packfile/scanner.go:322
Method
Reader
()
storage/filesystem/dotgit/reader.go:26
Method
Reader
()
plumbing/cache/object_test.go:186
Method
Reader
()
plumbing/object/tree_test.go:154
Method
Reader
()
plumbing/object/tree_test.go:189
Method
Reader
Reader implements the plumbing.EncodedObject interface.
plumbing/format/packfile/fsobject.go:52
Method
Reader
()
plumbing/format/packfile/object_pack_test.go:39
Method
ReceivePack
(ctx context.Context, req *packp.ReferenceUpdateRequest)
plumbing/transport/http/receive_pack.go:35
Method
ReceivePack
(ctx context.Context, req *packp.ReferenceUpdateRequest)
plumbing/transport/internal/common/common.go:326
Method
ReceivePack
(ctx context.Context, req *packp.ReferenceUpdateRequest)
plumbing/transport/server/server.go:238
Method
Reference
(n plumbing.ReferenceName)
storage/memory/storage.go:271
Method
Reference
(n plumbing.ReferenceName)
storage/filesystem/reference.go:21
Method
RemoveReference
(n plumbing.ReferenceName)
storage/memory/storage.go:297
Method
RemoveReference
(n plumbing.ReferenceName)
storage/filesystem/reference.go:34
Method
Rollback
()
storage/memory/storage.go:241
Method
SetAuth
(r *http.Request)
plumbing/transport/http/common.go:352
Method
SetAuth
(transport.AuthMethod)
plumbing/transport/server/server.go:91
Method
SetConfig
SetConfig marshall and writes the repository config. In a filesystem backed repository this means write the `.git/config`. This function should be cal
repository.go:559
Method
SetConfig
(cfg *config.Config)
storage/memory/storage.go:51
Method
SetConfig
(cfg *config.Config)
storage/filesystem/config.go:29
Method
SetEncodedObject
(obj plumbing.EncodedObject)
storage/memory/storage.go:97
Method
SetEncodedObject
(obj plumbing.EncodedObject)
storage/memory/storage.go:214
Method
SetEncodedObject
SetEncodedObject adds a new object to the storage.
storage/filesystem/object.go:119
Method
SetEncodedObject
SetEncodedObject saves an object into the storage, the object should be create with the NewEncodedObject, method, and file if the type is not supporte
plumbing/storer/object.go:25
Method
SetEncodedObject
(obj plumbing.EncodedObject)
plumbing/storer/object_test.go:132
Method
SetIndex
(idx *index.Index)
storage/memory/storage.go:72
Method
SetIndex
(idx *index.Index)
storage/filesystem/index.go:16
Method
SetReference
(ref *plumbing.Reference)
storage/memory/storage.go:248
Method
SetReference
(ref *plumbing.Reference)
storage/filesystem/reference.go:13
Method
SetShallow
(commits []plumbing.Hash)
storage/memory/storage.go:304
Method
SetShallow
SetShallow save the shallows in the shallow file in the .git folder as one commit per line represented by 40-byte hexadecimal object terminated by a n
storage/filesystem/shallow.go:21
Method
SetSize
(int64)
storage/filesystem/dotgit/reader.go:66
← previous
next →
2,201–2,300 of 4,185, ranked by callers