MCPcopy Create free account

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

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

↓ 4 callersMethodPushContext
PushContext performs a push to the remote. Returns NoErrAlreadyUpToDate if the remote was already up-to-date. The provided Context must be non-nil. I
remote.go:103
↓ 4 callersFunctionPutBufioReader
PutBufioReader puts reader back into its sync.Pool.
utils/sync/bufio.go:27
↓ 4 callersFunctionReadUint64
ReadUint64 reads 8 bytes and returns them as a BigEndian uint32
utils/binary/read.go:113
↓ 4 callersFunctionReadVariableWidthInt
ReadVariableWidthInt reads and returns an int in Git VLQ special format: Ordinary VLQ has some redundancies, example: the number 358 can be encoded
utils/binary/read.go:87
↓ 4 callersFunctionReaderFromDelta
(base plumbing.EncodedObject, deltaRC io.Reader)
plumbing/format/packfile/patch_delta.go:99
↓ 4 callersMethodReadlink
(link string)
storage/filesystem/dotgit/repository_filesystem.go:101
↓ 4 callersMethodRef
Ref returns the reference for a given reference name.
storage/filesystem/dotgit/dotgit.go:721
↓ 4 callersMethodRemoveOption
Remove an option with the specified key. The updated Section is returned.
plumbing/format/config/section.go:137
↓ 4 callersMethodReverse
()
config/refspec.go:135
↓ 4 callersMethodSetEncodedObject
SetEncodedObject honors the storer.EncodedObjectStorer interface.
storage/transactional/object.go:21
↓ 4 callersMethodStdinPipe
StdinPipe returns a pipe that will be connected to the command's standard input when the command starts. It should not be called after Start. The pipe
plumbing/transport/internal/common/common.go:60
↓ 4 callersMethodSubsection
Subsection returns a Subsection from the specified Section. If the Subsection does not exists, new one is created and added to Section.
plumbing/format/config/section.go:69
↓ 4 callersMethodToOSFileMode
ToOSFileMode returns the os.FileMode to be used when creating file system elements with the given git mode and a nil error on success. When the provi
plumbing/filemode/filemode.go:170
↓ 4 callersMethodValidate
Validate validates the fields and sets the default values.
options.go:552
↓ 4 callersMethodValidate
Validate validates the fields and sets the default values.
config/modules.go:96
↓ 4 callersFunctionWarning
Warning should be used to display a warning
_examples/common.go:34
↓ 4 callersMethodWrite
(p []byte)
plumbing/object/tree_test.go:193
↓ 4 callersMethodWriter
Writer returns a ObjectWriter used to write the object's content.
plumbing/memory.go:49
↓ 4 callersFunctionadvertisedReferences
(ctx context.Context, s *session, serviceName string)
plumbing/transport/http/common.go:42
↓ 4 callersMethodcacheGet
(h plumbing.Hash)
plumbing/format/packfile/packfile.go:461
↓ 4 callersMethodcheckObjectNumber
(c *C, r io.Reader, n int)
plumbing/transport/test/upload_pack.go:255
↓ 4 callersMethoddiscardObjectIfNeeded
()
plumbing/format/packfile/scanner.go:238
↓ 4 callersMethoddoAddFile
doAddFile create a new blob from path and update the index, added is true if the file added is different from the index. if s status is nil will skip
worktree_status.go:431
↓ 4 callersMethodencode
(objects []*ObjectToPack)
plumbing/format/packfile/encoder.go:61
↓ 4 callersMethodendpoint
(c *C, url string)
plumbing/transport/server/loader_test.go:29
↓ 4 callersFunctionfind
(c *C, tree noder.Noder, name string)
utils/merkletrie/iter_test.go:425
↓ 4 callersMethodforEachObserver
(f func(o Observer) error)
plumbing/format/packfile/parser.go:91
↓ 4 callersFunctiongenBytes
(elements []piece)
plumbing/format/packfile/common_test.go:41
↓ 4 callersMethodgenObjectList
()
storage/filesystem/dotgit/dotgit.go:481
↓ 4 callersMethodgetHostWithPort
()
plumbing/transport/ssh/common.go:206
↓ 4 callersFunctionisFastForward
(s storer.EncodedObjectStorer, old, new plumbing.Hash, earliestShallow *plumbing.Hash)
remote.go:1114
↓ 4 callersFunctionisFlush
(payload []byte)
plumbing/protocol/packp/common.go:47
↓ 4 callersFunctionisRepoNotFoundError
(s string)
plumbing/transport/internal/common/common.go:431
↓ 4 callersMethodmarshal
()
config/config.go:642
↓ 4 callersMethodname
()
plumbing/object/change.go:98
↓ 4 callersFunctionnameSimilarityScore
(a, b string)
plumbing/object/rename.go:285
↓ 4 callersFunctionnewChanges
(src merkletrie.Changes)
plumbing/object/change_adaptor.go:50
↓ 4 callersFunctionnewDeltaObjectToPack
newDeltaObjectToPack creates a correct ObjectToPack for a delta object, based on his base (could be another delta), the delta target (in this case cal
plumbing/format/packfile/object_pack.go:45
↓ 4 callersFunctionnewObject
(hash string, size FileSize)
plumbing/cache/object_test.go:174
↓ 4 callersFunctionnewUlReqDecoder
(r io.Reader)
plumbing/protocol/packp/ulreq_decode.go:30
↓ 4 callersMethodnextLine
Reads a new pkt-line from the scanner, makes its payload available as p.line and increments p.nLine. A successful invocation returns true, otherwise,
plumbing/protocol/packp/ulreq_decode.go:60
↓ 4 callersMethodreadReferenceFile
(path, name string)
storage/filesystem/dotgit/dotgit.go:1002
↓ 4 callersFunctiontestDecodeHelper
(c *C, index commitgraph.Index)
plumbing/format/commitgraph/v2/commitgraph_test.go:37
↓ 4 callersMethodtestDecodeOkExpected
(c *C, expected *ReferenceUpdateRequest, payloads []string)
plumbing/protocol/packp/updreq_decode_test.go:290
↓ 4 callersMethodtestNewHTTPError
(c *C, code int, msg string)
plumbing/transport/http/common_test.go:166
↓ 4 callersMethodtestPlainOpenGitFile
(c *C, f func(string, string) string)
repository_test.go:751
↓ 4 callersFunctionturnEOFIntoNil
(e error)
utils/merkletrie/doubleiter.go:62
↓ 4 callersFunctionunpackRepository
(f *fixtures.Fixture)
plumbing/object/commitgraph/commitnode_test.go:25
↓ 3 callersMethodAction
Action is convenience method that returns what Action c represents.
utils/merkletrie/change.go:45
↓ 3 callersMethodAddAlternate
(remote string)
plumbing/storer/object.go:45
↓ 3 callersMethodAddOp
(t Operation, ss ...string)
plumbing/format/diff/unified_encoder.go:362
↓ 3 callersMethodAlternates
Alternates returns DotGit(s) based off paths in objects/info/alternates if available. This can be used to checks if it's a shared repository.
storage/filesystem/dotgit/dotgit.go:1146
↓ 3 callersMethodApplyAuthToRequest
(req *http.Request)
plumbing/transport/http/common.go:294
↓ 3 callersMethodBranch
Branch return a Branch if exists
repository.go:682
↓ 3 callersMethodCleanOriginal
CleanOriginal sets Original to nil
plumbing/format/packfile/object_pack.go:98
↓ 3 callersMethodClose
()
plumbing/object/commitgraph/commitnode.go:50
↓ 3 callersMethodCommand
(cmd string, ep *transport.Endpoint, auth transport.AuthMethod)
plumbing/transport/ssh/common.go:49
↓ 3 callersMethodCommit
()
storage/transactional/storage.go:18
↓ 3 callersFunctionCommitNewFile
(c *C, repo *Repository, fileName string)
common_test.go:238
↓ 3 callersMethodCommitTime
CommitTime returns the Committer.When time of the Commit referenced by the commit graph node.
plumbing/object/commitgraph/commitnode.go:20
↓ 3 callersMethodConfigScoped
ConfigScoped returns the repository config, merged with requested scope and lower. For example if, config.GlobalScope is given the local and global co
repository.go:566
↓ 3 callersMethodCountLooseRefs
()
plumbing/storer/reference.go:27
↓ 3 callersMethodCreateRemoteAnonymous
CreateRemoteAnonymous creates a new anonymous remote. c.Name must be "anonymous". It's used like 'git fetch git@github.com:src-d/go-git.git master:mas
repository.go:652
↓ 3 callersMethodDecode
Decode decodes the request from the reader.
plumbing/protocol/packp/gitproto.go:76
↓ 3 callersMethodDecode
Decode decodes a packet line into an ErrorLine.
plumbing/format/pktline/error.go:38
↓ 3 callersMethodDecode
Decode reads the whole config from its input and stores it in the value pointed to by config.
plumbing/format/config/decoder.go:21
↓ 3 callersMethodDelete
Delete deletes a capability from the List
plumbing/protocol/packp/capability/list.go:152
↓ 3 callersMethodDiffContext
DiffContext returns a list of changes between this tree and the provided one Error will be returned if context expires. Provided context must be non n
plumbing/object/tree.go:348
↓ 3 callersFunctionDiffTree
DiffTree compares the content and mode of the blobs found via two tree objects. DiffTree does not perform rename detection, use DiffTreeWithOptions in
plumbing/object/difftree.go:15
↓ 3 callersMethodEncode
Encode encodes patch.
plumbing/format/diff/unified_encoder.go:78
↓ 3 callersMethodEncode
Encode encodes a pkt-line with the payload specified and write it to the output stream. If several payloads are specified, each of them will get stre
plumbing/format/pktline/encoder.go:56
↓ 3 callersMethodEncode
Encode encodes an MemoryIndex to the encoder writer.
plumbing/format/idxfile/encoder.go:24
↓ 3 callersMethodEncodeWithoutSignature
(o plumbing.EncodedObject)
signer.go:11
↓ 3 callersMethodEncodedObjectSize
EncodedObjectSize returns the plaintext size of the given object, without actually reading the full object data from storage.
storage/filesystem/object.go:312
↓ 3 callersMethodEncodedObjectSize
EncodedObjectSize returns the plaintext size of the encoded object.
plumbing/storer/object.go:44
↓ 3 callersMethodEntries
Entries returns an iterator to retrieve all index entries.
plumbing/format/idxfile/idxfile.go:39
↓ 3 callersMethodError
()
internal/revision/parser.go:19
↓ 3 callersMethodError
Error returns the first error if any.
plumbing/protocol/packp/report_status.go:30
↓ 3 callersFunctionFilterUnsupportedCapabilities
FilterUnsupportedCapabilities it filter out all the UnsupportedCapabilities from a capability.List, the intended usage is on the client implementation
plumbing/transport/common.go:316
↓ 3 callersMethodFirst
First returns, but dont extract, the noder with the alphabetically smaller name in the frame and true if the frame was not empty. Otherwise it returns
utils/merkletrie/internal/frame/frame.go:66
↓ 3 callersMethodFlush
Flush is a no-op (deprecated)
plumbing/format/packfile/scanner.go:390
↓ 3 callersMethodForEach
ForEach call the cb function for each reference contained on this iter until an error happens or the end of the iter is reached. If ErrStop is sent th
plumbing/storer/reference.go:133
↓ 3 callersMethodForEach
ForEach call the cb function for each object contained on this iter until an error happens or the end of the iter is reached. If ErrStop is sent the i
plumbing/storer/object.go:207
↓ 3 callersMethodFullURL
()
plumbing/transport/common.go:137
↓ 3 callersMethodGet
Get retrieves the encoded object in the packfile with the given hash.
plumbing/format/packfile/packfile.go:79
↓ 3 callersFunctionGetDelta
GetDelta returns an EncodedObject of type OFSDeltaObject. Base and Target object, will be loaded into memory to be able to create the delta object. To
plumbing/format/packfile/diff_delta.go:31
↓ 3 callersFunctionGetObject
GetObject gets an object from an object storer and decodes it.
plumbing/object/object.go:51
↓ 3 callersMethodHas
Has checks if an Option exist with the given key.
plumbing/format/config/option.go:58
↓ 3 callersMethodHasEncodedObject
HasEncodedObject returns ErrObjNotFound if the object doesn't exist. If the object does exist, it returns nil.
plumbing/storer/object.go:42
↓ 3 callersFunctionIndependents
Independents returns a subset of the passed commits, that are not reachable the others It mimics the behavior of `git merge-base --independent commit.
plumbing/object/merge_base.go:89
↓ 3 callersMethodIsAncestor
IsAncestor returns true if the actual commit is ancestor of the passed one. It returns an error if the history is not transversable It mimics the beha
plumbing/object/merge_base.go:46
↓ 3 callersMethodIsBinary
IsBinary returns true if this patch is representing a binary file.
plumbing/format/diff/patch.go:32
↓ 3 callersMethodIsDelete
IsDelete returns true if the refspec indicates a delete (empty src).
config/refspec.go:58
↓ 3 callersFunctionIsHash
IsHash returns true if the given string is a valid hash.
plumbing/hash.go:76
↓ 3 callersFunctionIsLocalEndpoint
IsLocalEndpoint returns true if the given URL string specifies a local file endpoint. For example, on a Linux machine, `/home/user/src/go-git` would
internal/url/url.go:37
↓ 3 callersMethodIsNote
IsNote check if a reference is a note
plumbing/reference.go:99
↓ 3 callersMethodIsRegular
IsRegular returns if the FileMode represents that of a regular file, this is, either Regular or Deprecated. Please note that Executable are not regul
plumbing/filemode/filemode.go:149
↓ 3 callersMethodIsZero
()
plumbing/hash.go:35
↓ 3 callersMethodLen
()
plumbing/format/packfile/delta_selector.go:355
↓ 3 callersMethodLines
Lines returns a slice of lines from the contents of a file, stripping all end of line characters. If the last line is empty (does not end in an end of
plumbing/object/file.go:60
← previousnext →501–600 of 4,185, ranked by callers