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
↓ 3 callers
Method
parseColon
parseColon extract : statements
internal/revision/parser.go:451
↓ 3 callers
Method
parseRef
parseRef extract reference name
internal/revision/parser.go:566
↓ 3 callers
Function
parseSignedBytes
parseSignedBytes returns the position of the last signature block found in the given bytes. If no signature block is found, it returns -1. When multi
plumbing/object/signature.go:84
↓ 3 callers
Function
pathFixture
returns nodersFixture as the path of "1".
utils/merkletrie/noder/noder_test.go:62
↓ 3 callers
Method
prepareRepository
(c *C, f *fixtures.Fixture, name string)
plumbing/transport/ssh/upload_pack_test.go:69
↓ 3 callers
Function
printStat
printStat prints the stats of changes in content of files. Original implementation: https://github.com/git/git/blob/1a87c842ece327d03d08096395969aca5e
plumbing/object/patch.go:242
↓ 3 callers
Method
printf
(msg string, args ...interface{})
plumbing/format/config/encoder.go:79
↓ 3 callers
Function
randBytes
(n int)
plumbing/format/packfile/delta_test.go:79
↓ 3 callers
Method
readHash
()
plumbing/protocol/packp/ulreq_decode.go:99
↓ 3 callers
Method
readReferenceFrom
(rd io.Reader, name string)
storage/filesystem/dotgit/dotgit.go:658
↓ 3 callers
Function
reset
reset resets the default algos value. Can be used after running tests that registers new algorithms to avoid side effects.
plumbing/hash/hash.go:22
↓ 3 callers
Method
restoreOriginal
(otp *ObjectToPack)
plumbing/format/packfile/delta_selector.go:185
↓ 3 callers
Method
reverse
()
utils/merkletrie/difftree_test.go:115
↓ 3 callers
Function
testAlternates
(t *testing.T, dotFS, altFS billy.Filesystem)
storage/filesystem/dotgit/dotgit_test.go:838
↓ 3 callers
Function
testCommitAndTree
(c *C, nodeIndex CommitNodeIndex)
plumbing/object/commitgraph/commitnode_test.go:89
↓ 3 callers
Function
testDecodeHelper
(c *C, fs billy.Filesystem, path string)
plumbing/format/commitgraph/commitgraph_test.go:24
↓ 3 callers
Function
testParents
(c *C, nodeIndex CommitNodeIndex)
plumbing/object/commitgraph/commitnode_test.go:67
↓ 3 callers
Function
testReadIndex
(c *C, fs billy.Filesystem, path string)
plumbing/format/commitgraph/v2/commitgraph_test.go:28
↓ 3 callers
Function
testWalker
(c *C, nodeIndex CommitNodeIndex)
plumbing/object/commitgraph/commitnode_test.go:33
↓ 3 callers
Method
withAddedOption
(key string, value string)
plumbing/format/config/option.go:88
↓ 3 callers
Method
writeGlobalConfig
(c *C, cfg *config.Config)
options_test.go:99
↓ 3 callers
Method
writeHistory
(c *C, files ...[]byte)
plumbing/object/commit_stats_test.go:71
↓ 2 callers
Method
Add
Add adds the change c to the list of changes.
utils/merkletrie/change.go:105
↓ 2 callers
Method
Add
Add adds new node to the memory index
plumbing/format/commitgraph/memory.go:71
↓ 2 callers
Method
AddGlob
AddGlob adds all paths, matching pattern, to the index. If pattern matches a directory path, all directory contents are added to the index recursively
worktree_status.go:377
↓ 2 callers
Method
AdvertisedReferencesContext
AdvertisedReferences retrieves the advertised references from the server.
plumbing/transport/internal/common/common.go:181
↓ 2 callers
Method
All
All returns a slice with all defined capabilities.
plumbing/protocol/packp/capability/list.go:169
↓ 2 callers
Function
ApplyDelta
ApplyDelta writes to target the result of applying the modification deltas in delta to base.
plumbing/format/packfile/patch_delta.go:50
↓ 2 callers
Method
ApplyInsteadOf
(url string)
config/url.go:75
↓ 2 callers
Method
Blob
Blob returns the blob pointed to by the tag. If the tag points to a different type of object ErrUnsupportedObject will be returned.
plumbing/object/tag.go:228
↓ 2 callers
Function
CloneContext
CloneContext a repository into the given Storer and worktree Filesystem with the given options, if worktree is nil a bare repository is created. If th
repository.go:231
↓ 2 callers
Method
Close
()
plumbing/transport/internal/common/common.go:392
↓ 2 callers
Method
Close
Close releases any resources used by the TreeWalker.
plumbing/object/tree.go:498
↓ 2 callers
Method
Close
Close releases any resources consumed by the Reader. Calling Close does not close the wrapped io.Reader originally passed to NewReader.
plumbing/format/objfile/reader.go:114
↓ 2 callers
Method
Close
Close closes the index
plumbing/format/commitgraph/v2/memory.go:101
↓ 2 callers
Method
Commit
Commit it copies the reference information of the temporal storage into the base storage.
storage/transactional/reference.go:119
↓ 2 callers
Method
CommitObjects
CommitObjects returns an unsorted CommitIter with all the commits in the repository.
repository.go:1431
↓ 2 callers
Method
Config
Config honors the storer.ConfigStorer interface.
storage/transactional/config.go:30
↓ 2 callers
Method
ConfigWriter
ConfigWriter returns a file pointer for write to the config file
storage/filesystem/dotgit/dotgit.go:175
↓ 2 callers
Method
Content
Content contains the portion of the file.
plumbing/format/diff/patch.go:55
↓ 2 callers
Method
Count
Count implements the Index interface.
plumbing/format/idxfile/idxfile.go:224
↓ 2 callers
Function
DecodeUploadPackResponse
DecodeUploadPackResponse decodes r into a new packp.UploadPackResponse
plumbing/transport/internal/common/common.go:483
↓ 2 callers
Method
DeleteLooseObject
DeleteLooseObject deletes a loose object if it exists.
plumbing/storer/object.go:77
↓ 2 callers
Method
DeleteOldObjectPackAndIndex
DeleteOldObjectPackAndIndex deletes an object pack and the corresponding index file if they exist. Deletion is only performed if the pack is older tha
plumbing/storer/object.go:88
↓ 2 callers
Method
DeleteRemote
DeleteRemote delete a remote from the repository and delete the config
repository.go:667
↓ 2 callers
Method
DeltaObject
DeltaObject is the same as EncodedObject but without resolving deltas. Deltas will be returned as plumbing.DeltaObject instances.
plumbing/storer/object.go:53
↓ 2 callers
Function
DetectRenames
DetectRenames detects the renames in the given changes on two trees with the given options. It will return the given changes grouping additions and de
plumbing/object/rename.go:19
↓ 2 callers
Method
Diff
Diff returns a list of changes between this tree and the provided one
plumbing/object/tree.go:339
↓ 2 callers
Function
DiffTreeWithOptions
DiffTreeWithOptions compares the content and mode of the blobs found via two tree objects with the given options. The provided context must be non-nil
plumbing/object/difftree.go:64
↓ 2 callers
Method
Drop
Drop extracts the noder with the alphabetically smaller name in the frame or does nothing if the frame was empty.
utils/merkletrie/internal/frame/frame.go:78
↓ 2 callers
Method
Encode
Encode writes the AdvRefs encoding to a writer. All the payloads will end with a newline character. Capabilities, references and shallows are written
plumbing/protocol/packp/advrefs_encode.go:19
↓ 2 callers
Method
Encode
Encode transforms a Tree into a plumbing.EncodedObject.
plumbing/object/tree.go:298
↓ 2 callers
Method
Encode
Encode transforms a Tag into a plumbing.EncodedObject.
plumbing/object/tag.go:143
↓ 2 callers
Method
Encode
Encode transforms a Commit into a plumbing.EncodedObject.
plumbing/object/commit.go:278
↓ 2 callers
Method
Encode
Encode encodes the ErrorLine into a packet line.
plumbing/format/pktline/error.go:32
↓ 2 callers
Method
Encode
Encode writes the config in git config format to the stream of the encoder.
plumbing/format/config/encoder.go:24
↓ 2 callers
Method
Encode
Encode writes an index into the commit-graph file Deprecated: This package uses the wrong types for Generation and Index in CommitData. Use the v2 pa
plumbing/format/commitgraph/encoder.go:35
↓ 2 callers
Method
Encode
Encode writes an index into the commit-graph file
plumbing/format/commitgraph/v2/encoder.go:27
↓ 2 callers
Method
EntriesByOffset
EntriesByOffset returns an iterator to retrieve all index entries ordered by offset.
plumbing/format/idxfile/idxfile.go:42
↓ 2 callers
Method
Error
Error returns the error that caused that the CommitIter is no longer returning commits
plumbing/object/commit_walker_bfs_filtered.go:113
↓ 2 callers
Method
Filesystem
Filesystem returns the underlying filesystem
storage/filesystem/storage.go:74
↓ 2 callers
Method
FindCRC32
FindCRC32 finds the CRC32 of the object with the given hash.
plumbing/format/idxfile/idxfile.go:33
↓ 2 callers
Method
ForEach
ForEach call the cb function for each tag contained on this iter until an error happens or the end of the iter is reached. If ErrStop is sent the iter
plumbing/object/tag.go:312
↓ 2 callers
Method
ForEachObjectHash
ForEachObjectHash iterates over the hashes of objects found under the .git/objects/ directory and executes the provided function.
storage/filesystem/dotgit/dotgit.go:421
↓ 2 callers
Method
Fs
Fs returns the underlying filesystem of the DotGit folder.
storage/filesystem/dotgit/dotgit.go:1213
↓ 2 callers
Method
Generation
Generation returns the generation of the commit for reachability analysis. Objects with newer generation are not reachable from objects of older gener
plumbing/object/commitgraph/commitnode.go:31
↓ 2 callers
Method
GenerationV2
GenerationV2 stores the corrected commit date for the commits It combines the contents of the GDA2 and GDO2 sections of the commit-graph with the comm
plumbing/object/commitgraph/commitnode.go:35
↓ 2 callers
Method
GenerationV2Data
GenerationV2Data returns the corrected commit date for the commits
plumbing/format/commitgraph/v2/commitgraph.go:32
↓ 2 callers
Method
GetAll
GetAll returns an iterator with all encoded objects in the packfile. The iterator returned is not thread-safe, it should be used in the same thread as
plumbing/format/packfile/packfile.go:480
↓ 2 callers
Method
GetByOffset
GetByOffset retrieves the encoded object from the packfile at the given offset.
plumbing/format/packfile/packfile.go:90
↓ 2 callers
Method
GetSizeByOffset
GetSizeByOffset retrieves the size of the encoded object from the packfile with the given offset.
plumbing/format/packfile/packfile.go:101
↓ 2 callers
Function
GetZlibWriter
GetZlibWriter returns a *zlib.Writer that is managed by a sync.Pool. Returns a writer that is resetted with w and ready for use. After use, the *zlib
utils/sync/zlib.go:65
↓ 2 callers
Method
Grep
Grep performs grep on a worktree.
worktree.go:961
↓ 2 callers
Method
HasSubsection
HasSubsection checks if the Section has a Subsection with the specified name.
plumbing/format/config/section.go:83
↓ 2 callers
Method
Hash
()
storage/filesystem/dotgit/reader.go:22
↓ 2 callers
Method
Hash
Hash returns the hash of a hash reference
plumbing/reference.go:273
↓ 2 callers
Method
Hash
()
plumbing/object/treenoder.go:53
↓ 2 callers
Method
HashesWithPrefix
HashesWithPrefix returns all objects with a hash that starts with a prefix by searching for them in the packfile and the git object directories.
storage/filesystem/object.go:555
↓ 2 callers
Method
IndexWriter
IndexWriter returns a file pointer for write to the index file
storage/filesystem/dotgit/dotgit.go:185
↓ 2 callers
Function
IsBinary
IsBinary detects if data is a binary value based on: http://git.kernel.org/cgit/git/git.git/tree/xdiff-interface.c?id=HEAD#n198
utils/binary/read.go:156
↓ 2 callers
Method
IsName
IsName checks if the name of the subsection is exactly the specified name.
plumbing/format/config/section.go:143
↓ 2 callers
Method
IsWritten
IsWritten returns if that ObjectToPack was already written into the packfile or not
plumbing/format/packfile/object_pack.go:65
↓ 2 callers
Method
IterEncodedObjects
IterEncodedObjects returns an iterator for all the objects in the packfile with the given type.
storage/filesystem/object.go:595
↓ 2 callers
Method
Kill
Kill and close the session whatever the state it is. It will block until the command is terminated.
plumbing/transport/internal/common/common.go:77
↓ 2 callers
Method
LazyWriter
LazyWriter enables an object to be lazily written. It returns: - w: a writer to receive the object's content. - lwh: a func to write the object header
plumbing/format/packfile/parser.go:189
↓ 2 callers
Method
Len
()
utils/merkletrie/difftree_test.go:228
↓ 2 callers
Method
Len
()
plumbing/protocol/packp/ulreq_decode_test.go:120
↓ 2 callers
Function
LoadConfig
LoadConfig loads a config file from a given scope. The returned Config, contains exclusively information from the given scope. If it couldn't find a c
config/config.go:163
↓ 2 callers
Method
Marshal
Marshal returns Modules encoded as a git-config file.
config/modules.go:59
↓ 2 callers
Method
Match
Match matches the given path to the pattern.
plumbing/format/gitignore/pattern.go:29
↓ 2 callers
Function
MatchesScpLike
MatchesScpLike returns true if the given string matches an SCP-like format scheme.
internal/url/url.go:22
↓ 2 callers
Method
MergeBase
MergeBase mimics the behavior of `git merge-base actual other`, returning the best common ancestor between the actual and the passed one. The best com
plumbing/object/merge_base.go:17
↓ 2 callers
Method
ModifyEndpointIfRedirect
(res *http.Response)
plumbing/transport/http/common.go:302
↓ 2 callers
Method
Name
Name returns the name of a reference
plumbing/reference.go:268
↓ 2 callers
Method
Name
Name is name of the auth
plumbing/transport/http/common.go:361
↓ 2 callers
Method
Name
Name is name of the auth
plumbing/transport/http/common.go:394
↓ 2 callers
Method
Name
()
plumbing/transport/ssh/auth_method.go:48
↓ 2 callers
Method
Name
()
plumbing/transport/ssh/auth_method.go:72
↓ 2 callers
Method
Name
()
plumbing/transport/ssh/auth_method.go:95
↓ 2 callers
Method
Name
()
plumbing/transport/ssh/auth_method.go:144
← previous
next →
701–800 of 4,185, ranked by callers