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
↓ 2 callers
Method
Name
()
plumbing/transport/ssh/auth_method.go:205
↓ 2 callers
Function
NewBlobIter
NewBlobIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns a *BlobIter that iterates over all blobs contained in the st
plumbing/object/blob.go:107
↓ 2 callers
Function
NewBufferLRU
NewBufferLRU creates a new BufferLRU with the given maximum size. The maximum size will never be exceeded.
plumbing/cache/buffer_lru.go:21
↓ 2 callers
Function
NewBufferLRUDefault
NewBufferLRUDefault creates a new BufferLRU with the default cache size.
plumbing/cache/buffer_lru.go:26
↓ 2 callers
Function
NewClient
NewClient creates a new SSH client with an optional *ssh.ClientConfig.
plumbing/transport/ssh/common.go:33
↓ 2 callers
Function
NewClientWithOptions
NewClientWithOptions returns a new client configured with the provided net/http client and other custom options specific to the client. If the net/htt
plumbing/transport/http/common.go:143
↓ 2 callers
Function
NewContextReader
NewContextReader wraps a reader to make it respect given Context. If there is a blocking read, the returned Reader will return whenever the context is
utils/ioutil/common.go:144
↓ 2 callers
Function
NewEncoder
NewEncoder returns a new encoder that writes to w.
plumbing/format/config/encoder.go:19
↓ 2 callers
Function
NewEncoder
NewEncoder returns a new stream encoder that writes to w. Deprecated: This package uses the wrong types for Generation and Index in CommitData. Use t
plumbing/format/commitgraph/encoder.go:25
↓ 2 callers
Function
NewErrUnexpectedData
NewErrUnexpectedData returns a new ErrUnexpectedData containing the data and the message given
plumbing/protocol/packp/common.go:64
↓ 2 callers
Function
NewError
NewError returns a new error.
plumbing/format/packfile/error.go:11
↓ 2 callers
Function
NewFileIter
NewFileIter takes a storer.EncodedObjectStorer and a Tree and returns a *FileIter that iterates over all files contained in the tree, recursively.
plumbing/object/file.go:83
↓ 2 callers
Function
NewIterFromPath
NewIterFromPath returns a new absolute iterator from the noder at the end of the path p. When iterating, all returned paths will be absolute, using t
utils/merkletrie/iter.go:77
↓ 2 callers
Function
NewKnownHostsCallback
NewKnownHostsCallback returns ssh.HostKeyCallback based on a file based on a known_hosts file. http://man.openbsd.org/sshd#SSH_KNOWN_HOSTS_FILE_FORMAT
plumbing/transport/ssh/auth_method.go:232
↓ 2 callers
Function
NewModify
NewModify returns a new Change representing that a has been modified and it is now b.
utils/merkletrie/change.go:67
↓ 2 callers
Function
NewMultiReferenceIter
NewMultiReferenceIter returns an reference iterator for the given slice of EncodedObjectIters.
plumbing/storer/reference.go:180
↓ 2 callers
Function
NewMuxer
NewMuxer returns a new Muxer for the given t that writes on w. If t is equal to `Sideband` the max pack size is set to MaxPackedSize, in any other va
plumbing/protocol/packp/sideband/muxer.go:23
↓ 2 callers
Function
NewObjectCommitNodeIndex
NewObjectCommitNodeIndex returns CommitNodeIndex implementation that uses only object storage to load the nodes
plumbing/object/commitgraph/commitnode_object.go:22
↓ 2 callers
Function
NewObjectIter
NewObjectIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns an *ObjectIter that iterates over all objects contained in
plumbing/object/object.go:178
↓ 2 callers
Function
NewParserFromString
NewParserFromString returns a new instance of parser from a string.
internal/revision/parser.go:110
↓ 2 callers
Function
NewPublicKeysFromFile
NewPublicKeysFromFile returns a PublicKeys from a file containing a PEM encoded private key. An encryption password should be given if the pemBytes co
plumbing/transport/ssh/auth_method.go:135
↓ 2 callers
Function
NewReaderOnError
NewReaderOnError returns a io.Reader that call the notify function when an unexpected (!io.EOF) error happens, after call Read function.
utils/ioutil/common.go:167
↓ 2 callers
Function
NewReferenceUpdateRequestFromCapabilities
NewReferenceUpdateRequestFromCapabilities returns a pointer to a new ReferenceUpdateRequest value, the request capabilities are filled with the most o
plumbing/protocol/packp/updreq.go:58
↓ 2 callers
Function
NewRemoteHEADReferenceName
NewRemoteHEADReferenceName returns a reference name describing a the HEAD branch of a remote.
plumbing/reference.go:83
↓ 2 callers
Function
NewRepositoryFilesystem
(dotGitFs, commonDotGitFs billy.Filesystem)
storage/filesystem/dotgit/repository_filesystem.go:19
↓ 2 callers
Function
NewServer
NewServer returns a transport.Transport implementing a git server, independent of transport. Each transport must wrap this.
plumbing/transport/server/server.go:30
↓ 2 callers
Function
NewTagReferenceName
NewTagReferenceName returns a reference name describing a tag based on short his name.
plumbing/reference.go:89
↓ 2 callers
Function
NewTreeIter
NewTreeIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns a *TreeIter that iterates over all tree contained in the sto
plumbing/object/tree.go:513
↓ 2 callers
Function
NewTreeRootNode
NewTreeRootNode returns the root node of a Tree
plumbing/object/treenoder.go:28
↓ 2 callers
Function
NewUploadPackRequestFromCapabilities
NewUploadPackRequestFromCapabilities creates a new UploadPackRequest and returns a pointer. The request capabilities are filled with the most optimal
plumbing/protocol/packp/uppackreq.go:33
↓ 2 callers
Function
NewUploadRequestFromCapabilities
NewUploadRequestFromCapabilities returns a pointer to a new UploadRequest value, the request capabilities are filled with the most optimal ones, based
plumbing/protocol/packp/ulreq.go:74
↓ 2 callers
Function
NewWriteCloserOnError
NewWriteCloserOnError returns a io.WriteCloser that call the notify function when an unexpected (!io.EOF) error happens, after call Write function.
utils/ioutil/common.go:199
↓ 2 callers
Method
Next
Next moves the iterator to the next file and returns a pointer to it. If there are no more files, it returns io.EOF.
plumbing/object/file.go:89
↓ 2 callers
Method
NumParents
NumParents returns the number of parents in a commit.
plumbing/object/commit.go:133
↓ 2 callers
Method
Object
Object returns the object pointed to by the tag.
plumbing/object/tag.go:237
↓ 2 callers
Method
ObjectDelete
ObjectDelete removes the object file, if exists
storage/filesystem/dotgit/dotgit.go:644
↓ 2 callers
Method
ObjectStat
ObjectStat returns a os.FileInfo pointing the object file, if exists
storage/filesystem/dotgit/dotgit.go:626
↓ 2 callers
Method
ObjectsToPack
ObjectsToPack creates a list of ObjectToPack from the hashes provided, creating deltas if it's suitable, using an specific internal logic. `packWindo
plumbing/format/packfile/delta_selector.go:36
↓ 2 callers
Method
ObjectsWithPrefix
ObjectsWithPrefix returns the hashes of objects that have the given prefix.
storage/filesystem/dotgit/dotgit.go:350
↓ 2 callers
Method
OnFooter
OnFooter is called when decoding is done.
plumbing/format/packfile/parser.go:38
↓ 2 callers
Method
OnHeader
OnHeader is called when a new packfile is opened.
plumbing/format/packfile/parser.go:32
↓ 2 callers
Method
OnInflatedObjectContent
OnInflatedObjectContent is called for each decoded object.
plumbing/format/packfile/parser.go:36
↓ 2 callers
Function
OpenFileIndexWithParent
OpenFileIndexWithParent opens a serialized commit graph file in the format described at https://github.com/git/git/blob/master/Documentation/technical
plumbing/format/commitgraph/v2/file.go:70
↓ 2 callers
Method
PackRefs
()
plumbing/storer/reference.go:28
↓ 2 callers
Method
ParentHashes
ParentHashes returns hashes of the parent commits for a specified node
plumbing/object/commitgraph/commitnode.go:28
↓ 2 callers
Function
ParseBasicAuth
adapted from https://github.com/golang/go/blob/2ef70d9d0f98832c8103a7968b195e560a8bb262/src/net/http/request.go#L959
plumbing/transport/http/internal/test/test_utils.go:28
↓ 2 callers
Function
PlainInitWithOptions
(path string, opts *PlainInitOptions)
repository.go:251
↓ 2 callers
Method
Put
Put puts an object into the cache. If the object is already in the cache, it will be marked as used. Otherwise, it will be inserted. A single object m
plumbing/cache/object_lru.go:35
↓ 2 callers
Function
PutZlibWriter
PutZlibWriter puts w back into its sync.Pool.
utils/sync/zlib.go:72
↓ 2 callers
Function
ReadConfig
ReadConfig reads a config file from a io.Reader.
config/config.go:146
↓ 2 callers
Function
ReadPatterns
ReadPatterns reads the .git/info/exclude and then the gitignore patterns recursively traversing through the directory structure. The result is in the
plumbing/format/gitignore/dir.go:53
↓ 2 callers
Function
ReadUint16
ReadUint16 reads 2 bytes and returns them as a BigEndian uint16
utils/binary/read.go:133
↓ 2 callers
Function
ReadUntilFromBufioReader
ReadUntilFromBufioReader is like bufio.ReadBytes but drops the delimiter from the result.
utils/binary/read.go:53
↓ 2 callers
Method
Reader
Reader returns a reader allow the access to the content of the blob
plumbing/object/blob.go:92
↓ 2 callers
Method
Reference
Reference returns the reference for a given reference name. If resolved is true, any symbolic reference will be resolved.
repository.go:1502
↓ 2 callers
Function
RegisterHash
RegisterHash allows for the hash algorithm used to be overridden. This ensures the hash selection for go-git must be explicit, when overriding the def
plumbing/hash/hash.go:30
↓ 2 callers
Method
RepackObjects
(cfg *RepackConfig)
repository.go:1741
↓ 2 callers
Function
ReplaceTildeWithHome
(path string)
internal/path_util/path_util.go:9
↓ 2 callers
Method
ResetSparsely
(opts *ResetOptions, dirs []string)
worktree.go:280
↓ 2 callers
Method
SaveOriginalMetadata
SaveOriginalMetadata saves size, type and hash of Original object
plumbing/format/packfile/object_pack.go:88
↓ 2 callers
Method
SetConfig
SetConfig honors the storer.ConfigStorer interface.
storage/transactional/config.go:20
↓ 2 callers
Function
SetLogger
SetLogger sets the logger to use for tracing.
utils/trace/trace.go:39
↓ 2 callers
Method
SetOriginal
SetOriginal sets both Original and saves size, type and hash. If object is nil Original is set but previous resolved values are kept
plumbing/format/packfile/object_pack.go:82
↓ 2 callers
Method
SetShallow
SetShallow honors the storer.ShallowStorer interface.
storage/transactional/shallow.go:24
↓ 2 callers
Method
SetUpTest
(c *C)
plumbing/transport/http/common_test.go:239
↓ 2 callers
Function
SetupHTTPSProxy
(proxy *goproxy.ProxyHttpServer, proxiedRequests *int32)
plumbing/transport/http/internal/test/test_utils.go:11
↓ 2 callers
Method
Shallow
Shallow honors the storer.ShallowStorer interface.
storage/transactional/shallow.go:29
↓ 2 callers
Method
ShallowWriter
ShallowWriter returns a file pointer for write to the shallow file
storage/filesystem/dotgit/dotgit.go:195
↓ 2 callers
Method
Signature
ZeroChunk is not a valid chunk type, but it is used to determine the length of the chunk type list. Signature returns the byte signature for the chunk
plumbing/format/commitgraph/v2/chunk.go:34
↓ 2 callers
Method
StartDaemon
(c *C)
plumbing/transport/git/common_test.go:49
↓ 2 callers
Method
StatsContext
StatsContext returns the stats of a commit. Error will be return if context expires. Provided context must be non-nil.
plumbing/object/commit.go:374
↓ 2 callers
Method
StdinContext
(ctx context.Context)
plumbing/transport/internal/common/common.go:304
↓ 2 callers
Method
String
()
plumbing/hash.go:40
↓ 2 callers
Method
Type
Type returns the type of a reference
plumbing/reference.go:263
↓ 2 callers
Method
Valid
Valid returns true if t is a valid ObjectType.
plumbing/object.go:81
↓ 2 callers
Method
Validate
Validate validates the fields and sets the default values.
options.go:512
↓ 2 callers
Method
WriteChannel
WriteChannel writes p in the given channel. This method can be used with any channel, but is recommend use it only for the ProgressMessage and ErrorMe
plumbing/protocol/packp/sideband/muxer.go:43
↓ 2 callers
Function
WriteNopCloser
WriteNopCloser returns a WriteCloser with a no-op Close method wrapping the provided Writer w.
utils/ioutil/common.go:103
↓ 2 callers
Method
addOrUpdateFileToIndex
(idx *index.Index, filename string, h plumbing.Hash)
worktree_status.go:516
↓ 2 callers
Method
addRecursive
NewInsert or NewDelete
utils/merkletrie/change.go:123
↓ 2 callers
Method
advance
Advances the iterator in the desired direction: descend or dontDescend. Returns the new current element and a nil error on success. If there are no
utils/merkletrie/iter.go:139
↓ 2 callers
Function
alphabeticSortCommits
(commits []*Commit)
plumbing/object/merge_base_test.go:15
↓ 2 callers
Method
buildMap
()
plumbing/object/tree.go:331
↓ 2 callers
Method
buildObject
(content []byte)
plumbing/storer/object_test.go:58
↓ 2 callers
Method
calculateChildren
()
utils/merkletrie/filesystem/node.go:93
↓ 2 callers
Function
changeHash
(c *Change)
plumbing/object/rename.go:340
↓ 2 callers
Function
changeMode
(c *Change)
plumbing/object/rename.go:348
↓ 2 callers
Function
changeName
(c *Change)
plumbing/object/rename.go:333
↓ 2 callers
Function
checkAndUpdateReferenceStorerIfNeeded
( s storer.ReferenceStorer, r, old *plumbing.Reference)
repository.go:1155
↓ 2 callers
Method
checkExecPerm
(c *C)
plumbing/transport/file/server_test.go:70
↓ 2 callers
Function
checkFastForwardUpdate
(s storer.EncodedObjectStorer, remoteRefs storer.ReferenceStorer, cmd *packp.Command)
remote.go:1088
↓ 2 callers
Method
checkNotFoundError
()
plumbing/transport/internal/common/common.go:399
↓ 2 callers
Method
checkSupportedCapabilities
(cl *capability.List)
plumbing/transport/server/server.go:96
↓ 2 callers
Function
childrenFixture
Returns a collection of 2 noders: c1, c2.
utils/merkletrie/noder/noder_test.go:55
↓ 2 callers
Method
clean
()
storage/filesystem/dotgit/writers.go:128
↓ 2 callers
Method
cleanObjectList
()
storage/filesystem/dotgit/dotgit.go:476
↓ 2 callers
Method
cleanPackList
()
storage/filesystem/dotgit/dotgit.go:518
↓ 2 callers
Method
cloneRefSpec
(o *CloneOptions)
repository.go:1007
↓ 2 callers
Method
compare
Compare returns the comparison between the current elements in the merkletries.
utils/merkletrie/doubleiter.go:139
↓ 2 callers
Method
compareReaders
(c *C, a io.ReadCloser, b io.ReadCloser)
plumbing/protocol/packp/updreq_decode_test.go:299
← previous
next →
801–900 of 4,185, ranked by callers