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
↓ 4 callers
Method
PushContext
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 callers
Function
PutBufioReader
PutBufioReader puts reader back into its sync.Pool.
utils/sync/bufio.go:27
↓ 4 callers
Function
ReadUint64
ReadUint64 reads 8 bytes and returns them as a BigEndian uint32
utils/binary/read.go:113
↓ 4 callers
Function
ReadVariableWidthInt
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 callers
Function
ReaderFromDelta
(base plumbing.EncodedObject, deltaRC io.Reader)
plumbing/format/packfile/patch_delta.go:99
↓ 4 callers
Method
Readlink
(link string)
storage/filesystem/dotgit/repository_filesystem.go:101
↓ 4 callers
Method
Ref
Ref returns the reference for a given reference name.
storage/filesystem/dotgit/dotgit.go:721
↓ 4 callers
Method
RemoveOption
Remove an option with the specified key. The updated Section is returned.
plumbing/format/config/section.go:137
↓ 4 callers
Method
Reverse
()
config/refspec.go:135
↓ 4 callers
Method
SetEncodedObject
SetEncodedObject honors the storer.EncodedObjectStorer interface.
storage/transactional/object.go:21
↓ 4 callers
Method
StdinPipe
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 callers
Method
Subsection
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 callers
Method
ToOSFileMode
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 callers
Method
Validate
Validate validates the fields and sets the default values.
options.go:552
↓ 4 callers
Method
Validate
Validate validates the fields and sets the default values.
config/modules.go:96
↓ 4 callers
Function
Warning
Warning should be used to display a warning
_examples/common.go:34
↓ 4 callers
Method
Write
(p []byte)
plumbing/object/tree_test.go:193
↓ 4 callers
Method
Writer
Writer returns a ObjectWriter used to write the object's content.
plumbing/memory.go:49
↓ 4 callers
Function
advertisedReferences
(ctx context.Context, s *session, serviceName string)
plumbing/transport/http/common.go:42
↓ 4 callers
Method
cacheGet
(h plumbing.Hash)
plumbing/format/packfile/packfile.go:461
↓ 4 callers
Method
checkObjectNumber
(c *C, r io.Reader, n int)
plumbing/transport/test/upload_pack.go:255
↓ 4 callers
Method
discardObjectIfNeeded
()
plumbing/format/packfile/scanner.go:238
↓ 4 callers
Method
doAddFile
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 callers
Method
encode
(objects []*ObjectToPack)
plumbing/format/packfile/encoder.go:61
↓ 4 callers
Method
endpoint
(c *C, url string)
plumbing/transport/server/loader_test.go:29
↓ 4 callers
Function
find
(c *C, tree noder.Noder, name string)
utils/merkletrie/iter_test.go:425
↓ 4 callers
Method
forEachObserver
(f func(o Observer) error)
plumbing/format/packfile/parser.go:91
↓ 4 callers
Function
genBytes
(elements []piece)
plumbing/format/packfile/common_test.go:41
↓ 4 callers
Method
genObjectList
()
storage/filesystem/dotgit/dotgit.go:481
↓ 4 callers
Method
getHostWithPort
()
plumbing/transport/ssh/common.go:206
↓ 4 callers
Function
isFastForward
(s storer.EncodedObjectStorer, old, new plumbing.Hash, earliestShallow *plumbing.Hash)
remote.go:1114
↓ 4 callers
Function
isFlush
(payload []byte)
plumbing/protocol/packp/common.go:47
↓ 4 callers
Function
isRepoNotFoundError
(s string)
plumbing/transport/internal/common/common.go:431
↓ 4 callers
Method
marshal
()
config/config.go:642
↓ 4 callers
Method
name
()
plumbing/object/change.go:98
↓ 4 callers
Function
nameSimilarityScore
(a, b string)
plumbing/object/rename.go:285
↓ 4 callers
Function
newChanges
(src merkletrie.Changes)
plumbing/object/change_adaptor.go:50
↓ 4 callers
Function
newDeltaObjectToPack
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 callers
Function
newObject
(hash string, size FileSize)
plumbing/cache/object_test.go:174
↓ 4 callers
Function
newUlReqDecoder
(r io.Reader)
plumbing/protocol/packp/ulreq_decode.go:30
↓ 4 callers
Method
nextLine
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 callers
Method
readReferenceFile
(path, name string)
storage/filesystem/dotgit/dotgit.go:1002
↓ 4 callers
Function
testDecodeHelper
(c *C, index commitgraph.Index)
plumbing/format/commitgraph/v2/commitgraph_test.go:37
↓ 4 callers
Method
testDecodeOkExpected
(c *C, expected *ReferenceUpdateRequest, payloads []string)
plumbing/protocol/packp/updreq_decode_test.go:290
↓ 4 callers
Method
testNewHTTPError
(c *C, code int, msg string)
plumbing/transport/http/common_test.go:166
↓ 4 callers
Method
testPlainOpenGitFile
(c *C, f func(string, string) string)
repository_test.go:751
↓ 4 callers
Function
turnEOFIntoNil
(e error)
utils/merkletrie/doubleiter.go:62
↓ 4 callers
Function
unpackRepository
(f *fixtures.Fixture)
plumbing/object/commitgraph/commitnode_test.go:25
↓ 3 callers
Method
Action
Action is convenience method that returns what Action c represents.
utils/merkletrie/change.go:45
↓ 3 callers
Method
AddAlternate
(remote string)
plumbing/storer/object.go:45
↓ 3 callers
Method
AddOp
(t Operation, ss ...string)
plumbing/format/diff/unified_encoder.go:362
↓ 3 callers
Method
Alternates
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 callers
Method
ApplyAuthToRequest
(req *http.Request)
plumbing/transport/http/common.go:294
↓ 3 callers
Method
Branch
Branch return a Branch if exists
repository.go:682
↓ 3 callers
Method
CleanOriginal
CleanOriginal sets Original to nil
plumbing/format/packfile/object_pack.go:98
↓ 3 callers
Method
Close
()
plumbing/object/commitgraph/commitnode.go:50
↓ 3 callers
Method
Command
(cmd string, ep *transport.Endpoint, auth transport.AuthMethod)
plumbing/transport/ssh/common.go:49
↓ 3 callers
Method
Commit
()
storage/transactional/storage.go:18
↓ 3 callers
Function
CommitNewFile
(c *C, repo *Repository, fileName string)
common_test.go:238
↓ 3 callers
Method
CommitTime
CommitTime returns the Committer.When time of the Commit referenced by the commit graph node.
plumbing/object/commitgraph/commitnode.go:20
↓ 3 callers
Method
ConfigScoped
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 callers
Method
CountLooseRefs
()
plumbing/storer/reference.go:27
↓ 3 callers
Method
CreateRemoteAnonymous
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 callers
Method
Decode
Decode decodes the request from the reader.
plumbing/protocol/packp/gitproto.go:76
↓ 3 callers
Method
Decode
Decode decodes a packet line into an ErrorLine.
plumbing/format/pktline/error.go:38
↓ 3 callers
Method
Decode
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 callers
Method
Delete
Delete deletes a capability from the List
plumbing/protocol/packp/capability/list.go:152
↓ 3 callers
Method
DiffContext
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 callers
Function
DiffTree
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 callers
Method
Encode
Encode encodes patch.
plumbing/format/diff/unified_encoder.go:78
↓ 3 callers
Method
Encode
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 callers
Method
Encode
Encode encodes an MemoryIndex to the encoder writer.
plumbing/format/idxfile/encoder.go:24
↓ 3 callers
Method
EncodeWithoutSignature
(o plumbing.EncodedObject)
signer.go:11
↓ 3 callers
Method
EncodedObjectSize
EncodedObjectSize returns the plaintext size of the given object, without actually reading the full object data from storage.
storage/filesystem/object.go:312
↓ 3 callers
Method
EncodedObjectSize
EncodedObjectSize returns the plaintext size of the encoded object.
plumbing/storer/object.go:44
↓ 3 callers
Method
Entries
Entries returns an iterator to retrieve all index entries.
plumbing/format/idxfile/idxfile.go:39
↓ 3 callers
Method
Error
()
internal/revision/parser.go:19
↓ 3 callers
Method
Error
Error returns the first error if any.
plumbing/protocol/packp/report_status.go:30
↓ 3 callers
Function
FilterUnsupportedCapabilities
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 callers
Method
First
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 callers
Method
Flush
Flush is a no-op (deprecated)
plumbing/format/packfile/scanner.go:390
↓ 3 callers
Method
ForEach
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 callers
Method
ForEach
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 callers
Method
FullURL
()
plumbing/transport/common.go:137
↓ 3 callers
Method
Get
Get retrieves the encoded object in the packfile with the given hash.
plumbing/format/packfile/packfile.go:79
↓ 3 callers
Function
GetDelta
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 callers
Function
GetObject
GetObject gets an object from an object storer and decodes it.
plumbing/object/object.go:51
↓ 3 callers
Method
Has
Has checks if an Option exist with the given key.
plumbing/format/config/option.go:58
↓ 3 callers
Method
HasEncodedObject
HasEncodedObject returns ErrObjNotFound if the object doesn't exist. If the object does exist, it returns nil.
plumbing/storer/object.go:42
↓ 3 callers
Function
Independents
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 callers
Method
IsAncestor
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 callers
Method
IsBinary
IsBinary returns true if this patch is representing a binary file.
plumbing/format/diff/patch.go:32
↓ 3 callers
Method
IsDelete
IsDelete returns true if the refspec indicates a delete (empty src).
config/refspec.go:58
↓ 3 callers
Function
IsHash
IsHash returns true if the given string is a valid hash.
plumbing/hash.go:76
↓ 3 callers
Function
IsLocalEndpoint
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 callers
Method
IsNote
IsNote check if a reference is a note
plumbing/reference.go:99
↓ 3 callers
Method
IsRegular
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 callers
Method
IsZero
()
plumbing/hash.go:35
↓ 3 callers
Method
Len
()
plumbing/format/packfile/delta_selector.go:355
↓ 3 callers
Method
Lines
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
← previous
next →
501–600 of 4,185, ranked by callers