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
↓ 1 callers
Method
Next
Next returns the next reference from the iterator. If the iterator has reached the end it will return io.EOF as an error.
plumbing/storer/reference.go:120
↓ 1 callers
Method
Next
()
plumbing/object/commit_walker_limit.go:27
↓ 1 callers
Method
Next
()
plumbing/object/commit_walker_path.go:42
↓ 1 callers
Method
Next
()
plumbing/object/commit_walker_bfs.go:52
↓ 1 callers
Method
Next
Next moves the iterator to the next tree and returns a pointer to it. If there are no more trees, it returns io.EOF.
plumbing/object/tree.go:519
↓ 1 callers
Method
Next
()
plumbing/object/commit_walker.go:44
↓ 1 callers
Method
Next
()
plumbing/object/commit_walker.go:141
↓ 1 callers
Method
Next
()
plumbing/object/commit_walker.go:292
↓ 1 callers
Method
Next
Next moves the iterator to the next object and returns a pointer to it. If there are no more objects, it returns io.EOF.
plumbing/object/object.go:184
↓ 1 callers
Method
Next
Next moves the iterator to the next blob and returns a pointer to it. If there are no more blobs, it returns io.EOF.
plumbing/object/blob.go:113
↓ 1 callers
Method
Next
()
plumbing/object/commit_walker_ctime.go:51
↓ 1 callers
Method
Next
Next moves the iterator to the next tag and returns a pointer to it. If there are no more tags, it returns io.EOF.
plumbing/object/tag.go:300
↓ 1 callers
Method
Next
Next returns the next commit of the CommitIter. It will return io.EOF if there are no more commits to visit, or an error if the history could not be t
plumbing/object/commit_walker_bfs_filtered.go:65
↓ 1 callers
Method
Next
()
plumbing/object/commitgraph/commitnode_walker_topo_order.go:46
↓ 1 callers
Method
Next
()
plumbing/object/commitgraph/commitnode_walker_ctime.go:53
↓ 1 callers
Method
Next
Next moves the iterator to the next commit and returns a pointer to it. If there are no more commits, it returns io.EOF.
plumbing/object/commitgraph/commitnode.go:65
↓ 1 callers
Method
Next
()
plumbing/format/packfile/packfile.go:551
↓ 1 callers
Method
Notes
Notes returns all the References that are notes. For more information: https://git-scm.com/docs/git-notes
repository.go:1396
↓ 1 callers
Method
Offset
()
plumbing/format/packfile/encoder.go:219
↓ 1 callers
Method
OnInflatedObjectHeader
OnInflatedObjectHeader is called for each object header read.
plumbing/format/packfile/parser.go:34
↓ 1 callers
Method
Open
(filename string)
storage/filesystem/dotgit/repository_filesystem.go:57
↓ 1 callers
Function
OpenChainFile
OpenChainFile reads a commit chain file and returns a slice of the hashes within it Commit-Graph chains are described at https://git-scm.com/docs/com
plumbing/format/commitgraph/v2/chain.go:18
↓ 1 callers
Function
OpenChainIndex
OpenChainIndex expects a billy.Filesystem representing a .git directory. It will read a commit-graph chain file and return a coalesced index. If the c
plumbing/format/commitgraph/v2/chain.go:69
↓ 1 callers
Function
OpenFileIndex
OpenFileIndex opens a serialized commit graph file in the format described at https://github.com/git/git/blob/master/Documentation/technical/commit-gr
plumbing/format/commitgraph/v2/file.go:64
↓ 1 callers
Method
Option
Option returns an option with the specified key. If the option does not exists, empty spring will be returned.
plumbing/format/config/section.go:149
↓ 1 callers
Method
OptionAll
OptionAll returns all possible values for an option with the specified key. If the option does not exists, an empty slice will be returned.
plumbing/format/config/section.go:114
↓ 1 callers
Method
OptionAll
OptionAll returns all possible values for an option with the specified key. If the option does not exists, an empty slice will be returned.
plumbing/format/config/section.go:155
↓ 1 callers
Method
ParentNodes
ParentNodes return a CommitNodeIter for parents of specified node.
plumbing/object/commitgraph/commitnode.go:24
↓ 1 callers
Function
ParseAttributesLine
ParseAttributesLine parses a gitattribute line, extracting path pattern and attributes.
plumbing/format/gitattributes/attributes.go:115
↓ 1 callers
Method
PatchContext
Patch returns a Patch with all the changes in chunks. This representation can be used to create several diff outputs. If context expires, an non-nil e
plumbing/object/change.go:157
↓ 1 callers
Method
PatchContext
PatchContext returns the Patch between the actual commit and the provided one. Error will be return if context expires. Provided context must be non-n
plumbing/object/commit.go:100
↓ 1 callers
Function
Paths
Paths returns the config file location for a given scope.
config/config.go:191
↓ 1 callers
Method
PullContext
PullContext incorporates changes from a remote repository into the current branch. Returns nil if the operation is successful, NoErrAlreadyUpToDate if
worktree.go:63
↓ 1 callers
Method
Push
Push pushes a new CommitNode to the stack
plumbing/object/commitgraph/commitnode_walker_helper.go:25
↓ 1 callers
Method
PushContext
PushContext performs a push to the remote. Returns NoErrAlreadyUpToDate if the remote was already up-to-date, from the remote named as FetchOptions.Re
repository.go:1225
↓ 1 callers
Method
Put
Put puts a buffer into the cache. If the buffer is already in the cache, it will be marked as used. Otherwise, it will be inserted. A buffers might be
plumbing/cache/buffer_lru.go:38
↓ 1 callers
Method
Read
Read reads the packfile data, if the request was done with any Sideband capability the content read should be demultiplexed. If the methods wasn't cal
plumbing/protocol/packp/uppackresp.go:93
↓ 1 callers
Method
Read
Read reads up to len(p) bytes from the PackData channel into p, an error can be return if an error happens when reading or if a message is sent in the
plumbing/protocol/packp/sideband/demux.go:66
↓ 1 callers
Method
Read
Read reads len(p) bytes into p from the object data stream. It returns the number of bytes read (0 <= n <= len(p)) and any error encountered. Even if
plumbing/format/objfile/reader.go:103
↓ 1 callers
Function
ReadPatterns
ReadPatterns reads gitattributes patterns recursively through the directory structure. The result is in ascending order of priority (last higher). Th
plumbing/format/gitattributes/dir.go:41
↓ 1 callers
Method
Reindex
Reindex indexes again all packfiles. Useful if git changed packfiles externally
storage/filesystem/object.go:72
↓ 1 callers
Method
RemoveOption
RemoveOption removes the option with the specified key. The updated Subsection is returned.
plumbing/format/config/section.go:178
↓ 1 callers
Method
RemoveSection
RemoveSection removes a section from a config file.
plumbing/format/config/common.go:58
↓ 1 callers
Method
RemoveSubsection
RemoveSubsection removes a subsection from a Section.
plumbing/format/config/section.go:94
↓ 1 callers
Method
RemoveSubsection
RemoveSubsection remove a subsection from a config file.
plumbing/format/config/common.go:71
↓ 1 callers
Method
Reset
(reader io.Reader)
plumbing/format/packfile/scanner.go:421
↓ 1 callers
Method
Rollback
()
plumbing/storer/object.go:114
↓ 1 callers
Method
Scanner
Scanner returns the packfile's Scanner
plumbing/format/packfile/packfile.go:531
↓ 1 callers
Method
SeekFromStart
SeekFromStart sets a new offset from start, returns the old position before the change.
plumbing/format/packfile/scanner.go:355
↓ 1 callers
Function
ServeReceivePack
(cmd ServerCommand, s transport.ReceivePackSession)
plumbing/transport/internal/common/server.go:46
↓ 1 callers
Function
ServeReceivePack
ServeReceivePack serves a git-receive-pack request using standard output, input and error. This is meant to be used when implementing a git-receive-pa
plumbing/transport/file/server.go:34
↓ 1 callers
Function
ServeUploadPack
(cmd ServerCommand, s transport.UploadPackSession)
plumbing/transport/internal/common/server.go:20
↓ 1 callers
Function
ServeUploadPack
ServeUploadPack serves a git-upload-pack request using standard output, input and error. This is meant to be used when implementing a git-upload-pack
plumbing/transport/file/server.go:16
↓ 1 callers
Method
SetAuth
(r *http.Request)
plumbing/transport/http/common.go:335
↓ 1 callers
Method
SetAuth
(r *http.Request)
plumbing/transport/http/common.go:386
↓ 1 callers
Method
SetColor
SetColor sets e's color configuration and returns e.
plumbing/format/diff/unified_encoder.go:60
↓ 1 callers
Method
SetDstPrefix
SetDstPrefix sets e's dstPrefix and returns e.
plumbing/format/diff/unified_encoder.go:72
↓ 1 callers
Method
SetIndex
SetIndex honors the storer.IndexStorer interface.
storage/transactional/index.go:26
↓ 1 callers
Method
SetOption
SetOption adds a new Option to the Section. If the option already exists, is replaced. The updated Section is returned.
plumbing/format/config/section.go:131
↓ 1 callers
Method
SetOption
SetOption adds a new Option to the Subsection. If the option already exists, is replaced. The updated Subsection is returned.
plumbing/format/config/section.go:172
↓ 1 callers
Method
SetSrcPrefix
SetSrcPrefix sets e's srcPrefix and returns e.
plumbing/format/diff/unified_encoder.go:66
↓ 1 callers
Method
SetUpSuite
(c *C)
plumbing/transport/server/upload_pack_test.go:15
↓ 1 callers
Method
SetUpTest
(c *C)
plumbing/transport/git/common_test.go:30
↓ 1 callers
Method
Sign
(message io.Reader)
signer.go:19
↓ 1 callers
Method
Size
Size returns the size of the object
plumbing/memory.go:35
↓ 1 callers
Method
SkipUnless
SkipUnless applies patterns in the form of A, A/B, A/B/C to the index to prevent the files from being checked out
plumbing/format/index/index.go:218
↓ 1 callers
Function
Sort
Sort sorts the references by name to ensure a consistent order.
internal/reference/sort.go:10
↓ 1 callers
Function
Src
Src computes and returns the source text
utils/diff/diff.go:53
↓ 1 callers
Method
String
()
remote.go:81
↓ 1 callers
Method
String
String returns the full path of the final noder as a string, using "/" as the separator.
utils/merkletrie/noder/path.go:28
↓ 1 callers
Method
String
()
plumbing/object.go:55
↓ 1 callers
Method
String
()
plumbing/transport/http/common.go:365
↓ 1 callers
Method
String
()
plumbing/transport/http/common.go:398
↓ 1 callers
Method
String
()
plumbing/transport/ssh/auth_method.go:52
↓ 1 callers
Method
String
()
plumbing/transport/ssh/auth_method.go:76
↓ 1 callers
Method
String
()
plumbing/transport/ssh/auth_method.go:99
↓ 1 callers
Method
String
()
plumbing/transport/ssh/auth_method.go:148
↓ 1 callers
Method
String
()
plumbing/transport/ssh/auth_method.go:209
↓ 1 callers
Method
String
()
plumbing/object/change.go:133
↓ 1 callers
Method
String
String returns the meta information contained in the tag as a formatted string.
plumbing/object/tag.go:248
↓ 1 callers
Method
TearDownSuite
(c *C)
plumbing/transport/server/server_test.go:42
↓ 1 callers
Method
TearDownSuite
(c *C)
plumbing/transport/file/common_test.go:39
↓ 1 callers
Method
TemporalHomeDir
()
common_test.go:154
↓ 1 callers
Method
TreeEntryFile
TreeEntryFile returns the *File for a given *TreeEntry.
plumbing/object/tree.go:120
↓ 1 callers
Method
TreeObject
TreeObject return a Tree with the given hash. If not found plumbing.ErrObjectNotFound is returned
repository.go:1410
↓ 1 callers
Method
TreeObjects
TreeObjects returns an unsorted TreeIter with all the trees in the repository
repository.go:1415
↓ 1 callers
Method
Type
()
storage/filesystem/dotgit/reader.go:58
↓ 1 callers
Method
Type
Type returns the ObjectType
plumbing/memory.go:29
↓ 1 callers
Method
Type
()
plumbing/format/packfile/object_pack.go:102
↓ 1 callers
Method
UpdateContext
UpdateContext updates all the submodules in this list. The provided Context must be non-nil. If the context expires before the operation is complete,
submodule.go:308
↓ 1 callers
Method
Validate
Validate validates the fields and sets the default values.
options.go:422
↓ 1 callers
Method
Validate
Validate validates the fields and sets the default values.
options.go:643
↓ 1 callers
Method
Validate
Validate validates a reference name. This follows the git-check-ref-format rules. See https://git-scm.com/docs/git-check-ref-format It is important t
plumbing/reference.go:167
↓ 1 callers
Method
Verify
Verify performs PGP verification of the commit with a provided armored keyring and returns openpgp.Entity associated with verifying key on success.
plumbing/object/commit.go:411
↓ 1 callers
Method
WantWrite
WantWrite checks if this ObjectToPack was marked as WantWrite before
plumbing/format/packfile/object_pack.go:76
↓ 1 callers
Function
WithColor
WithColor sets the color for key.
plumbing/format/diff/colorconfig.go:44
↓ 1 callers
Function
WritePackfileToObjectStorage
WritePackfileToObjectStorage writes all the packfile objects into the given object storage.
plumbing/format/packfile/common.go:42
↓ 1 callers
Function
WriteUint16
WriteUint16 writes the binary representation of a uint16 into w, in BigEndian order
utils/binary/write.go:48
↓ 1 callers
Method
add
(hash plumbing.Hash)
object_walker.go:47
↓ 1 callers
Method
add
(key int, cnt uint64)
plumbing/object/rename.go:717
← previous
next →
1,201–1,300 of 4,185, ranked by callers