Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benhoyt/gogit
/ functions
Functions
21 in github.com/benhoyt/gogit
⨍
Functions
21
◇
Types & classes
0
↓ 19 callers
Function
assert
(cond bool, format string, args ...any)
gogit.go:97
↓ 17 callers
Function
check
(value T, err error)
gogit.go:90
↓ 7 callers
Function
check0
(err error)
gogit.go:84
↓ 3 callers
Function
hashObject
Hash and write the given data as a git object of the given type.
gogit.go:147
↓ 3 callers
Function
readObject
Read git object with given hash (or hash prefix).
gogit.go:176
↓ 2 callers
Function
addBasicAuth
Add basic authentication header to request.
gogit.go:260
↓ 2 callers
Function
compress
Helper to zlib-compress a slice of bytes.
gogit.go:389
↓ 2 callers
Function
extractLines
Extract list of lines from given server data.
gogit.go:267
↓ 2 callers
Function
findCommitObjects
Find set of object hashes in this commit (recursively), its tree, its parents, and the hash of the commit itself.
gogit.go:304
↓ 2 callers
Function
getLocalHash
Return current commit hash of the local master branch.
gogit.go:167
↓ 1 callers
Function
commit
Commit tree of given paths to master, returning the commit hash.
gogit.go:112
↓ 1 callers
Function
createPack
Create pack file containing all objects in given list of object hashes.
gogit.go:354
↓ 1 callers
Function
encodePackObject
Encode a single object in pack file.
gogit.go:370
↓ 1 callers
Function
findMissingObjects
Find sorted list of object hashes in local commit that are missing at the remote.
gogit.go:286
↓ 1 callers
Function
findObject
Find object with given hash prefix and return path to object.
gogit.go:195
↓ 1 callers
Function
findTreeObjects
Find set of object hashes in this tree, including the hash of the tree itself.
gogit.go:333
↓ 1 callers
Function
getRemoteHash
Get current hash of master branch on remote.
gogit.go:238
↓ 1 callers
Function
initRepo
Create the directories and files required to initialise a git repo.
gogit.go:104
↓ 1 callers
Function
push
Push master branch (and missing objects) to remote.
gogit.go:211
↓ 1 callers
Function
writeTree
Write a "tree" object with the given paths (sub-trees are not supported).
gogit.go:133
Function
main
()
gogit.go:28