MCPcopy Create free account

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

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

↓ 21 callersFunctionnewScanner
newScanner returns a new instance of scanner.
internal/revision/scanner.go:54
↓ 20 callersMethodBytes
Bytes return a slice of 4 bytes with the mode in little endian encoding.
plumbing/filemode/filemode.go:118
↓ 20 callersMethodChroot
(path string)
storage/filesystem/dotgit/repository_filesystem.go:105
↓ 20 callersMethodName
()
plumbing/transport/common.go:71
↓ 20 callersFunctionNewAdvRefs
NewAdvRefs returns a pointer to a new AdvRefs value, ready to be used.
plumbing/protocol/packp/advrefs.go:46
↓ 20 callersMethodPrintf
Printf prints the given message only if the target is enabled.
utils/trace/trace.go:51
↓ 20 callersMethodPut
Put puts the given object into the cache. Whether this object will actually be put into the cache or not is implementation specific.
plumbing/cache/common.go:20
↓ 20 callersMethodWrite
(p []byte)
utils/ioutil/common.go:203
↓ 20 callersFunctiondetectRenames
(c *C, changes Changes, opts *DiffTreeOptions, expectedResults int)
plumbing/object/rename_test.go:300
↓ 19 callersMethodCompare
Compare returns -1, 0 or 1 if the path p is smaller, equal or bigger than other, in "directory order"; for example: "a" < "b" "a/b/c/d/z" < "b" "a/b/
utils/merkletrie/noder/path.go:78
↓ 19 callersMethodCreateRemote
CreateRemote creates a new remote
repository.go:630
↓ 19 callersMethodDecode
(plumbing.EncodedObject)
plumbing/object/object.go:46
↓ 19 callersFunctionNewReportStatus
NewReportStatus creates a new ReportStatus message.
plumbing/protocol/packp/report_status.go:25
↓ 19 callersFunctionNewScanner
NewScanner returns a new Scanner to read from r.
plumbing/format/pktline/scanner.go:37
↓ 19 callersMethodShort
Short returns the short name of a ReferenceName
plumbing/reference.go:118
↓ 19 callersMethodSize
()
plumbing/object/commitgraph/commitnode_walker_helper.go:16
↓ 19 callersMethodTemporalFilesystem
()
common_test.go:174
↓ 19 callersFunctionmakeDelete
(c *C, f *File)
plumbing/object/rename_test.go:498
↓ 18 callersMethodEncode
Encode writes the Index to the stream of the encoder.
plumbing/format/index/encoder.go:37
↓ 18 callersMethodEncodef
Encodef encodes a single pkt-line with the payload formatted as the format specifier. The rest of the arguments will be used in the format string.
plumbing/format/pktline/encoder.go:122
↓ 18 callersFunctionOpen
Open opens a git repository using the given Storer and worktree filesystem, if the given storer is complete empty ErrRepositoryNotExists is returned.
repository.go:204
↓ 18 callersMethodParse
Parse start decoding phase of the packfile.
plumbing/format/packfile/parser.go:134
↓ 18 callersMethodRemote
Remote return a remote if exists
repository.go:597
↓ 18 callersMethodRemove
(name string)
worktree.go:1124
↓ 18 callersMethodSum
()
plumbing/hash.go:57
↓ 18 callersFunctioncheck
(c *C, input string, expected *dir)
utils/merkletrie/internal/fsnoder/new_test.go:13
↓ 17 callersMethodDecode
Decode reads the whole index object from its input and stores it in the value pointed to by idx.
plumbing/format/index/decoder.go:61
↓ 17 callersMethodEncodeString
EncodeString works similarly as Encode but payloads are specified as strings.
plumbing/format/pktline/encoder.go:109
↓ 17 callersMethodEntry
Entry returns the entry that match the given path, if any.
plumbing/format/index/index.go:71
↓ 17 callersMethodNewReceivePackSession
NewReceivePackSession starts a git-receive-pack session for an endpoint.
plumbing/transport/common.go:52
↓ 17 callersMethodSetConfig
(*Config)
config/config.go:30
↓ 17 callersMethodShallow
()
plumbing/storer/shallow.go:9
↓ 17 callersMethodStatus
Status returns the status of the submodule.
submodule.go:57
↓ 17 callersMethodType
Type contains the Operation to do with this Chunk.
plumbing/format/diff/patch.go:57
↓ 17 callersFunctionpktlines
returns a byte slice with the pkt-lines for the given payloads.
plumbing/protocol/packp/common_test.go:16
↓ 16 callersFunctionDiffTree
DiffTree calculates the list of changes between two merkletries. It uses the provided hashEqual callback to compare noders.
utils/merkletrie/difftree.go:265
↓ 16 callersMethodFlush
Flush encodes a flush-pkt to the output stream.
plumbing/format/pktline/encoder.go:47
↓ 16 callersFunctionNew
New function creates a full merkle trie from the string description of a filesystem tree. See examples of the string format in the package descriptio
utils/merkletrie/internal/fsnoder/new.go:14
↓ 16 callersMethodPush
Push performs a push to the remote. Returns NoErrAlreadyUpToDate if the remote was already up-to-date.
remote.go:93
↓ 16 callersMethodString
String returns a string representation of the Git URL.
plumbing/transport/common.go:160
↓ 16 callersMethodtag
(c *C, h plumbing.Hash)
plumbing/object/object_test.go:32
↓ 15 callersMethodAdd
Add adds the file contents of a file in the worktree to the index. if the file is already staged in the index no error is returned. If a file deleted
worktree_status.go:272
↓ 15 callersMethodContains
Contains checks whether the given hash is in the index.
plumbing/format/idxfile/idxfile.go:28
↓ 15 callersMethodError
()
remote.go:43
↓ 15 callersMethodFiles
Files returns the from and to Files, with all the necessary metadata about them. If the patch creates a new file, "from" will be nil. If the patch del
plumbing/format/diff/patch.go:36
↓ 15 callersFunctionNewParser
NewParser returns a new instance of parser.
internal/revision/parser.go:115
↓ 15 callersFunctionPlainOpen
PlainOpen opens a git repository from the given path. It detects if the repository is bare or a normal one. If the path doesn't contain a valid reposi
repository.go:297
↓ 15 callersMethodReset
(r io.Reader)
plumbing/format/packfile/scanner.go:66
↓ 15 callersMethodSetIndex
(*index.Index)
plumbing/storer/index.go:7
↓ 15 callersMethodtestDecoderErrorMatches
(c *C, input io.Reader, pattern string)
plumbing/protocol/packp/ulreq_decode_test.go:39
↓ 14 callersMethodSetType
SetType sets the ObjectType
plumbing/memory.go:32
↓ 14 callersMethodTemporalFilesystem
()
storage/filesystem/dotgit/dotgit_test.go:31
↓ 14 callersMethodtestDecodeOK
(c *C, payloads []string)
plumbing/protocol/packp/ulreq_decode_test.go:68
↓ 14 callersMethodtestDecoderErrorMatches
(c *C, input io.Reader, pattern string)
plumbing/protocol/packp/advrefs_decode_test.go:52
↓ 13 callersMethodClean
Clean the worktree by removing untracked files. An empty dir could be removed - this is what `git clean -f -d .` does.
worktree.go:857
↓ 13 callersFunctionClone
Clone a repository into the given Storer and worktree Filesystem with the given options, if worktree is nil a bare repository is created. If the given
repository.go:220
↓ 13 callersMethodCreateTag
CreateTag creates a tag. If opts is included, the tag is an annotated tag, otherwise a lightweight tag is created.
repository.go:732
↓ 13 callersMethodGetCommitDataByIndex
GetNodeByIndex gets the commit node from the commit graph using index obtained from child node, if available
plumbing/format/commitgraph/v2/commitgraph.go:48
↓ 13 callersMethodNewEncodedObject
NewEncodedObject returns a new plumbing.EncodedObject, the real type of the object can be a custom implementation or the default one, plumbing.MemoryO
plumbing/storer/object.go:21
↓ 13 callersFunctionNewObjectStorage
NewObjectStorage creates a new ObjectStorage with the given .git directory and cache.
storage/filesystem/object.go:38
↓ 13 callersFunctionNewSymbolicReference
NewSymbolicReference creates a new SymbolicReference reference
plumbing/reference.go:245
↓ 13 callersMethodObjectPacks
ObjectPacks returns hashes of object packs if the underlying implementation has pack files.
plumbing/storer/object.go:85
↓ 13 callersMethodPull
Pull incorporates changes from a remote repository into the current branch. Returns nil if the operation is successful, NoErrAlreadyUpToDate if there
worktree.go:50
↓ 13 callersFunctionReadUint32
ReadUint32 reads 4 bytes and returns them as a BigEndian uint32
utils/binary/read.go:123
↓ 13 callersMethodSize
()
plumbing/object.go:20
↓ 13 callersMethodSubmodule
Submodule returns the submodule with the given name
worktree.go:771
↓ 13 callersFunctionassertRename
(c *C, from, to *Change, rename *Change)
plumbing/object/rename_test.go:307
↓ 13 callersMethodmapToRepositoryFsByPath
(path string)
storage/filesystem/dotgit/repository_filesystem.go:26
↓ 13 callersFunctiontestUlReqEncode
(c *C, ur *UploadRequest, expectedPayloads []string)
plumbing/protocol/packp/ulreq_encode_test.go:19
↓ 12 callersMethodAdd
Add creates a new Entry and returns it. The caller should first check that another entry with the same path does not exist.
plumbing/format/index/index.go:61
↓ 12 callersFunctionGetBytesBuffer
GetBytesBuffer returns a *bytes.Buffer that is managed by a sync.Pool. Returns a buffer that is resetted and ready for use. After use, the *bytes.Buf
utils/sync/bytes.go:42
↓ 12 callersMethodIsDelta
()
plumbing/format/packfile/parser.go:605
↓ 12 callersMethodLstat
(filename string)
storage/filesystem/dotgit/repository_filesystem.go:93
↓ 12 callersFunctionNewDecoder
NewDecoder returns a new decoder that reads from r.
plumbing/format/index/decoder.go:50
↓ 12 callersFunctionNewEncoder
NewEncoder creates a new packfile encoder using a specific Writer and EncodedObjectStorer. By default deltas used to generate the packfile will be OFS
plumbing/format/packfile/encoder.go:29
↓ 12 callersFunctionPutBytesBuffer
PutBytesBuffer puts buf back into its sync.Pool.
utils/sync/bytes.go:49
↓ 12 callersMethodRemotes
Remotes returns a list with all the remotes
repository.go:612
↓ 12 callersMethodSetType
(ObjectType)
plumbing/object.go:19
↓ 12 callersMethodTempFile
(dir, prefix string)
storage/filesystem/dotgit/repository_filesystem.go:81
↓ 12 callersMethodUploadPack
UploadPack takes a git-upload-pack request and returns a response, including a packfile. Don't be confused by terminology, the client side of a git-up
plumbing/transport/common.go:83
↓ 12 callersMethodWrite
(idx *index.Index)
worktree.go:1113
↓ 12 callersMethodWrite
(p []byte)
plumbing/memory.go:53
↓ 12 callersMethodWrite
(p []byte)
plumbing/format/packfile/encoder.go:213
↓ 12 callersMethodtestFetch
(c *C, r *Remote, o *FetchOptions, expected []*plumbing.Reference)
remote_test.go:331
↓ 11 callersFunctionAssertReferences
(c *C, r *Repository, expected map[string]string)
common_test.go:219
↓ 11 callersMethodBytes
()
plumbing/object.go:76
↓ 11 callersMethodDst
Dst returns the destination for the given remote reference.
config/refspec.go:117
↓ 11 callersMethodFiles
Files returns the files before and after a change. For insertions from will be nil. For deletions to will be nil.
plumbing/object/change.go:44
↓ 11 callersFunctionGetTree
GetTree gets a tree from an object storer and decodes it.
plumbing/object/tree.go:46
↓ 11 callersMethodLast
Last returns the final noder in the path.
utils/merkletrie/noder/path.go:41
↓ 11 callersFunctionNewDemuxer
NewDemuxer returns a new Demuxer for the given t and read from r
plumbing/protocol/packp/sideband/demux.go:46
↓ 11 callersFunctionNewReferenceSliceIter
NewReferenceSliceIter returns a reference iterator for the given slice of objects.
plumbing/storer/reference.go:112
↓ 11 callersFunctionNewRootNode
NewRootNode returns the root node based on a given billy.Filesystem. In order to provide the submodule hash status, a map[string]plumbing.Hash should
utils/merkletrie/filesystem/node.go:41
↓ 11 callersMethodRemoveReference
(plumbing.ReferenceName)
plumbing/storer/reference.go:26
↓ 11 callersMethodReset
Reset the worktree to a specified state.
worktree.go:325
↓ 11 callersFunctionResolveReference
ResolveReference resolves a SymbolicReference to a HashReference.
plumbing/storer/reference.go:216
↓ 11 callersMethodSubmodules
Submodules returns all the available submodules
worktree.go:787
↓ 11 callersMethodWrite
(p []byte)
storage/filesystem/dotgit/writers.go:90
↓ 11 callersFunctionWriteUint32
WriteUint32 writes the binary representation of a uint32 into w, in BigEndian order
utils/binary/write.go:42
↓ 11 callersMethodtest
(c *C)
plumbing/filemode/filemode_test.go:73
← previousnext →101–200 of 4,185, ranked by callers