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
↓ 7 callers
Method
Object
Object returns a fs.File pointing the object file, if exists
storage/filesystem/dotgit/dotgit.go:608
↓ 7 callers
Method
ObjectPackIdx
ObjectPackIdx returns a fs.File of the index file for a given packfile
storage/filesystem/dotgit/dotgit.go:312
↓ 7 callers
Method
PackfileWriter
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 callers
Method
Parents
Parents return a CommitIter to the parent Commits.
plumbing/object/commit.go:126
↓ 7 callers
Function
PlainCloneContext
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 callers
Method
Pop
()
plumbing/object/commitgraph/commitnode_walker_helper.go:14
↓ 7 callers
Function
PutByteSlice
PutByteSlice puts buf back into its sync.Pool.
utils/sync/bytes.go:33
↓ 7 callers
Method
RemoveRef
RemoveRef removes a reference by name.
storage/filesystem/dotgit/dotgit.go:784
↓ 7 callers
Method
Seek
(offset int64, whence int)
storage/filesystem/dotgit/writers.go:232
↓ 7 callers
Method
SeekObjectHeader
SeekObjectHeader seeks to specified offset and returns the ObjectHeader for the next object in the reader
plumbing/format/packfile/scanner.go:148
↓ 7 callers
Method
SetSize
(int64)
plumbing/object.go:21
↓ 7 callers
Method
Start
Start starts the specified command. It does not wait for it to complete.
plumbing/transport/internal/common/common.go:67
↓ 7 callers
Method
String
()
plumbing/object/change.go:75
↓ 7 callers
Method
TagObject
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 callers
Method
Validate
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 callers
Method
Validate
Validate validates the fields and sets the default values.
config/config.go:217
↓ 7 callers
Method
WithPayload
WithPayload encode the payload as a message
plumbing/protocol/packp/sideband/common.go:22
↓ 7 callers
Function
Write
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 callers
Function
assertStorageStatus
( c *C, r *Repository, treesCount, blobCount, commitCount int, head plumbing.Hash, )
worktree_commit_test.go:504
↓ 7 callers
Method
checkRemoteHead
(c *C, ep *transport.Endpoint, head plumbing.Hash)
plumbing/transport/test/receive_pack.go:288
↓ 7 callers
Function
errMalformedRequest
(reason string)
plumbing/protocol/packp/updreq_decode.go:26
↓ 7 callers
Method
error
fills out the parser sticky error
plumbing/protocol/packp/ulreq_decode.go:47
↓ 7 callers
Method
error
fills out the parser sticky error
plumbing/protocol/packp/advrefs_decode.go:57
↓ 7 callers
Function
setUpTest
(t testing.TB, buf *bytes.Buffer)
utils/trace/trace_test.go:17
↓ 7 callers
Method
testDecodeError
(c *C, errorMatch string, lines ...string)
plumbing/protocol/packp/report_status_test.go:49
↓ 7 callers
Method
testEncode
(c *C, input *ReferenceUpdateRequest, expected []byte)
plumbing/protocol/packp/updreq_encode_test.go:18
↓ 7 callers
Method
tree
(c *C, h plumbing.Hash)
plumbing/object/change_test.go:32
↓ 6 callers
Method
AddDetails
AddDetails adds details to an error, with additional text.
plumbing/format/packfile/error.go:25
↓ 6 callers
Method
AddOption
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 callers
Method
AssertMergeBase
AssertMergeBase validates that the merge-base of the passed revs, matches the expected result
plumbing/object/merge_base_test.go:115
↓ 6 callers
Method
Check
(params []interface{}, names []string)
utils/merkletrie/difftree_test.go:267
↓ 6 callers
Method
Close
()
plumbing/storer/object.go:264
↓ 6 callers
Method
Close
Close the underlying reader, if any
plumbing/protocol/packp/uppackresp.go:102
↓ 6 callers
Method
Decode
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 callers
Method
Decode
Decode reads the next update-request message form the reader and wr
plumbing/protocol/packp/updreq_decode.go:78
↓ 6 callers
Function
DecodeCommit
DecodeCommit decodes an encoded object into a *Commit and associates it to the given object storer.
plumbing/object/commit.go:81
↓ 6 callers
Function
DefaultAgent
DefaultAgent provides the user agent string.
plumbing/protocol/packp/capability/capability.go:249
↓ 6 callers
Method
FindOffset
FindOffset finds the offset in the packfile for the object with the given hash.
plumbing/format/idxfile/idxfile.go:31
↓ 6 callers
Method
IsForceUpdate
IsForceUpdate returns if update is allowed in non fast-forward merges.
config/refspec.go:53
↓ 6 callers
Method
IsKey
IsKey returns true if the given key matches this option's key in a case-insensitive comparison.
plumbing/format/config/option.go:21
↓ 6 callers
Function
NewCommitPathIterFromIter
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 callers
Function
NewErr
NewErr returns a new Err based on a http response and closes response body if needed
plumbing/transport/http/common.go:414
↓ 6 callers
Function
NewPackfile
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 callers
Method
Next
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 callers
Method
Objects
Objects returns an unsorted ObjectIter with all the objects in the repository.
repository.go:1486
↓ 6 callers
Method
PatchContext
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 callers
Method
ReceivePack
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 callers
Method
References
References returns an unsorted ReferenceIter for all references.
repository.go:1513
↓ 6 callers
Method
Reset
(r io.Reader, dict []byte)
utils/sync/zlib_test.go:62
↓ 6 callers
Method
SetRef
(r, old *plumbing.Reference)
storage/filesystem/dotgit/dotgit.go:686
↓ 6 callers
Method
SetShallow
([]plumbing.Hash)
plumbing/storer/shallow.go:8
↓ 6 callers
Function
SetTarget
SetTarget sets the tracing targets.
utils/trace/trace.go:34
↓ 6 callers
Method
SetType
(plumbing.ObjectType)
storage/filesystem/dotgit/reader.go:56
↓ 6 callers
Method
Unmarshal
Unmarshal parses a git-config file and stores it.
config/config.go:275
↓ 6 callers
Method
WriteHeader
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 callers
Function
WriteUint64
WriteUint64 writes the binary representation of a uint64 into w, in BigEndian order
utils/binary/write.go:36
↓ 6 callers
Function
assertHashes
(c *C, commits []*Commit, hashes []string)
plumbing/object/commit_walker_bfs_filtered_test.go:29
↓ 6 callers
Function
commitsFromIter
(iter CommitIter)
plumbing/object/commit_walker_bfs_filtered_test.go:19
↓ 6 callers
Method
common
(dst *similarityIndex)
plumbing/object/rename.go:668
↓ 6 callers
Function
decodeFails
(c *C, text string)
plumbing/format/config/decoder_test.go:88
↓ 6 callers
Function
findReference
(refs []*plumbing.Reference, name string)
storage/filesystem/dotgit/dotgit_test.go:444
↓ 6 callers
Function
fixtureIndex
()
plumbing/format/idxfile/idxfile_test.go:157
↓ 6 callers
Method
getFromPackfile
Get returns the object with the given hash, by searching for it in the packfile.
storage/filesystem/object.go:453
↓ 6 callers
Function
newNoder
utility function to build Noders from a tree and an tree entry.
plumbing/object/change_adaptor_test.go:39
↓ 6 callers
Function
newObjectToPack
newObjectToPack creates a correct ObjectToPack based on a non-delta object
plumbing/format/packfile/object_pack.go:35
↓ 6 callers
Method
requireIndex
()
storage/filesystem/object.go:51
↓ 6 callers
Method
testEncodeDecodeOk
(c *C, rs *ReportStatus, lines ...string)
plumbing/protocol/packp/report_status_test.go:37
↓ 6 callers
Function
textIndex
(c *C, content string)
plumbing/object/rename_test.go:450
↓ 5 callers
Method
CheckAndSetReference
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 callers
Method
Children
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 callers
Method
Chunks
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 callers
Method
Close
Close the packfile and its resources.
plumbing/format/packfile/packfile.go:536
↓ 5 callers
Method
Decode
Decode reads from the stream and decode the content into the MemoryIndex struct.
plumbing/format/idxfile/decoder.go:37
↓ 5 callers
Function
DecodeObject
DecodeObject decodes an encoded object into an Object and associates it to the given object storer.
plumbing/object/object.go:62
↓ 5 callers
Function
DecodeTag
DecodeTag decodes an encoded object into a *Commit and associates it to the given object storer.
plumbing/object/tag.go:56
↓ 5 callers
Method
DeleteTag
DeleteTag deletes a tag from the repository.
repository.go:856
↓ 5 callers
Function
DiffDelta
DiffDelta returns the delta that transforms src into tgt.
plumbing/format/packfile/diff_delta.go:80
↓ 5 callers
Method
EncodedObject
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 callers
Method
Error
()
plumbing/transport/http/common.go:448
↓ 5 callers
Method
FetchContext
FetchContext fetches references along with the objects necessary to complete their histories. Returns nil if the operation is successful, NoErrAlread
remote.go:387
↓ 5 callers
Method
Filesystem
()
repository.go:141
↓ 5 callers
Method
ForEach
(func(*plumbing.Reference) error)
plumbing/storer/reference.go:34
↓ 5 callers
Method
ForEach
(func(CommitNode) error)
plumbing/object/commitgraph/commitnode.go:49
↓ 5 callers
Method
ForEachObjectHash
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 callers
Method
Get
Get returns a commit node from a commit hash
plumbing/object/commitgraph/commitnode.go:43
↓ 5 callers
Function
GetBlob
GetBlob gets a blob from an object storer and decodes it.
plumbing/object/blob.go:22
↓ 5 callers
Method
GetByType
GetByType returns all the objects of the given type.
plumbing/format/packfile/packfile.go:485
↓ 5 callers
Function
GetTag
GetTag gets a tag from an object storer and decodes it.
plumbing/object/tag.go:45
↓ 5 callers
Function
GetZlibReader
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 callers
Method
Header
Header reads the type and the size of object, and prepares the reader for read
plumbing/format/objfile/reader.go:43
↓ 5 callers
Method
IsFile
IsFile returns if the FileMode represents that of a file, this is, Regular, Deprecated, Executable or Link.
plumbing/filemode/filemode.go:156
↓ 5 callers
Method
IsSet
()
plumbing/format/gitattributes/attributes.go:39
↓ 5 callers
Method
IsUnset
()
plumbing/format/gitattributes/attributes.go:40
↓ 5 callers
Method
Len
()
blame.go:537
↓ 5 callers
Method
Len
Len returns the number of noders in the frame.
utils/merkletrie/internal/frame/frame.go:89
↓ 5 callers
Function
LoadGlobalPatterns
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 callers
Method
Module
Module returns a Storer representing a submodule, if not exists returns a new empty Storer is returned
storage/storer.go:29
↓ 5 callers
Function
New
New returns a frame with the children of the provided node.
utils/merkletrie/internal/frame/frame.go:28
↓ 5 callers
Function
NewDecoder
NewDecoder returns a new decoder that reads from r.
plumbing/format/config/decoder.go:15
↓ 5 callers
Function
NewEncodedObjectSliceIter
NewEncodedObjectSliceIter returns an object iterator for the given slice of objects.
plumbing/storer/object.go:184
← previous
next →
301–400 of 4,185, ranked by callers