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
Method
encodeCRC32
(idx *MemoryIndex)
plumbing/format/idxfile/encoder.go:83
Method
encodeChecksums
(idx *MemoryIndex)
plumbing/format/idxfile/encoder.go:130
Method
encodeDepth
()
plumbing/protocol/packp/ulreq_encode.go:108
Method
encodeFanout
(idx *MemoryIndex)
plumbing/format/idxfile/encoder.go:56
Function
encodeFirstLine
Adds the first pkt-line payload: head hash, head ref and capabilities. If HEAD ref is not found, the first reference ordered in increasing order will
plumbing/protocol/packp/advrefs_encode.go:101
Method
encodeFirstWant
()
plumbing/protocol/packp/ulreq_encode.go:50
Function
encodeFlush
(e *advRefsEncoder)
plumbing/protocol/packp/advrefs_encode.go:173
Method
encodeFlush
()
plumbing/protocol/packp/ulreq_encode.go:138
Method
encodeHashes
(idx *MemoryIndex)
plumbing/format/idxfile/encoder.go:66
Method
encodeHeader
(idx *MemoryIndex)
plumbing/format/idxfile/encoder.go:47
Method
encodeOffsets
(idx *MemoryIndex)
plumbing/format/idxfile/encoder.go:102
Function
encodePrefix
(e *advRefsEncoder)
plumbing/protocol/packp/advrefs_encode.go:80
Function
encodeRefs
Adds the (sorted) refs: hash SP refname EOL and their peeled refs if any.
plumbing/protocol/packp/advrefs_encode.go:130
Function
encodeShallow
Adds the (sorted) shallows: "shallow" SP hash EOL
plumbing/protocol/packp/advrefs_encode.go:152
Method
encodeShallows
()
plumbing/protocol/packp/ulreq_encode.go:88
Function
generationAndDateOrderComparator
generationAndDateOrderComparator compares two CommitNode objects based on their generation and commit time. If the left CommitNode object is in a high
plumbing/object/commitgraph/commitnode_walker_helper.go:91
Function
getFullPath
(treePath, path string)
_examples/ls/main.go:122
Function
getSHA1
(t plumbing.ObjectType, data []byte)
plumbing/format/packfile/parser.go:561
Function
handlerSSH
(s ssh.Session)
plumbing/transport/ssh/upload_pack_test.go:91
Function
init
()
worktree_windows.go:13
Function
init
()
worktree_bsd.go:12
Function
init
()
worktree_linux.go:12
Function
init
()
worktree.go:463
Function
init
()
worktree_plan9.go:10
Function
init
()
worktree_js.go:12
Function
init
()
worktree_unix_other.go:12
Function
init
()
plumbing/hash/hash.go:16
Method
init
(buf []byte)
plumbing/format/packfile/delta_index.go:14
Method
isDepth
()
plumbing/protocol/packp/ulreq.go:25
Method
isDepth
()
plumbing/protocol/packp/ulreq.go:34
Method
isDepth
()
plumbing/protocol/packp/ulreq.go:43
Method
isDepth
()
plumbing/protocol/packp/ulreq.go:52
Function
isEquals
(a, b noder.Hasher)
utils/merkletrie/index/node_test.go:108
Function
isSymlinkWindowsNonAdmin
(err error)
worktree_windows.go:23
Function
isSymlinkWindowsNonAdmin
(err error)
worktree_bsd.go:24
Function
isSymlinkWindowsNonAdmin
(err error)
worktree_linux.go:24
Function
isSymlinkWindowsNonAdmin
(err error)
worktree_plan9.go:29
Function
isSymlinkWindowsNonAdmin
(err error)
worktree_unix_other.go:24
Function
main
Example of how to show the progress when you do a basic clone operation.
_examples/progress/main.go:11
Function
main
Retrieve remote tags without cloning repository
_examples/ls-remote/main.go:15
Function
main
Open an existing repository in a specific folder.
_examples/open/main.go:13
Function
main
Example how to resolve a revision into its commit counterpart
_examples/ls/main.go:25
Function
main
Basic example of how to blame a repository.
_examples/blame/main.go:12
Function
main
Graceful cancellation example of a basic git operation such as Clone.
_examples/context/main.go:13
Function
main
Example of how to: - Create a new in-memory repository - Create a new remote named "example" - List remotes and print them - Pull using the new remote
_examples/remotes/main.go:20
Function
main
Example of how to open a repository in a specific path, and push to its default remote (origin).
_examples/push/main.go:12
Function
main
Basic example of how to clone a repository using clone options.
_examples/clone/main.go:12
Function
main
()
_examples/clone/auth/ssh/private_key/main.go:12
Function
main
()
_examples/clone/auth/ssh/ssh_agent/main.go:12
Function
main
()
_examples/clone/auth/basic/username_password/main.go:12
Function
main
()
_examples/clone/auth/basic/access_token/main.go:12
Function
main
Example of how to: - Clone a repository into memory - Get the HEAD reference - Using the HEAD reference, obtain the commit this reference is pointing
_examples/log/main.go:18
Function
main
Basic example of how to commit changes to the current branch to an existing repository.
_examples/commit/main.go:16
Function
main
Command that mimics `git merge-base --all <baseRev> <headRev>` Command that mimics `git merge-base --is-ancestor <baseRev> <headRev>` Command that mim
_examples/merge_base/main.go:44
Function
main
Basic example of how to checkout a specific commit.
_examples/checkout/main.go:13
Function
main
()
_examples/azure_devops/main.go:14
Function
main
Example of an specific use case: - Clone a repository in a specific path - Get the HEAD reference - Using the HEAD reference, obtain the commit this r
_examples/showcase/main.go:22
Function
main
Example how to resolve a revision into its commit counterpart
_examples/revision/main.go:13
Function
main
This example requires building with the sha256 tag for it to work: go run -tags sha256 main.go /tmp/repository Basic example of how to initialise a re
_examples/sha256/main.go:19
Function
main
An example of how to create and remove branches or any other kind of reference.
_examples/branch/main.go:12
Function
main
Here is an example to configure http client according to our own needs.
_examples/custom_http/main.go:18
Function
main
Basic example of how to find if HEAD is tagged.
_examples/find-if-any-tag-point-head/main.go:13
Function
main
Basic example of how to clone a repository including a submodule and updating submodule ref
_examples/submodule/main.go:12
Function
main
Basic example of how to list tags.
_examples/tag/main.go:14
Function
main
Pull changes from a remote repository
_examples/pull/main.go:12
Function
main
Checkout a branch
_examples/checkout-branch/main.go:14
Function
main
Example of how create a tag and push it to a remote.
_examples/tag-create-push/main.go:16
Function
main
()
cli/go-git/main.go:16
Method
marshal
()
config/branch.go:60
Method
marshal
()
config/url.go:48
Method
onError
(err error)
plumbing/transport/internal/common/common.go:318
Function
preReceiveHook
preReceiveHook returns the bytes of a pre-receive hook script that prints m before exiting successfully
repository_windows_test.go:7
Function
preReceiveHook
preReceiveHook returns the bytes of a pre-receive hook script that prints m before exiting successfully
repository_plan9_test.go:10
Function
readCRC32
(idx *MemoryIndex, r io.Reader)
plumbing/format/idxfile/decoder.go:130
Function
readChecksums
(idx *MemoryIndex, r io.Reader)
plumbing/format/idxfile/decoder.go:168
Function
readFanout
(idx *MemoryIndex, r io.Reader)
plumbing/format/idxfile/decoder.go:87
Function
readObjectNames
(idx *MemoryIndex, r io.Reader)
plumbing/format/idxfile/decoder.go:101
Function
readOffsets
(idx *MemoryIndex, r io.Reader)
plumbing/format/idxfile/decoder.go:142
Function
readVersion
(idx *MemoryIndex, r io.Reader)
plumbing/format/idxfile/decoder.go:73
Method
removeTransport
(opts transportOptions)
plumbing/transport/http/transport.go:22
Method
reverse
()
utils/merkletrie/difftree_test.go:250
Method
scan
Scan extracts tokens and their strings counterpart from the reader
internal/revision/scanner.go:60
Method
setPackfile
()
plumbing/protocol/packp/updreq_decode.go:198
Method
tree
(c *C, h plumbing.Hash)
plumbing/object/object_test.go:38
Method
writeTo
(sb *strings.Builder, color ColorConfig)
plumbing/format/diff/unified_encoder.go:323
← previous
4,101–4,185 of 4,185, ranked by callers