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
↓ 5 callers
Function
NewEncoder
NewEncoder returns a new encoder that writes to w.
plumbing/format/index/encoder.go:30
↓ 5 callers
Function
NewIter
NewIter returns a new relative iterator using the provider noder as its unnamed root. When iterating, all returned paths will be relative to node.
utils/merkletrie/iter.go:70
↓ 5 callers
Function
NewObjectStorage
NewObjectStorage returns a new EncodedObjectStorer based on a base storer and a temporal storer.
storage/transactional/object.go:16
↓ 5 callers
Method
NewRepositoryWithEmptyWorktree
NewRepositoryWithEmptyWorktree returns a new repository using the .git folder from the fixture but without a empty memfs worktree, the index and the m
common_test.go:77
↓ 5 callers
Function
NewUnexpectedError
(err error)
plumbing/error.go:25
↓ 5 callers
Function
NewWriter
NewWriter returns a new Writer writing to w. The returned Writer implements io.WriteCloser. Close should be called when finished with the Writer. Clo
plumbing/format/objfile/writer.go:34
↓ 5 callers
Function
NonEmptyReader
NonEmptyReader takes a reader and returns it if it is not empty, or `ErrEmptyReader` if it is empty. If there is an error when reading the first byte
utils/ioutil/common.go:25
↓ 5 callers
Method
NumChildren
NumChildren returns the number of children this element has. This method is an optimization: the number of children is easily calculated as the lengt
utils/merkletrie/noder/noder.go:55
↓ 5 callers
Method
PatchContext
Patch returns a Patch with all the file changes in chunks. This representation can be used to create several diff outputs. If context expires, an non-
plumbing/object/change.go:94
↓ 5 callers
Function
PutZlibReader
PutZlibReader puts z back into its sync.Pool, first closing the reader. The Byte slice dictionary is also put back into its sync.Pool.
utils/sync/zlib.go:54
↓ 5 callers
Function
ReadAttributes
ReadAttributes reads patterns and attributes from the gitattributes format.
plumbing/format/gitattributes/attributes.go:91
↓ 5 callers
Function
ReadHash
ReadHash reads a plumbing.Hash from r
utils/binary/read.go:143
↓ 5 callers
Function
ReadUntil
ReadUntil reads from r untin delim is found
utils/binary/read.go:27
↓ 5 callers
Method
Reference
Reference honors the storer.ReferenceStorer interface.
storage/transactional/reference.go:60
↓ 5 callers
Method
SetHostKeyCallback
SetHostKeyCallback sets the field HostKeyCallback in the given cfg. If HostKeyCallback is empty a default callback is created using NewKnownHostsCallb
plumbing/transport/ssh/auth_method.go:303
↓ 5 callers
Method
SetReference
SetReference honors the storer.ReferenceStorer interface.
storage/transactional/reference.go:32
↓ 5 callers
Method
SetUpSuite
(c *C)
plumbing/transport/ssh/upload_pack_test.go:36
↓ 5 callers
Method
Stats
()
plumbing/object/patch.go:134
↓ 5 callers
Method
StdoutPipe
StdoutPipe returns a pipe that will be connected to the command's standard output when the command starts. It should not be called after Start.
plumbing/transport/internal/common/common.go:64
↓ 5 callers
Method
Step
Step returns the path to the next node in the trie, descending deeper into it if needed, and nil. If there are no more nodes in the trie, it returns n
utils/merkletrie/iter.go:129
↓ 5 callers
Method
String
String generates the capabilities strings, the capabilities are sorted in insertion order
plumbing/protocol/packp/capability/list.go:180
↓ 5 callers
Method
Strings
Strings dump a reference as a [2]string
plumbing/reference.go:283
↓ 5 callers
Method
Tree
Tree returns the Tree from the commit.
plumbing/object/commit.go:91
↓ 5 callers
Function
UpdateServerInfo
UpdateServerInfo updates the server info files in the repository. It generates a list of available refs for the repository. Used by git http transpor
plumbing/serverinfo/serverinfo.go:20
↓ 5 callers
Method
Verify
Verify performs PGP verification of the tag with a provided armored keyring and returns openpgp.Entity associated with verifying key on success.
plumbing/object/tag.go:260
↓ 5 callers
Function
commitSignKey
(c *C, decrypt bool)
worktree_commit_test.go:543
↓ 5 callers
Function
createCommit
(c *C, r *Repository)
repository_test.go:85
↓ 5 callers
Function
getIndexFromIdxFile
(r io.Reader)
plumbing/format/packfile/packfile_test.go:238
↓ 5 callers
Method
key
()
plumbing/object/rename.go:763
↓ 5 callers
Function
newChange
The following functions transform changes types form the merkletrie package to changes types from this package.
plumbing/object/change_adaptor.go:14
↓ 5 callers
Function
newObject
(t plumbing.ObjectType, cont []byte)
plumbing/format/packfile/common_test.go:27
↓ 5 callers
Method
objectAtOffset
(offset int64, hash plumbing.Hash)
plumbing/format/packfile/packfile.go:191
↓ 5 callers
Method
objectHeaderAtOffset
(offset int64)
plumbing/format/packfile/packfile.go:117
↓ 5 callers
Method
score
score computes the similarity score between this index and another one. A region of a file is defined as a line in a text file or a fixed-size block i
plumbing/object/rename.go:656
↓ 5 callers
Method
testDecoderErrorMatches
(c *C, input io.Reader, pattern string)
plumbing/protocol/packp/updreq_decode_test.go:263
↓ 5 callers
Method
tree
(c *C, h plumbing.Hash)
plumbing/object/change_adaptor_test.go:30
↓ 5 callers
Function
validIfCommit
(ignored plumbing.Hash)
plumbing/object/commit_walker_bfs_filtered_test.go:47
↓ 4 callers
Method
AddRecursiveDelete
AddRecursiveDelete adds the required changes to delete all the file-like noders found in root, recursively.
utils/merkletrie/change.go:117
↓ 4 callers
Method
AddRecursiveInsert
AddRecursiveInsert adds the required changes to insert all the file-like noders found in root, recursively.
utils/merkletrie/change.go:111
↓ 4 callers
Method
AssertAncestor
AssertAncestor validates if the first rev is ancestor of the second one
plumbing/object/merge_base_test.go:157
↓ 4 callers
Method
Begin
Begin starts a transaction.
plumbing/storer/object.go:60
↓ 4 callers
Method
Checksum
Checksum returns the checksum of the packfile
plumbing/format/packfile/scanner.go:371
↓ 4 callers
Method
Clear
Clear clears every object from the cache.
plumbing/cache/common.go:25
↓ 4 callers
Method
Close
()
plumbing/storer/reference.go:35
↓ 4 callers
Function
ComputeHash
ComputeHash compute the hash for a given ObjectType and content
plumbing/hash.go:19
↓ 4 callers
Method
Count
Count returns the number of entries in the index.
plumbing/format/idxfile/idxfile.go:37
↓ 4 callers
Method
Decode
Decode reads from the given reader and decodes a report-status message. It does not read more input than what is needed to fill the report status.
plumbing/protocol/packp/report_status.go:62
↓ 4 callers
Method
Decode
(reader io.Reader)
plumbing/protocol/packp/shallowupd.go:22
↓ 4 callers
Method
Decode
Decode transforms a plumbing.EncodedObject into a Blob struct.
plumbing/object/blob.go:57
↓ 4 callers
Function
DecodeBlob
DecodeObject decodes an encoded object into a *Blob.
plumbing/object/blob.go:32
↓ 4 callers
Function
DecodeTree
DecodeTree decodes an encoded object into a *Tree and associates it to the given object storer.
plumbing/object/tree.go:57
↓ 4 callers
Function
DiffTreeContext
DiffTreeContext calculates the list of changes between two merkletries. It uses the provided hashEqual callback to compare noders. Error will be retur
utils/merkletrie/difftree.go:277
↓ 4 callers
Function
Do
Do computes the (line oriented) modifications needed to turn the src string into the dst string. The underlying algorithm is Meyers, its complexity is
utils/diff/diff.go:20
↓ 4 callers
Method
Encode
Encode encodes the request into the writer.
plumbing/protocol/packp/gitproto.go:46
↓ 4 callers
Method
Encode
(w io.Writer)
plumbing/protocol/packp/shallowupd.go:76
↓ 4 callers
Function
ForEachIterator
ForEachIterator is a helper function to build iterators without need to rewrite the same ForEach function each time.
plumbing/storer/object.go:269
↓ 4 callers
Method
GetAll
GetAll returns all possible values for the same key.
plumbing/format/config/option.go:68
↓ 4 callers
Function
GetBufioReader
GetBufioReader returns a *bufio.Reader that is managed by a sync.Pool. Returns a bufio.Reader that is resetted with reader and ready for use. After u
utils/sync/bufio.go:20
↓ 4 callers
Method
GetHashByIndex
GetHashByIndex gets the hash given an index in the commit graph
plumbing/format/commitgraph/v2/commitgraph.go:45
↓ 4 callers
Method
Glob
Glob returns the all entries matching pattern or nil if there is no matching entry. The syntax of patterns is the same as in filepath.Glob.
plumbing/format/index/index.go:97
↓ 4 callers
Method
HasGenerationV2
HasGenerationV2 returns true if the commit graph has the corrected commit date data
plumbing/format/commitgraph/v2/commitgraph.go:52
↓ 4 callers
Function
InitWithOptions
(s storage.Storer, worktree billy.Filesystem, options InitOptions)
repository.go:94
↓ 4 callers
Method
Initialize
Initialize creates all the folder scaffolding.
storage/filesystem/dotgit/dotgit.go:126
↓ 4 callers
Function
InstallProtocol
InstallProtocol adds or modifies an existing protocol.
plumbing/transport/client/client.go:25
↓ 4 callers
Method
IsExactSHA1
IsExactSHA1 returns true if the source is a SHA1 hash.
config/refspec.go:63
↓ 4 callers
Method
Len
()
plumbing/object/change.go:121
↓ 4 callers
Method
List
(o *ListOptions)
remote.go:1333
↓ 4 callers
Function
LoadGlobalPatterns
LoadGlobalPatterns loads gitattributes patterns and attributes from the gitattributes file declared in a user's ~/.gitconfig file. If the ~/.gitconfi
plumbing/format/gitattributes/dir.go:110
↓ 4 callers
Method
Match
Match matches patterns in the order of priorities.
plumbing/format/gitattributes/matcher.go:6
↓ 4 callers
Method
Move
Move moves or rename a file in the worktree and the index, directories are not supported.
worktree_status.go:684
↓ 4 callers
Function
NewClient
NewClient returns the appropriate client among of the set of known protocols: http://, https://, ssh:// and file://. See `InstallProtocol` to add or m
plumbing/transport/client/client.go:37
↓ 4 callers
Function
NewClient
NewClient creates a new client using the given Commander.
plumbing/transport/internal/common/common.go:85
↓ 4 callers
Function
NewCommitIterBSF
NewCommitIterBSF returns a CommitIter that walks the commit history, starting at the given commit and visiting its parents in pre-order. The given cal
plumbing/object/commit_walker_bfs.go:23
↓ 4 callers
Function
NewCommitIterCTime
NewCommitIterCTime returns a CommitIter that walks the commit history, starting at the given commit and visiting its parents while preserving Committe
plumbing/object/commit_walker_ctime.go:26
↓ 4 callers
Function
NewConfigStorage
NewConfigStorage returns a new ConfigStorer based on a base storer and a temporal storer.
storage/transactional/config.go:15
↓ 4 callers
Function
NewContextReadCloser
NewContextReadCloser as NewContextReader but with io.Closer interface.
utils/ioutil/common.go:155
↓ 4 callers
Function
NewEncoder
NewEncoder returns a new stream encoder that writes to w.
plumbing/format/idxfile/encoder.go:17
↓ 4 callers
Function
NewFromOSFileMode
NewFromOSFileMode returns the FileMode used by git to represent the provided file system modes and a nil error on success. If the file system mode ca
plumbing/filemode/filemode.go:75
↓ 4 callers
Function
NewGraphCommitNodeIndex
NewGraphCommitNodeIndex returns CommitNodeIndex implementation that uses commit-graph files as backing storage and falls back to object storage when n
plumbing/object/commitgraph/commitnode_graph.go:39
↓ 4 callers
Function
NewMatcher
NewMatcher constructs a new matcher. Patterns must be given in the order of increasing priority. That is the most generic settings files first, then t
plumbing/format/gitattributes/matcher.go:15
↓ 4 callers
Function
NewMemoryIndex
NewMemoryIndex returns an instance of a new MemoryIndex.
plumbing/format/idxfile/idxfile.go:67
↓ 4 callers
Function
NewModules
NewModules returns a new empty Modules
config/modules.go:32
↓ 4 callers
Function
NewPackfileIter
NewPackfileIter returns a new EncodedObjectIter for the provided packfile and object type. Packfile and index file will be closed after they're used.
storage/filesystem/object.go:723
↓ 4 callers
Function
NewPackfileWithCache
NewPackfileWithCache creates a new Packfile with the given object cache. If the filesystem is provided, the packfile will return FSObjects, otherwise
plumbing/format/packfile/packfile.go:51
↓ 4 callers
Function
NewParserWithStorage
NewParserWithStorage creates a new Parser. The scanner source must either be seekable or a storage must be provided.
plumbing/format/packfile/parser.go:67
↓ 4 callers
Function
NewReadCloserWithCloser
NewReadCloserWithCloser creates an `io.ReadCloser` with the given `io.ReaderCloser` and `io.Closer` that ensures that the closer is closed on close
utils/ioutil/common.go:76
↓ 4 callers
Method
NewRepository
NewRepository returns a new repository using the .git folder, if the fixture is tagged as worktree the filesystem from fixture is used, otherwise a ne
common_test.go:50
↓ 4 callers
Function
NewRootNode
NewRootNode returns the root node of a computed tree from a index.Index,
utils/merkletrie/index/node.go:26
↓ 4 callers
Function
NewSSHAgentAuth
NewSSHAgentAuth returns a PublicKeysCallback based on a SSH agent, it opens a pipe with the SSH agent and uses the pipe as the implementer of the publ
plumbing/transport/ssh/auth_method.go:185
↓ 4 callers
Function
NewStorage
NewStorage returns a new Storage based on two repositories, base is the base repository where the read operations are read and temporal is were all th
storage/transactional/storage.go:42
↓ 4 callers
Function
NewStorageWithOptions
NewStorageWithOptions returns a new Storage with extra options, backed by a given `fs.Filesystem` and cache.
storage/filesystem/storage.go:53
↓ 4 callers
Function
NewUnifiedEncoder
NewUnifiedEncoder returns a new UnifiedEncoder that writes to w.
plumbing/format/diff/unified_encoder.go:50
↓ 4 callers
Function
NewUploadPackResponseWithPackfile
NewUploadPackResponseWithPackfile creates a new UploadPackResponse instance, and sets its packfile reader.
plumbing/protocol/packp/uppackresp.go:44
↓ 4 callers
Function
NewWriteCloser
NewWriteCloser creates an `io.WriteCloser` with the given `io.Writer` and `io.Closer`.
utils/ioutil/common.go:91
↓ 4 callers
Method
NumParents
NumParents returns the number of parents in a commit.
plumbing/object/commitgraph/commitnode.go:22
↓ 4 callers
Method
Object
Object returns an Object with the given hash. If not found plumbing.ErrObjectNotFound is returned.
repository.go:1476
↓ 4 callers
Method
Objects
Objects returns a slice with the hashes of objects found under the .git/objects/ directory.
storage/filesystem/dotgit/dotgit.go:398
↓ 4 callers
Method
ParentNode
ParentNode returns the ith parent of a commit.
plumbing/object/commitgraph/commitnode.go:26
↓ 4 callers
Function
PatchDelta
PatchDelta returns the result of applying the modification deltas in delta to src. An error will be returned if delta is corrupted (ErrDeltaLen) or an
plumbing/format/packfile/patch_delta.go:91
↓ 4 callers
Function
PlainOpenWithOptions
PlainOpenWithOptions opens a git repository from the given path with specific options. See PlainOpen for more info.
repository.go:303
← previous
next →
401–500 of 4,185, ranked by callers