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
Function
Dst
Dst computes and returns the destination text.
utils/diff/diff.go:42
↓ 1 callers
Method
Empty
()
plumbing/object/patch.go:172
↓ 1 callers
Method
Encode
Encode encodes an UploadPackResponse.
plumbing/protocol/packp/uppackresp.go:74
↓ 1 callers
Method
Encode
Encode encodes the UploadHaves into the Writer. If flush is true, a flush command will be encoded at the end of the writer content.
plumbing/protocol/packp/uppackreq.go:73
↓ 1 callers
Method
Encode
Encode writes the ReferenceUpdateRequest encoding to the stream.
plumbing/protocol/packp/updreq_encode.go:13
↓ 1 callers
Method
Encode
(w io.Writer)
plumbing/object/patch.go:128
↓ 1 callers
Method
Encode
Encode transforms a Blob into a plumbing.EncodedObject.
plumbing/object/blob.go:70
↓ 1 callers
Method
Encode
Encode creates a packfile containing all the objects referenced in hashes and writes it to the writer in the Encoder. `packWindow` specifies the size
plumbing/format/packfile/encoder.go:49
↓ 1 callers
Method
EncodeWithoutSignature
EncodeWithoutSignature export a Tag into a plumbing.EncodedObject without the signature (correspond to the payload of the PGP signature).
plumbing/object/tag.go:148
↓ 1 callers
Method
EncodeWithoutSignature
EncodeWithoutSignature export a Commit into a plumbing.EncodedObject without the signature (correspond to the payload of the PGP signature).
plumbing/object/commit.go:283
↓ 1 callers
Method
EncodedObject
EncodedObject honors the storer.EncodedObjectStorer interface.
storage/transactional/object.go:46
↓ 1 callers
Method
EncodedObjectSize
EncodedObjectSize honors the storer.EncodedObjectStorer interface.
storage/transactional/object.go:36
↓ 1 callers
Method
Entries
Entries implements the Index interface.
plumbing/format/idxfile/idxfile.go:229
↓ 1 callers
Method
Error
()
plumbing/error.go:17
↓ 1 callers
Method
Error
Error returns the error, if any.
plumbing/protocol/packp/report_status.go:149
↓ 1 callers
Method
Error
Error implements the error interface.
plumbing/format/pktline/error.go:27
↓ 1 callers
Function
ExecuteOnPath
(c *C, path string, cmds ...string)
repository_test.go:3313
↓ 1 callers
Method
FetchContext
FetchContext fetches references along with the objects necessary to complete their histories, from the remote named as FetchOptions.RemoteName. Retur
repository.go:1198
↓ 1 callers
Method
FilePatches
()
plumbing/object/patch.go:120
↓ 1 callers
Function
FindScpLikeComponents
FindScpLikeComponents returns the user, host, port and path of the given SCP-like URL.
internal/url/url.go:28
↓ 1 callers
Method
Finished
()
plumbing/format/idxfile/writer.go:60
↓ 1 callers
Method
ForEach
ForEach call the cb function for each reference contained on this iter until an error happens or the end of the iter is reached. If ErrStop is sent th
plumbing/storer/reference.go:204
↓ 1 callers
Method
ForEach
ForEach call the cb function for each object contained on this iter until an error happens or the end of the iter is reached. If ErrStop is sent the i
plumbing/storer/object.go:163
↓ 1 callers
Method
ForEach
ForEach call the cb function for each object contained on this iter until an error happens or the end of the iter is reached. If ErrStop is sent the i
plumbing/storer/object.go:251
↓ 1 callers
Method
ForEach
ForEach call the cb function for each tree contained on this iter until an error happens or the end of the iter is reached. If ErrStop is sent the ite
plumbing/object/tree.go:537
↓ 1 callers
Method
ForEach
ForEach call the cb function for each object contained on this iter until an error happens or the end of the iter is reached. If ErrStop is sent the i
plumbing/object/object.go:207
↓ 1 callers
Method
ForEach
ForEach call the cb function for each blob contained on this iter until an error happens or the end of the iter is reached. If ErrStop is sent the ite
plumbing/object/blob.go:131
↓ 1 callers
Method
ForEachObjectHash
(fun func(plumbing.Hash) error)
storage/filesystem/object.go:866
↓ 1 callers
Method
Generate
()
plumbing/format/diff/unified_encoder.go:193
↓ 1 callers
Method
Get
Get returns an object by its hash. It marks the object as used. If the object is not in the cache, (nil, false) will be returned.
plumbing/cache/object_lru.go:80
↓ 1 callers
Method
Get
Get returns a buffer by its key. It marks the buffer as used. If the buffer is not in the cache, (nil, false) will be returned.
plumbing/cache/buffer_lru.go:77
↓ 1 callers
Method
GetIndexByHash
GetIndexByHash gets the index in the commit graph from commit hash, if available
plumbing/format/commitgraph/memory.go:28
↓ 1 callers
Method
GetIndexByHash
GetIndexByHash gets the index in the commit graph from commit hash, if available
plumbing/format/commitgraph/v2/memory.go:31
↓ 1 callers
Method
GoString
()
plumbing/format/config/section.go:42
↓ 1 callers
Method
GoString
()
plumbing/format/config/section.go:53
↓ 1 callers
Method
HasEncodedObject
HasEncodedObject honors the storer.EncodedObjectStorer interface.
storage/transactional/object.go:26
↓ 1 callers
Method
HasOption
HasOption checks if the Section has an Option with the given key.
plumbing/format/config/section.go:119
↓ 1 callers
Method
HasOption
HasOption checks if the Subsection has an Option with the given key.
plumbing/format/config/section.go:160
↓ 1 callers
Method
HasSection
HasSection checks if the Config has a section with the specified name.
plumbing/format/config/common.go:48
↓ 1 callers
Method
Hash
Hash returns the hash of the object data stream that has been read so far.
plumbing/format/objfile/reader.go:108
↓ 1 callers
Method
Hash
Hash returns the hash of the object data stream that has been written so far. It can be called before or after Close.
plumbing/format/objfile/writer.go:96
↓ 1 callers
Function
HashEqual
HashEqual returns if a and b have the same hash.
utils/merkletrie/internal/fsnoder/new.go:197
↓ 1 callers
Method
HashesWithPrefix
(prefix []byte)
repository.go:1863
↓ 1 callers
Method
ID
()
plumbing/object/commitgraph/commitnode_graph.go:74
↓ 1 callers
Method
ID
ID returns the ID of the packfile, which is the checksum at the end of it.
plumbing/format/packfile/packfile.go:512
↓ 1 callers
Method
Index
Index honors the storer.IndexStorer interface.
storage/transactional/index.go:36
↓ 1 callers
Method
Init
Init initialize the submodule reading the recorded Entry in the index for the given submodule
submodule.go:39
↓ 1 callers
Method
IsClean
IsClean is the HEAD of the submodule is equals to the expected commit
submodule.go:366
↓ 1 callers
Method
IsDelta
()
plumbing/format/packfile/object_pack.go:156
↓ 1 callers
Method
IsDir
IsDir returns if the final noder of the path is a directory-like noder.
utils/merkletrie/noder/path.go:57
↓ 1 callers
Method
IsDir
()
utils/merkletrie/filesystem/node.go:69
↓ 1 callers
Method
IsEmpty
IsEmpty returns whether a request is empty - it is empty if Haves are contained in the Wants, or if Wants length is zero, and we don't have any shallo
plumbing/protocol/packp/uppackreq.go:43
↓ 1 callers
Method
IsEmpty
IsEmpty returns true if the List is empty
plumbing/protocol/packp/capability/list.go:43
↓ 1 callers
Method
IsMalformed
IsMalformed returns if the FileMode should not appear in a git packfile, this is: Empty and any other mode not mentioned as a constant in this package
plumbing/filemode/filemode.go:127
↓ 1 callers
Method
IsRemote
IsRemote check if a reference is a remote
plumbing/reference.go:104
↓ 1 callers
Method
IsUnspecified
()
plumbing/format/gitattributes/attributes.go:41
↓ 1 callers
Method
IsUntracked
IsUntracked checks if file for given path is 'Untracked'
status.go:24
↓ 1 callers
Method
IsValueSet
()
plumbing/format/gitattributes/attributes.go:42
↓ 1 callers
Method
IterEncodedObjects
IterEncodedObjects honors the storer.EncodedObjectStorer interface.
storage/transactional/object.go:56
↓ 1 callers
Method
Less
Less defines a compare function to determine which commit is 'earlier' by: - First use Committer.When - If Committer.When are equal then use Author.Wh
plumbing/object/commit.go:438
↓ 1 callers
Method
ListContext
List the references on the remote repository. The provided Context must be non-nil. If the context expires before the operation is complete, an error
remote.go:1329
↓ 1 callers
Method
Load
Load returns a storer.Storer for given a transport.Endpoint by looking it up in the map. Returns transport.ErrRepositoryNotFound if the endpoint does
plumbing/transport/server/loader.go:57
↓ 1 callers
Function
LoadSystemPatterns
LoadSystemPatterns loads gitattributes patterns and attributes from the gitattributes file declared in a system's /etc/gitconfig file. If the etc/git
plumbing/format/gitattributes/dir.go:126
↓ 1 callers
Function
LoadSystemPatterns
LoadSystemPatterns loads gitignore patterns from the gitignore file declared in a system's /etc/gitconfig file. If the /etc/gitconfig file does not e
plumbing/format/gitignore/dir.go:142
↓ 1 callers
Method
LooseObjectTime
LooseObjectTime looks up the (m)time associated with the loose object (that is not in a pack file). Some implementations (e.g. without loose objects)
plumbing/storer/object.go:75
↓ 1 callers
Method
MarkWantWrite
MarkWantWrite marks this ObjectToPack as WantWrite to avoid delta chain loops
plumbing/format/packfile/object_pack.go:71
↓ 1 callers
Function
MatchAny
MatchAny returns true if any of the RefSpec match with the given ReferenceName.
config/refspec.go:147
↓ 1 callers
Function
MatchesScheme
MatchesScheme returns true if the given string matches a URL-like format scheme.
internal/url/url.go:16
↓ 1 callers
Method
MaximumNumberOfHashes
MaximumNumberOfHashes returns the maximum number of hashes within the index
plumbing/format/commitgraph/v2/commitgraph.go:54
↓ 1 callers
Method
Message
Message returns an optional message that can be at the top of the Patch representation.
plumbing/format/diff/patch.go:26
↓ 1 callers
Function
MustParseTime
(value string)
plumbing/object/object_test.go:206
↓ 1 callers
Method
Name
()
utils/merkletrie/noder/noder_test.go:24
↓ 1 callers
Function
NewChanges
NewChanges returns an empty list of changes.
utils/merkletrie/change.go:100
↓ 1 callers
Function
NewClient
NewClient returns a transport.Transport implementing a client with an embedded server.
plumbing/transport/server/server.go:39
↓ 1 callers
Function
NewColorConfig
NewColorConfig returns a new ColorConfig.
plumbing/format/diff/colorconfig.go:78
↓ 1 callers
Function
NewCommitAllIter
NewCommitAllIter returns a new commit iterator for all refs. repoStorer is a repo Storer used to get commits and references. commitIterFunc is a commi
plumbing/object/commit_walker.go:196
↓ 1 callers
Function
NewCommitFileIterFromIter
NewCommitFileIterFromIter is kept for compatibility, can be replaced with NewCommitPathIterFromIter
plumbing/object/commit_walker_path.go:32
↓ 1 callers
Function
NewCommitLimitIterFromIter
(commitIter CommitIter, limitOptions LogLimitOptions)
plumbing/object/commit_walker_limit.go:20
↓ 1 callers
Function
NewCommitNodeIterAuthorDateOrder
NewCommitNodeIterAuthorDateOrder returns a CommitNodeIter that walks the commit history, starting at the given commit and visiting its parents in Auth
plumbing/object/commitgraph/commitnode_walker_author_order.go:17
↓ 1 callers
Function
NewCommitNodeIterCTime
NewCommitNodeIterCTime returns a CommitNodeIter that walks the commit history, starting at the given commit and visiting its parents while preserving
plumbing/object/commitgraph/commitnode_walker_ctime.go:27
↓ 1 callers
Function
NewCommitNodeIterDateOrder
NewCommitNodeIterDateOrder returns a CommitNodeIter that walks the commit history, starting at the given commit and visiting its parents in Committer
plumbing/object/commitgraph/commitnode_walker_date_order.go:14
↓ 1 callers
Function
NewCommitNodeIterTopoOrder
NewCommitNodeIterTopoOrder returns a CommitNodeIter that walks the commit history, starting at the given commit and visiting its parents in a topologi
plumbing/object/commitgraph/commitnode_walker_topo_order.go:25
↓ 1 callers
Function
NewContextWriter
NewContextWriter wraps a writer to make it respect given Context. If there is a blocking write, the returned Writer will return whenever the context i
utils/ioutil/common.go:137
↓ 1 callers
Function
NewDelete
NewDelete returns a new Change representing the deletion of n.
utils/merkletrie/change.go:63
↓ 1 callers
Function
NewEncodedObject
(dir *DotGit, h plumbing.Hash, t plumbing.ObjectType, size int64)
storage/filesystem/dotgit/reader.go:72
↓ 1 callers
Method
NewEncodedObject
()
storage/filesystem/object.go:94
↓ 1 callers
Function
NewFSObject
NewFSObject creates a new filesystem object.
plumbing/format/packfile/fsobject.go:27
↓ 1 callers
Function
NewFilesystemLoader
NewFilesystemLoader creates a Loader that ignores host and resolves paths with a given base filesystem.
plumbing/transport/server/loader.go:30
↓ 1 callers
Function
NewInsert
NewInsert returns a new Change representing the insertion of n.
utils/merkletrie/change.go:60
↓ 1 callers
Function
NewMemoryIndex
NewMemoryIndex creates in-memory commit graph representation Deprecated: This package uses the wrong types for Generation and Index in CommitData. Us
plumbing/format/commitgraph/memory.go:21
↓ 1 callers
Function
NewNoteReferenceName
NewNoteReferenceName returns a reference name describing a note based on his short name.
plumbing/reference.go:71
↓ 1 callers
Function
NewReadCloserOnError
NewReadCloserOnError returns a io.ReadCloser that call the notify function when an unexpected (!io.EOF) error happens, after call Read function.
utils/ioutil/common.go:173
↓ 1 callers
Function
NewReaderUsingReaderAt
(r io.ReaderAt, offset int64)
utils/ioutil/common.go:118
↓ 1 callers
Function
NewRemoteReferenceName
NewRemoteReferenceName returns a reference name describing a remote branch based on his short name and the remote name.
plumbing/reference.go:77
↓ 1 callers
Method
NewRepositoryFromPackfile
(f *fixtures.Fixture)
common_test.go:102
↓ 1 callers
Function
NewWriterOnError
NewWriterOnError returns a io.Writer that call the notify function when an unexpected (!io.EOF) error happens, after call Write function.
utils/ioutil/common.go:193
↓ 1 callers
Method
Next
Next returns the path of the next node without descending deeper into the trie and nil. If there are no more entries in the trie it returns nil and i
utils/merkletrie/iter.go:121
↓ 1 callers
Method
Next
()
storage/filesystem/object.go:774
↓ 1 callers
Method
Next
()
storage/filesystem/object.go:819
↓ 1 callers
Method
Next
Next returns the next reference from the iterator. If the iterator has reached the end it will return io.EOF as an error.
plumbing/storer/reference.go:53
← previous
next →
1,101–1,200 of 4,185, ranked by callers