MCPcopy Create free account

hub / github.com/go-git/go-git / functions

Functions4,185 in github.com/go-git/go-git

↓ 5 callersFunctionNewEncoder
NewEncoder returns a new encoder that writes to w.
plumbing/format/index/encoder.go:30
↓ 5 callersFunctionNewIter
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 callersFunctionNewObjectStorage
NewObjectStorage returns a new EncodedObjectStorer based on a base storer and a temporal storer.
storage/transactional/object.go:16
↓ 5 callersMethodNewRepositoryWithEmptyWorktree
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 callersFunctionNewUnexpectedError
(err error)
plumbing/error.go:25
↓ 5 callersFunctionNewWriter
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 callersFunctionNonEmptyReader
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 callersMethodNumChildren
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 callersMethodPatchContext
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 callersFunctionPutZlibReader
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 callersFunctionReadAttributes
ReadAttributes reads patterns and attributes from the gitattributes format.
plumbing/format/gitattributes/attributes.go:91
↓ 5 callersFunctionReadHash
ReadHash reads a plumbing.Hash from r
utils/binary/read.go:143
↓ 5 callersFunctionReadUntil
ReadUntil reads from r untin delim is found
utils/binary/read.go:27
↓ 5 callersMethodReference
Reference honors the storer.ReferenceStorer interface.
storage/transactional/reference.go:60
↓ 5 callersMethodSetHostKeyCallback
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 callersMethodSetReference
SetReference honors the storer.ReferenceStorer interface.
storage/transactional/reference.go:32
↓ 5 callersMethodSetUpSuite
(c *C)
plumbing/transport/ssh/upload_pack_test.go:36
↓ 5 callersMethodStats
()
plumbing/object/patch.go:134
↓ 5 callersMethodStdoutPipe
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 callersMethodStep
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 callersMethodString
String generates the capabilities strings, the capabilities are sorted in insertion order
plumbing/protocol/packp/capability/list.go:180
↓ 5 callersMethodStrings
Strings dump a reference as a [2]string
plumbing/reference.go:283
↓ 5 callersMethodTree
Tree returns the Tree from the commit.
plumbing/object/commit.go:91
↓ 5 callersFunctionUpdateServerInfo
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 callersMethodVerify
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 callersFunctioncommitSignKey
(c *C, decrypt bool)
worktree_commit_test.go:543
↓ 5 callersFunctioncreateCommit
(c *C, r *Repository)
repository_test.go:85
↓ 5 callersFunctiongetIndexFromIdxFile
(r io.Reader)
plumbing/format/packfile/packfile_test.go:238
↓ 5 callersMethodkey
()
plumbing/object/rename.go:763
↓ 5 callersFunctionnewChange
The following functions transform changes types form the merkletrie package to changes types from this package.
plumbing/object/change_adaptor.go:14
↓ 5 callersFunctionnewObject
(t plumbing.ObjectType, cont []byte)
plumbing/format/packfile/common_test.go:27
↓ 5 callersMethodobjectAtOffset
(offset int64, hash plumbing.Hash)
plumbing/format/packfile/packfile.go:191
↓ 5 callersMethodobjectHeaderAtOffset
(offset int64)
plumbing/format/packfile/packfile.go:117
↓ 5 callersMethodscore
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 callersMethodtestDecoderErrorMatches
(c *C, input io.Reader, pattern string)
plumbing/protocol/packp/updreq_decode_test.go:263
↓ 5 callersMethodtree
(c *C, h plumbing.Hash)
plumbing/object/change_adaptor_test.go:30
↓ 5 callersFunctionvalidIfCommit
(ignored plumbing.Hash)
plumbing/object/commit_walker_bfs_filtered_test.go:47
↓ 4 callersMethodAddRecursiveDelete
AddRecursiveDelete adds the required changes to delete all the file-like noders found in root, recursively.
utils/merkletrie/change.go:117
↓ 4 callersMethodAddRecursiveInsert
AddRecursiveInsert adds the required changes to insert all the file-like noders found in root, recursively.
utils/merkletrie/change.go:111
↓ 4 callersMethodAssertAncestor
AssertAncestor validates if the first rev is ancestor of the second one
plumbing/object/merge_base_test.go:157
↓ 4 callersMethodBegin
Begin starts a transaction.
plumbing/storer/object.go:60
↓ 4 callersMethodChecksum
Checksum returns the checksum of the packfile
plumbing/format/packfile/scanner.go:371
↓ 4 callersMethodClear
Clear clears every object from the cache.
plumbing/cache/common.go:25
↓ 4 callersMethodClose
()
plumbing/storer/reference.go:35
↓ 4 callersFunctionComputeHash
ComputeHash compute the hash for a given ObjectType and content
plumbing/hash.go:19
↓ 4 callersMethodCount
Count returns the number of entries in the index.
plumbing/format/idxfile/idxfile.go:37
↓ 4 callersMethodDecode
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 callersMethodDecode
(reader io.Reader)
plumbing/protocol/packp/shallowupd.go:22
↓ 4 callersMethodDecode
Decode transforms a plumbing.EncodedObject into a Blob struct.
plumbing/object/blob.go:57
↓ 4 callersFunctionDecodeBlob
DecodeObject decodes an encoded object into a *Blob.
plumbing/object/blob.go:32
↓ 4 callersFunctionDecodeTree
DecodeTree decodes an encoded object into a *Tree and associates it to the given object storer.
plumbing/object/tree.go:57
↓ 4 callersFunctionDiffTreeContext
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 callersFunctionDo
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 callersMethodEncode
Encode encodes the request into the writer.
plumbing/protocol/packp/gitproto.go:46
↓ 4 callersMethodEncode
(w io.Writer)
plumbing/protocol/packp/shallowupd.go:76
↓ 4 callersFunctionForEachIterator
ForEachIterator is a helper function to build iterators without need to rewrite the same ForEach function each time.
plumbing/storer/object.go:269
↓ 4 callersMethodGetAll
GetAll returns all possible values for the same key.
plumbing/format/config/option.go:68
↓ 4 callersFunctionGetBufioReader
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 callersMethodGetHashByIndex
GetHashByIndex gets the hash given an index in the commit graph
plumbing/format/commitgraph/v2/commitgraph.go:45
↓ 4 callersMethodGlob
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 callersMethodHasGenerationV2
HasGenerationV2 returns true if the commit graph has the corrected commit date data
plumbing/format/commitgraph/v2/commitgraph.go:52
↓ 4 callersFunctionInitWithOptions
(s storage.Storer, worktree billy.Filesystem, options InitOptions)
repository.go:94
↓ 4 callersMethodInitialize
Initialize creates all the folder scaffolding.
storage/filesystem/dotgit/dotgit.go:126
↓ 4 callersFunctionInstallProtocol
InstallProtocol adds or modifies an existing protocol.
plumbing/transport/client/client.go:25
↓ 4 callersMethodIsExactSHA1
IsExactSHA1 returns true if the source is a SHA1 hash.
config/refspec.go:63
↓ 4 callersMethodLen
()
plumbing/object/change.go:121
↓ 4 callersMethodList
(o *ListOptions)
remote.go:1333
↓ 4 callersFunctionLoadGlobalPatterns
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 callersMethodMatch
Match matches patterns in the order of priorities.
plumbing/format/gitattributes/matcher.go:6
↓ 4 callersMethodMove
Move moves or rename a file in the worktree and the index, directories are not supported.
worktree_status.go:684
↓ 4 callersFunctionNewClient
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 callersFunctionNewClient
NewClient creates a new client using the given Commander.
plumbing/transport/internal/common/common.go:85
↓ 4 callersFunctionNewCommitIterBSF
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 callersFunctionNewCommitIterCTime
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 callersFunctionNewConfigStorage
NewConfigStorage returns a new ConfigStorer based on a base storer and a temporal storer.
storage/transactional/config.go:15
↓ 4 callersFunctionNewContextReadCloser
NewContextReadCloser as NewContextReader but with io.Closer interface.
utils/ioutil/common.go:155
↓ 4 callersFunctionNewEncoder
NewEncoder returns a new stream encoder that writes to w.
plumbing/format/idxfile/encoder.go:17
↓ 4 callersFunctionNewFromOSFileMode
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 callersFunctionNewGraphCommitNodeIndex
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 callersFunctionNewMatcher
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 callersFunctionNewMemoryIndex
NewMemoryIndex returns an instance of a new MemoryIndex.
plumbing/format/idxfile/idxfile.go:67
↓ 4 callersFunctionNewModules
NewModules returns a new empty Modules
config/modules.go:32
↓ 4 callersFunctionNewPackfileIter
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 callersFunctionNewPackfileWithCache
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 callersFunctionNewParserWithStorage
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 callersFunctionNewReadCloserWithCloser
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 callersMethodNewRepository
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 callersFunctionNewRootNode
NewRootNode returns the root node of a computed tree from a index.Index,
utils/merkletrie/index/node.go:26
↓ 4 callersFunctionNewSSHAgentAuth
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 callersFunctionNewStorage
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 callersFunctionNewStorageWithOptions
NewStorageWithOptions returns a new Storage with extra options, backed by a given `fs.Filesystem` and cache.
storage/filesystem/storage.go:53
↓ 4 callersFunctionNewUnifiedEncoder
NewUnifiedEncoder returns a new UnifiedEncoder that writes to w.
plumbing/format/diff/unified_encoder.go:50
↓ 4 callersFunctionNewUploadPackResponseWithPackfile
NewUploadPackResponseWithPackfile creates a new UploadPackResponse instance, and sets its packfile reader.
plumbing/protocol/packp/uppackresp.go:44
↓ 4 callersFunctionNewWriteCloser
NewWriteCloser creates an `io.WriteCloser` with the given `io.Writer` and `io.Closer`.
utils/ioutil/common.go:91
↓ 4 callersMethodNumParents
NumParents returns the number of parents in a commit.
plumbing/object/commitgraph/commitnode.go:22
↓ 4 callersMethodObject
Object returns an Object with the given hash. If not found plumbing.ErrObjectNotFound is returned.
repository.go:1476
↓ 4 callersMethodObjects
Objects returns a slice with the hashes of objects found under the .git/objects/ directory.
storage/filesystem/dotgit/dotgit.go:398
↓ 4 callersMethodParentNode
ParentNode returns the ith parent of a commit.
plumbing/object/commitgraph/commitnode.go:26
↓ 4 callersFunctionPatchDelta
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 callersFunctionPlainOpenWithOptions
PlainOpenWithOptions opens a git repository from the given path with specific options. See PlainOpen for more info.
repository.go:303
← previousnext →401–500 of 4,185, ranked by callers