MCPcopy Create free account

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

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

↓ 7 callersMethodObject
Object returns a fs.File pointing the object file, if exists
storage/filesystem/dotgit/dotgit.go:608
↓ 7 callersMethodObjectPackIdx
ObjectPackIdx returns a fs.File of the index file for a given packfile
storage/filesystem/dotgit/dotgit.go:312
↓ 7 callersMethodPackfileWriter
PackfileWriter returns a writer for writing a packfile to the storage If the Storer not implements PackfileWriter the objects should be written using
plumbing/storer/object.go:98
↓ 7 callersMethodParents
Parents return a CommitIter to the parent Commits.
plumbing/object/commit.go:126
↓ 7 callersFunctionPlainCloneContext
PlainCloneContext a repository into the path with the given options, isBare defines if the new repository will be bare or normal. If the path is not e
repository.go:472
↓ 7 callersMethodPop
()
plumbing/object/commitgraph/commitnode_walker_helper.go:14
↓ 7 callersFunctionPutByteSlice
PutByteSlice puts buf back into its sync.Pool.
utils/sync/bytes.go:33
↓ 7 callersMethodRemoveRef
RemoveRef removes a reference by name.
storage/filesystem/dotgit/dotgit.go:784
↓ 7 callersMethodSeek
(offset int64, whence int)
storage/filesystem/dotgit/writers.go:232
↓ 7 callersMethodSeekObjectHeader
SeekObjectHeader seeks to specified offset and returns the ObjectHeader for the next object in the reader
plumbing/format/packfile/scanner.go:148
↓ 7 callersMethodSetSize
(int64)
plumbing/object.go:21
↓ 7 callersMethodStart
Start starts the specified command. It does not wait for it to complete.
plumbing/transport/internal/common/common.go:67
↓ 7 callersMethodString
()
plumbing/object/change.go:75
↓ 7 callersMethodTagObject
TagObject returns a Tag with the given hash. If not found plumbing.ErrObjectNotFound is returned. This method only returns annotated Tags, no lightwei
repository.go:1459
↓ 7 callersMethodValidate
Validate validates the content of UploadRequest, following the next rules: - Wants MUST have at least one reference - capability.Shallow MUST be prese
plumbing/protocol/packp/ulreq.go:112
↓ 7 callersMethodValidate
Validate validates the fields and sets the default values.
config/config.go:217
↓ 7 callersMethodWithPayload
WithPayload encode the payload as a message
plumbing/protocol/packp/sideband/common.go:22
↓ 7 callersFunctionWrite
Write writes the binary representation of data into w, using BigEndian order https://golang.org/pkg/encoding/binary/#Write
utils/binary/write.go:10
↓ 7 callersFunctionassertStorageStatus
( c *C, r *Repository, treesCount, blobCount, commitCount int, head plumbing.Hash, )
worktree_commit_test.go:504
↓ 7 callersMethodcheckRemoteHead
(c *C, ep *transport.Endpoint, head plumbing.Hash)
plumbing/transport/test/receive_pack.go:288
↓ 7 callersFunctionerrMalformedRequest
(reason string)
plumbing/protocol/packp/updreq_decode.go:26
↓ 7 callersMethoderror
fills out the parser sticky error
plumbing/protocol/packp/ulreq_decode.go:47
↓ 7 callersMethoderror
fills out the parser sticky error
plumbing/protocol/packp/advrefs_decode.go:57
↓ 7 callersFunctionsetUpTest
(t testing.TB, buf *bytes.Buffer)
utils/trace/trace_test.go:17
↓ 7 callersMethodtestDecodeError
(c *C, errorMatch string, lines ...string)
plumbing/protocol/packp/report_status_test.go:49
↓ 7 callersMethodtestEncode
(c *C, input *ReferenceUpdateRequest, expected []byte)
plumbing/protocol/packp/updreq_encode_test.go:18
↓ 7 callersMethodtree
(c *C, h plumbing.Hash)
plumbing/object/change_test.go:32
↓ 6 callersMethodAddDetails
AddDetails adds details to an error, with additional text.
plumbing/format/packfile/error.go:25
↓ 6 callersMethodAddOption
AddOption adds 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:89
↓ 6 callersMethodAssertMergeBase
AssertMergeBase validates that the merge-base of the passed revs, matches the expected result
plumbing/object/merge_base_test.go:115
↓ 6 callersMethodCheck
(params []interface{}, names []string)
utils/merkletrie/difftree_test.go:267
↓ 6 callersMethodClose
()
plumbing/storer/object.go:264
↓ 6 callersMethodClose
Close the underlying reader, if any
plumbing/protocol/packp/uppackresp.go:102
↓ 6 callersMethodDecode
Decode decodes all the responses sent by upload-pack service into the struct and prepares it to read the packfile using the Read method
plumbing/protocol/packp/uppackresp.go:54
↓ 6 callersMethodDecode
Decode reads the next update-request message form the reader and wr
plumbing/protocol/packp/updreq_decode.go:78
↓ 6 callersFunctionDecodeCommit
DecodeCommit decodes an encoded object into a *Commit and associates it to the given object storer.
plumbing/object/commit.go:81
↓ 6 callersFunctionDefaultAgent
DefaultAgent provides the user agent string.
plumbing/protocol/packp/capability/capability.go:249
↓ 6 callersMethodFindOffset
FindOffset finds the offset in the packfile for the object with the given hash.
plumbing/format/idxfile/idxfile.go:31
↓ 6 callersMethodIsForceUpdate
IsForceUpdate returns if update is allowed in non fast-forward merges.
config/refspec.go:53
↓ 6 callersMethodIsKey
IsKey returns true if the given key matches this option's key in a case-insensitive comparison.
plumbing/format/config/option.go:21
↓ 6 callersFunctionNewCommitPathIterFromIter
NewCommitPathIterFromIter returns a commit iterator which performs diffTree between successive trees returned from the commit iterator from the argume
plumbing/object/commit_walker_path.go:23
↓ 6 callersFunctionNewErr
NewErr returns a new Err based on a http response and closes response body if needed
plumbing/transport/http/common.go:414
↓ 6 callersFunctionNewPackfile
NewPackfile returns a packfile representation for the given packfile file and packfile idx. If the filesystem is provided, the packfile will return FS
plumbing/format/packfile/packfile.go:74
↓ 6 callersMethodNext
Next returns the next object from the tree. Objects are returned in order and subtrees are included. After the last object has been returned further c
plumbing/object/tree.go:424
↓ 6 callersMethodObjects
Objects returns an unsorted ObjectIter with all the objects in the repository.
repository.go:1486
↓ 6 callersMethodPatchContext
PatchContext returns a slice of Patch objects with all the changes between trees in chunks. This representation can be used to create several diff out
plumbing/object/tree.go:365
↓ 6 callersMethodReceivePack
ReceivePack sends an update references request and a packfile reader and returns a ReportStatus and error. Don't be confused by terminology, the clien
plumbing/transport/common.go:97
↓ 6 callersMethodReferences
References returns an unsorted ReferenceIter for all references.
repository.go:1513
↓ 6 callersMethodReset
(r io.Reader, dict []byte)
utils/sync/zlib_test.go:62
↓ 6 callersMethodSetRef
(r, old *plumbing.Reference)
storage/filesystem/dotgit/dotgit.go:686
↓ 6 callersMethodSetShallow
([]plumbing.Hash)
plumbing/storer/shallow.go:8
↓ 6 callersFunctionSetTarget
SetTarget sets the tracing targets.
utils/trace/trace.go:34
↓ 6 callersMethodSetType
(plumbing.ObjectType)
storage/filesystem/dotgit/reader.go:56
↓ 6 callersMethodUnmarshal
Unmarshal parses a git-config file and stores it.
config/config.go:275
↓ 6 callersMethodWriteHeader
WriteHeader writes the type and the size and prepares to accept the object's contents. If an invalid t is provided, plumbing.ErrInvalidType is returne
plumbing/format/objfile/writer.go:45
↓ 6 callersFunctionWriteUint64
WriteUint64 writes the binary representation of a uint64 into w, in BigEndian order
utils/binary/write.go:36
↓ 6 callersFunctionassertHashes
(c *C, commits []*Commit, hashes []string)
plumbing/object/commit_walker_bfs_filtered_test.go:29
↓ 6 callersFunctioncommitsFromIter
(iter CommitIter)
plumbing/object/commit_walker_bfs_filtered_test.go:19
↓ 6 callersMethodcommon
(dst *similarityIndex)
plumbing/object/rename.go:668
↓ 6 callersFunctiondecodeFails
(c *C, text string)
plumbing/format/config/decoder_test.go:88
↓ 6 callersFunctionfindReference
(refs []*plumbing.Reference, name string)
storage/filesystem/dotgit/dotgit_test.go:444
↓ 6 callersFunctionfixtureIndex
()
plumbing/format/idxfile/idxfile_test.go:157
↓ 6 callersMethodgetFromPackfile
Get returns the object with the given hash, by searching for it in the packfile.
storage/filesystem/object.go:453
↓ 6 callersFunctionnewNoder
utility function to build Noders from a tree and an tree entry.
plumbing/object/change_adaptor_test.go:39
↓ 6 callersFunctionnewObjectToPack
newObjectToPack creates a correct ObjectToPack based on a non-delta object
plumbing/format/packfile/object_pack.go:35
↓ 6 callersMethodrequireIndex
()
storage/filesystem/object.go:51
↓ 6 callersMethodtestEncodeDecodeOk
(c *C, rs *ReportStatus, lines ...string)
plumbing/protocol/packp/report_status_test.go:37
↓ 6 callersFunctiontextIndex
(c *C, content string)
plumbing/object/rename_test.go:450
↓ 5 callersMethodCheckAndSetReference
CheckAndSetReference sets the reference `new`, but if `old` is not `nil`, it first checks that the current stored value for `old.Name()` matches the g
plumbing/storer/reference.go:23
↓ 5 callersMethodChildren
Children returns the children of the element. Note that empty directory-like noders and file-like noders will both return NoChildren.
utils/merkletrie/noder/noder.go:47
↓ 5 callersMethodChunks
Chunks returns a slice of ordered changes to transform "from" File into "to" File. If the file is a binary one, Chunks will be empty.
plumbing/format/diff/patch.go:39
↓ 5 callersMethodClose
Close the packfile and its resources.
plumbing/format/packfile/packfile.go:536
↓ 5 callersMethodDecode
Decode reads from the stream and decode the content into the MemoryIndex struct.
plumbing/format/idxfile/decoder.go:37
↓ 5 callersFunctionDecodeObject
DecodeObject decodes an encoded object into an Object and associates it to the given object storer.
plumbing/object/object.go:62
↓ 5 callersFunctionDecodeTag
DecodeTag decodes an encoded object into a *Commit and associates it to the given object storer.
plumbing/object/tag.go:56
↓ 5 callersMethodDeleteTag
DeleteTag deletes a tag from the repository.
repository.go:856
↓ 5 callersFunctionDiffDelta
DiffDelta returns the delta that transforms src into tgt.
plumbing/format/packfile/diff_delta.go:80
↓ 5 callersMethodEncodedObject
EncodedObject returns the object with the given hash, by searching for it in the packfile and the git object directories.
storage/filesystem/object.go:326
↓ 5 callersMethodError
()
plumbing/transport/http/common.go:448
↓ 5 callersMethodFetchContext
FetchContext fetches references along with the objects necessary to complete their histories. Returns nil if the operation is successful, NoErrAlread
remote.go:387
↓ 5 callersMethodFilesystem
()
repository.go:141
↓ 5 callersMethodForEach
(func(*plumbing.Reference) error)
plumbing/storer/reference.go:34
↓ 5 callersMethodForEach
(func(CommitNode) error)
plumbing/object/commitgraph/commitnode.go:49
↓ 5 callersMethodForEachObjectHash
ForEachObjectHash iterates over all the (loose) object hashes in the repository without necessarily having to read those objects. Objects only inside
plumbing/storer/object.go:70
↓ 5 callersMethodGet
Get returns a commit node from a commit hash
plumbing/object/commitgraph/commitnode.go:43
↓ 5 callersFunctionGetBlob
GetBlob gets a blob from an object storer and decodes it.
plumbing/object/blob.go:22
↓ 5 callersMethodGetByType
GetByType returns all the objects of the given type.
plumbing/format/packfile/packfile.go:485
↓ 5 callersFunctionGetTag
GetTag gets a tag from an object storer and decodes it.
plumbing/object/tag.go:45
↓ 5 callersFunctionGetZlibReader
GetZlibReader returns a ZLibReader that is managed by a sync.Pool. Returns a ZLibReader that is resetted using a dictionary that is also managed by a
utils/sync/zlib.go:43
↓ 5 callersMethodHeader
Header reads the type and the size of object, and prepares the reader for read
plumbing/format/objfile/reader.go:43
↓ 5 callersMethodIsFile
IsFile returns if the FileMode represents that of a file, this is, Regular, Deprecated, Executable or Link.
plumbing/filemode/filemode.go:156
↓ 5 callersMethodIsSet
()
plumbing/format/gitattributes/attributes.go:39
↓ 5 callersMethodIsUnset
()
plumbing/format/gitattributes/attributes.go:40
↓ 5 callersMethodLen
()
blame.go:537
↓ 5 callersMethodLen
Len returns the number of noders in the frame.
utils/merkletrie/internal/frame/frame.go:89
↓ 5 callersFunctionLoadGlobalPatterns
LoadGlobalPatterns loads gitignore patterns from the gitignore file declared in a user's ~/.gitconfig file. If the ~/.gitconfig file does not exist t
plumbing/format/gitignore/dir.go:126
↓ 5 callersMethodModule
Module returns a Storer representing a submodule, if not exists returns a new empty Storer is returned
storage/storer.go:29
↓ 5 callersFunctionNew
New returns a frame with the children of the provided node.
utils/merkletrie/internal/frame/frame.go:28
↓ 5 callersFunctionNewDecoder
NewDecoder returns a new decoder that reads from r.
plumbing/format/config/decoder.go:15
↓ 5 callersFunctionNewEncodedObjectSliceIter
NewEncodedObjectSliceIter returns an object iterator for the given slice of objects.
plumbing/storer/object.go:184
← previousnext →301–400 of 4,185, ranked by callers