MCPcopy Create free account

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

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

↓ 10 callersMethodConfig
Config return the repository config. In a filesystem backed repository this means read the `.git/config`.
repository.go:551
↓ 10 callersFunctionHashesSort
HashesSort sorts a slice of Hashes in increasing order.
plumbing/hash.go:63
↓ 10 callersMethodInit
Init performs initialization of the storer and returns the error, if any.
plumbing/storer/storer.go:14
↓ 10 callersMethodIsBranch
IsBranch check if a reference is a branch
plumbing/reference.go:94
↓ 10 callersMethodIsTag
IsTag check if a reference is a tag
plumbing/reference.go:109
↓ 10 callersFunctionNewCommitPreorderIter
NewCommitPreorderIter returns a CommitIter that walks the commit history, starting at the given commit and visiting its parents in pre-order. The give
plumbing/object/commit_walker.go:26
↓ 10 callersFunctionNewPublicKeys
NewPublicKeys returns a PublicKeys from a PEM encoded private key. An encryption password should be given if the pemBytes contains a password encrypte
plumbing/transport/ssh/auth_method.go:121
↓ 10 callersMethodNextObject
NextObject writes the content of the next object into the reader, returns the number of bytes written, the CRC32 of the content and an error, if any
plumbing/format/packfile/scanner.go:310
↓ 10 callersMethodObjectPack
ObjectPack returns a fs.File of the given packfile
storage/filesystem/dotgit/dotgit.go:302
↓ 10 callersMethodOpenFile
(filename string, flag int, perm os.FileMode)
storage/filesystem/dotgit/repository_filesystem.go:61
↓ 10 callersMethodParse
Parse explode a revision string into revisioner chunks
internal/revision/parser.go:138
↓ 10 callersMethodPrint
Print prints the given message only if the target is enabled.
utils/trace/trace.go:44
↓ 10 callersMethodRename
(oldpath, newpath string)
storage/filesystem/dotgit/repository_filesystem.go:69
↓ 10 callersMethodRepository
Repository returns the Repository represented by this submodule
submodule.go:102
↓ 10 callersMethodSeek
Seek seeks to a location. If the underlying reader is not an io.ReadSeeker, then only whence=io.SeekCurrent is supported, any other operation fails.
plumbing/format/packfile/scanner.go:457
↓ 10 callersMethodSetOption
SetOption sets an option to a given section and subsection. Use the NoSubsection constant for the subsection argument if no subsection is wanted.
plumbing/format/config/common.go:101
↓ 10 callersMethodSymlink
(target, link string)
storage/filesystem/dotgit/repository_filesystem.go:97
↓ 10 callersMethodTag
Tag returns a tag from the repository. If you want to check to see if the tag is an annotated tag, you can call TagObject on the hash of the referenc
repository.go:841
↓ 10 callersMethodUpdate
Update the registered submodule to match what the superproject expects, the submodule should be initialized first calling the Init method or setting i
submodule.go:167
↓ 10 callersFunctionassertChildren
(c *C, n noder.Noder, expected []noder.Noder)
utils/merkletrie/internal/fsnoder/dir_test.go:30
↓ 10 callersFunctiondo
(c *C, list []diffTreeTest)
utils/merkletrie/difftree_test.go:280
↓ 10 callersMethodrun
Executes all the tests in a testsCollection.
utils/merkletrie/iter_test.go:125
↓ 10 callersMethodunscan
unscan pushes the previously read token back onto the buffer.
internal/revision/parser.go:135
↓ 9 callersMethodAllReferences
()
plumbing/protocol/packp/advrefs.go:70
↓ 9 callersMethodAssertIndependents
AssertIndependents validates the independent commits of the passed list
plumbing/object/merge_base_test.go:137
↓ 9 callersMethodDecode
Decode decodes the response into the struct, isMultiACK should be true, if the request was done with multi_ack or multi_ack_detailed capabilities.
plumbing/protocol/packp/srvresp.go:23
↓ 9 callersMethodHeader
Header reads the whole packfile header (signature, version and object count). It returns the version and the object count and performs checks on the v
plumbing/format/packfile/scanner.go:80
↓ 9 callersMethodID
ID returns the Commit object id referenced by the commit graph node.
plumbing/object/commitgraph/commitnode.go:16
↓ 9 callersMethodIsEmpty
IsEmpty returns true if doesn't contain any reference.
plumbing/protocol/packp/advrefs.go:206
↓ 9 callersMethodMarshal
Marshal returns Config encoded as a git-config file.
config/config.go:409
↓ 9 callersMethodName
()
plumbing/format/gitattributes/attributes.go:38
↓ 9 callersFunctionNewDecoder
NewDecoder builds a new idx stream decoder, that reads from r.
plumbing/format/idxfile/decoder.go:32
↓ 9 callersFunctionNewFilterCommitIter
NewFilterCommitIter returns a CommitIter that walks the commit history, starting at the passed commit and visiting its parents in Breadth-first order.
plumbing/object/commit_walker_bfs_filtered.go:19
↓ 9 callersFunctionNewHasher
(t ObjectType, size int64)
plumbing/hash.go:48
↓ 9 callersFunctionNewParser
NewParser creates a new Parser. The Scanner source must be seekable. If it's not, NewParserWithStorage should be used instead.
plumbing/format/packfile/parser.go:61
↓ 9 callersFunctionNewReadCloser
NewReadCloser creates an `io.ReadCloser` with the given `io.Reader` and `io.Closer`.
utils/ioutil/common.go:54
↓ 9 callersFunctionObjects
Objects applies a complementary set. It gets all the hashes from all the reachable objects from the given objects. Ignore param are object hashes that
plumbing/revlist/revlist.go:19
↓ 9 callersMethodRefs
Refs scans the git directory collecting references, which it returns. Symbolic references are resolved and included in the output.
storage/filesystem/dotgit/dotgit.go:702
↓ 9 callersMethodRemove
Remove remove the entry that match the give path and returns deleted entry.
plumbing/format/index/index.go:83
↓ 9 callersMethodSetSize
SetSize set the object size, a content of the given size should be written afterwards
plumbing/memory.go:39
↓ 9 callersMethodSrc
Src returns the src side.
config/refspec.go:68
↓ 9 callersMethodtestDecodeOK
(c *C, payloads []string)
plumbing/protocol/packp/advrefs_decode_test.go:75
↓ 8 callersMethodAddReference
(r *plumbing.Reference)
plumbing/protocol/packp/advrefs.go:56
↓ 8 callersMethodAddWithOptions
AddWithOptions file contents to the index, updates the index using the current content found in the working tree, to prepare the content staged for t
worktree_status.go:318
↓ 8 callersMethodCommit
Commit stores the current contents of the index in a new commit along with a log message from the user describing the changes.
worktree_commit.go:30
↓ 8 callersMethodDecode
Decode reads the next advertised-refs message form its input and stores it in the AdvRefs.
plumbing/protocol/packp/advrefs_decode.go:16
↓ 8 callersMethodDecode
Decode decodes list of capabilities from raw into the list
plumbing/protocol/packp/capability/list.go:48
↓ 8 callersMethodDecode
Decode transforms a plumbing.EncodedObject into a Tag struct.
plumbing/object/tag.go:81
↓ 8 callersMethodError
Error returns a text representation of the error.
plumbing/format/packfile/error.go:16
↓ 8 callersMethodFile
File returns the hash of the file identified by the `path` argument. The path is interpreted as relative to the tree receiver.
plumbing/object/tree.go:75
↓ 8 callersMethodFindEntry
FindEntry search a TreeEntry in this tree or any subtree.
plumbing/object/tree.go:130
↓ 8 callersMethodGet
(alias, key string)
plumbing/transport/ssh/common.go:29
↓ 8 callersMethodHash
Hash returns the object Hash, the hash is calculated on-the-fly the first time it's called, in all subsequent calls the same Hash is returned even if
plumbing/memory.go:20
↓ 8 callersMethodHashes
Hashes returns all the hashes that are available in the index
plumbing/format/commitgraph/v2/commitgraph.go:50
↓ 8 callersMethodIs
(target error)
remote.go:47
↓ 8 callersMethodIsWildcard
IsWildcard returns true if the RefSpec contains a wildcard.
config/refspec.go:92
↓ 8 callersMethodLoad
Load loads a storer.Storer given a transport.Endpoint. Returns transport.ErrRepositoryNotFound if the repository does not exist.
plumbing/transport/server/loader.go:21
↓ 8 callersMethodMode
Mode returns the FileMode.
plumbing/format/diff/patch.go:47
↓ 8 callersFunctionNew
New returns a new Hash for the given hash function. It panics if the hash function is not registered.
plumbing/hash/hash.go:54
↓ 8 callersFunctionNew
New creates a new config instance.
plumbing/format/config/common.go:4
↓ 8 callersFunctionNewBranchReferenceName
NewBranchReferenceName returns a reference name describing a branch based on his short name.
plumbing/reference.go:65
↓ 8 callersFunctionNewMatcher
NewMatcher constructs a new global matcher. Patterns must be given in the order of increasing priority. That is most generic settings files first, the
plumbing/format/gitignore/matcher.go:14
↓ 8 callersFunctionNewUploadPackResponse
NewUploadPackResponse create a new UploadPackResponse instance, the request being responded by the response is required.
plumbing/protocol/packp/uppackresp.go:31
↓ 8 callersFunctionNewWithOptions
NewWithOptions sets non default configuration options. See New for complete help.
storage/filesystem/dotgit/dotgit.go:118
↓ 8 callersMethodRead
(buf []byte)
utils/ioutil/common.go:177
↓ 8 callersMethodReadByte
()
plumbing/format/packfile/scanner.go:442
↓ 8 callersMethodReader
Reader returns an io.ReadCloser used to read the object's content. For a MemoryObject, this reader is seekable.
plumbing/memory.go:44
↓ 8 callersMethodRemove
Remove removes files from the working tree and from the index.
worktree_status.go:555
↓ 8 callersMethodRemove
(filename string)
storage/filesystem/dotgit/repository_filesystem.go:73
↓ 8 callersMethodResolveRevision
ResolveRevision resolves revision to corresponding hash. It will always resolve to a commit hash, not a tree or annotated tag. Implemented resolvers
repository.go:1549
↓ 8 callersFunctionUpdateObjectStorage
UpdateObjectStorage updates the storer with the objects in the given packfile.
plumbing/format/packfile/common.go:26
↓ 8 callersFunctionWriteFile
(fs billy.Filesystem, filename string, data []byte, perm os.FileMode)
utils/merkletrie/filesystem/node_test.go:225
↓ 8 callersMethodWriter
()
plumbing/object.go:23
↓ 8 callersFunctionnewChangeEntry
(p noder.Path)
plumbing/object/change_adaptor.go:29
↓ 8 callersMethodnewEndpoint
(c *C, name string)
plumbing/transport/ssh/upload_pack_test.go:82
↓ 8 callersFunctionnewPath
utility function to build Paths
plumbing/object/change_adaptor_test.go:49
↓ 8 callersMethodreceivePack
(c *C, ep *transport.Endpoint, req *packp.ReferenceUpdateRequest, fixture *fixtures.Fixture, callAdvertisedR
plumbing/transport/test/receive_pack.go:266
↓ 8 callersMethodtest
(c *C, in []string, exp []string, isEmpty bool)
plumbing/protocol/packp/advrefs_test.go:162
↓ 8 callersFunctiontestEncode
(c *C, input *AdvRefs, expected []byte)
plumbing/protocol/packp/advrefs_encode_test.go:18
↓ 7 callersMethodAdvertisedReferencesContext
AdvertisedReferencesContext retrieves the advertised references for a repository. If the repository does not exist, returns ErrRepositoryNotFound. If
plumbing/transport/common.go:65
↓ 7 callersMethodCommit
Commit returns the full commit object from the node
plumbing/object/commitgraph/commitnode.go:37
↓ 7 callersMethodContents
Contents returns the contents of a file as a string.
plumbing/object/file.go:31
↓ 7 callersMethodCreateBranch
CreateBranch creates a new Branch
repository.go:697
↓ 7 callersMethodDecode
Decode transform an plumbing.EncodedObject into a Tree struct
plumbing/object/tree.go:216
↓ 7 callersMethodDecode
Decode transforms a plumbing.EncodedObject into a Commit struct.
plumbing/object/commit.go:186
↓ 7 callersMethodError
()
plumbing/protocol/packp/common.go:68
↓ 7 callersMethodFilePatches
FilePatches returns a slice of patches per file.
plumbing/format/diff/patch.go:23
↓ 7 callersMethodFindHash
FindHash finds the hash for the object with the given offset.
plumbing/format/idxfile/idxfile.go:35
↓ 7 callersMethodGet
Get returns the values for a capability
plumbing/protocol/packp/capability/list.go:79
↓ 7 callersFunctionGetByteSlice
GetByteSlice returns a *[]byte that is managed by a sync.Pool. The initial slice length will be 16384 (16kb). After use, the *[]byte should be put ba
utils/sync/bytes.go:27
↓ 7 callersMethodGetIndexByHash
GetIndexByHash gets the index in the commit graph from commit hash, if available
plumbing/format/commitgraph/v2/commitgraph.go:43
↓ 7 callersMethodIsName
IsName checks if the name provided is equals to the Section name, case insensitive.
plumbing/format/config/section.go:63
↓ 7 callersFunctionNewClient
NewClient returns a new local client using the given git-upload-pack and git-receive-pack binaries.
plumbing/transport/file/client.go:30
↓ 7 callersFunctionNewObjectStorageWithOptions
NewObjectStorageWithOptions creates a new ObjectStorage with the given .git directory, cache and extra options
storage/filesystem/object.go:43
↓ 7 callersFunctionNewReader
NewReader returns a new Reader reading from r.
plumbing/format/objfile/reader.go:30
↓ 7 callersFunctionNewReferenceFilteredIter
NewReferenceFilteredIter returns a reference iterator for the given reference Iterator. This iterator will iterate only references that accomplish the
plumbing/storer/reference.go:46
↓ 7 callersFunctionNewReferenceStorage
NewReferenceStorage returns a new ReferenceStorer based on a base storer and a temporal storer.
storage/transactional/reference.go:22
↓ 7 callersFunctionNewTreeWalker
NewTreeWalker returns a new TreeWalker for the given tree. It is the caller's responsibility to call Close() when finished with the tree walker.
plumbing/object/tree.go:403
↓ 7 callersMethodNext
Next returns the next entry in the packfile index.
plumbing/format/idxfile/idxfile.go:266
↓ 7 callersMethodNextObjectHeader
NextObjectHeader returns the ObjectHeader for the next object in the reader
plumbing/format/packfile/scanner.go:168
← previousnext →201–300 of 4,185, ranked by callers