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
↓ 10 callers
Method
Config
Config return the repository config. In a filesystem backed repository this means read the `.git/config`.
repository.go:551
↓ 10 callers
Function
HashesSort
HashesSort sorts a slice of Hashes in increasing order.
plumbing/hash.go:63
↓ 10 callers
Method
Init
Init performs initialization of the storer and returns the error, if any.
plumbing/storer/storer.go:14
↓ 10 callers
Method
IsBranch
IsBranch check if a reference is a branch
plumbing/reference.go:94
↓ 10 callers
Method
IsTag
IsTag check if a reference is a tag
plumbing/reference.go:109
↓ 10 callers
Function
NewCommitPreorderIter
NewCommitPreorderIter returns a CommitIter that walks the commit history, starting at the given commit and visiting its parents in pre-order. The give
plumbing/object/commit_walker.go:26
↓ 10 callers
Function
NewPublicKeys
NewPublicKeys returns a PublicKeys from a PEM encoded private key. An encryption password should be given if the pemBytes contains a password encrypte
plumbing/transport/ssh/auth_method.go:121
↓ 10 callers
Method
NextObject
NextObject writes the content of the next object into the reader, returns the number of bytes written, the CRC32 of the content and an error, if any
plumbing/format/packfile/scanner.go:310
↓ 10 callers
Method
ObjectPack
ObjectPack returns a fs.File of the given packfile
storage/filesystem/dotgit/dotgit.go:302
↓ 10 callers
Method
OpenFile
(filename string, flag int, perm os.FileMode)
storage/filesystem/dotgit/repository_filesystem.go:61
↓ 10 callers
Method
Parse
Parse explode a revision string into revisioner chunks
internal/revision/parser.go:138
↓ 10 callers
Method
Print
Print prints the given message only if the target is enabled.
utils/trace/trace.go:44
↓ 10 callers
Method
Rename
(oldpath, newpath string)
storage/filesystem/dotgit/repository_filesystem.go:69
↓ 10 callers
Method
Repository
Repository returns the Repository represented by this submodule
submodule.go:102
↓ 10 callers
Method
Seek
Seek seeks to a location. If the underlying reader is not an io.ReadSeeker, then only whence=io.SeekCurrent is supported, any other operation fails.
plumbing/format/packfile/scanner.go:457
↓ 10 callers
Method
SetOption
SetOption sets an option to a given section and subsection. Use the NoSubsection constant for the subsection argument if no subsection is wanted.
plumbing/format/config/common.go:101
↓ 10 callers
Method
Symlink
(target, link string)
storage/filesystem/dotgit/repository_filesystem.go:97
↓ 10 callers
Method
Tag
Tag returns a tag from the repository. If you want to check to see if the tag is an annotated tag, you can call TagObject on the hash of the referenc
repository.go:841
↓ 10 callers
Method
Update
Update the registered submodule to match what the superproject expects, the submodule should be initialized first calling the Init method or setting i
submodule.go:167
↓ 10 callers
Function
assertChildren
(c *C, n noder.Noder, expected []noder.Noder)
utils/merkletrie/internal/fsnoder/dir_test.go:30
↓ 10 callers
Function
do
(c *C, list []diffTreeTest)
utils/merkletrie/difftree_test.go:280
↓ 10 callers
Method
run
Executes all the tests in a testsCollection.
utils/merkletrie/iter_test.go:125
↓ 10 callers
Method
unscan
unscan pushes the previously read token back onto the buffer.
internal/revision/parser.go:135
↓ 9 callers
Method
AllReferences
()
plumbing/protocol/packp/advrefs.go:70
↓ 9 callers
Method
AssertIndependents
AssertIndependents validates the independent commits of the passed list
plumbing/object/merge_base_test.go:137
↓ 9 callers
Method
Decode
Decode decodes the response into the struct, isMultiACK should be true, if the request was done with multi_ack or multi_ack_detailed capabilities.
plumbing/protocol/packp/srvresp.go:23
↓ 9 callers
Method
Header
Header reads the whole packfile header (signature, version and object count). It returns the version and the object count and performs checks on the v
plumbing/format/packfile/scanner.go:80
↓ 9 callers
Method
ID
ID returns the Commit object id referenced by the commit graph node.
plumbing/object/commitgraph/commitnode.go:16
↓ 9 callers
Method
IsEmpty
IsEmpty returns true if doesn't contain any reference.
plumbing/protocol/packp/advrefs.go:206
↓ 9 callers
Method
Marshal
Marshal returns Config encoded as a git-config file.
config/config.go:409
↓ 9 callers
Method
Name
()
plumbing/format/gitattributes/attributes.go:38
↓ 9 callers
Function
NewDecoder
NewDecoder builds a new idx stream decoder, that reads from r.
plumbing/format/idxfile/decoder.go:32
↓ 9 callers
Function
NewFilterCommitIter
NewFilterCommitIter returns a CommitIter that walks the commit history, starting at the passed commit and visiting its parents in Breadth-first order.
plumbing/object/commit_walker_bfs_filtered.go:19
↓ 9 callers
Function
NewHasher
(t ObjectType, size int64)
plumbing/hash.go:48
↓ 9 callers
Function
NewParser
NewParser creates a new Parser. The Scanner source must be seekable. If it's not, NewParserWithStorage should be used instead.
plumbing/format/packfile/parser.go:61
↓ 9 callers
Function
NewReadCloser
NewReadCloser creates an `io.ReadCloser` with the given `io.Reader` and `io.Closer`.
utils/ioutil/common.go:54
↓ 9 callers
Function
Objects
Objects applies a complementary set. It gets all the hashes from all the reachable objects from the given objects. Ignore param are object hashes that
plumbing/revlist/revlist.go:19
↓ 9 callers
Method
Refs
Refs scans the git directory collecting references, which it returns. Symbolic references are resolved and included in the output.
storage/filesystem/dotgit/dotgit.go:702
↓ 9 callers
Method
Remove
Remove remove the entry that match the give path and returns deleted entry.
plumbing/format/index/index.go:83
↓ 9 callers
Method
SetSize
SetSize set the object size, a content of the given size should be written afterwards
plumbing/memory.go:39
↓ 9 callers
Method
Src
Src returns the src side.
config/refspec.go:68
↓ 9 callers
Method
testDecodeOK
(c *C, payloads []string)
plumbing/protocol/packp/advrefs_decode_test.go:75
↓ 8 callers
Method
AddReference
(r *plumbing.Reference)
plumbing/protocol/packp/advrefs.go:56
↓ 8 callers
Method
AddWithOptions
AddWithOptions file contents to the index, updates the index using the current content found in the working tree, to prepare the content staged for t
worktree_status.go:318
↓ 8 callers
Method
Commit
Commit stores the current contents of the index in a new commit along with a log message from the user describing the changes.
worktree_commit.go:30
↓ 8 callers
Method
Decode
Decode reads the next advertised-refs message form its input and stores it in the AdvRefs.
plumbing/protocol/packp/advrefs_decode.go:16
↓ 8 callers
Method
Decode
Decode decodes list of capabilities from raw into the list
plumbing/protocol/packp/capability/list.go:48
↓ 8 callers
Method
Decode
Decode transforms a plumbing.EncodedObject into a Tag struct.
plumbing/object/tag.go:81
↓ 8 callers
Method
Error
Error returns a text representation of the error.
plumbing/format/packfile/error.go:16
↓ 8 callers
Method
File
File returns the hash of the file identified by the `path` argument. The path is interpreted as relative to the tree receiver.
plumbing/object/tree.go:75
↓ 8 callers
Method
FindEntry
FindEntry search a TreeEntry in this tree or any subtree.
plumbing/object/tree.go:130
↓ 8 callers
Method
Get
(alias, key string)
plumbing/transport/ssh/common.go:29
↓ 8 callers
Method
Hash
Hash returns the object Hash, the hash is calculated on-the-fly the first time it's called, in all subsequent calls the same Hash is returned even if
plumbing/memory.go:20
↓ 8 callers
Method
Hashes
Hashes returns all the hashes that are available in the index
plumbing/format/commitgraph/v2/commitgraph.go:50
↓ 8 callers
Method
Is
(target error)
remote.go:47
↓ 8 callers
Method
IsWildcard
IsWildcard returns true if the RefSpec contains a wildcard.
config/refspec.go:92
↓ 8 callers
Method
Load
Load loads a storer.Storer given a transport.Endpoint. Returns transport.ErrRepositoryNotFound if the repository does not exist.
plumbing/transport/server/loader.go:21
↓ 8 callers
Method
Mode
Mode returns the FileMode.
plumbing/format/diff/patch.go:47
↓ 8 callers
Function
New
New returns a new Hash for the given hash function. It panics if the hash function is not registered.
plumbing/hash/hash.go:54
↓ 8 callers
Function
New
New creates a new config instance.
plumbing/format/config/common.go:4
↓ 8 callers
Function
NewBranchReferenceName
NewBranchReferenceName returns a reference name describing a branch based on his short name.
plumbing/reference.go:65
↓ 8 callers
Function
NewMatcher
NewMatcher constructs a new global matcher. Patterns must be given in the order of increasing priority. That is most generic settings files first, the
plumbing/format/gitignore/matcher.go:14
↓ 8 callers
Function
NewUploadPackResponse
NewUploadPackResponse create a new UploadPackResponse instance, the request being responded by the response is required.
plumbing/protocol/packp/uppackresp.go:31
↓ 8 callers
Function
NewWithOptions
NewWithOptions sets non default configuration options. See New for complete help.
storage/filesystem/dotgit/dotgit.go:118
↓ 8 callers
Method
Read
(buf []byte)
utils/ioutil/common.go:177
↓ 8 callers
Method
ReadByte
()
plumbing/format/packfile/scanner.go:442
↓ 8 callers
Method
Reader
Reader returns an io.ReadCloser used to read the object's content. For a MemoryObject, this reader is seekable.
plumbing/memory.go:44
↓ 8 callers
Method
Remove
Remove removes files from the working tree and from the index.
worktree_status.go:555
↓ 8 callers
Method
Remove
(filename string)
storage/filesystem/dotgit/repository_filesystem.go:73
↓ 8 callers
Method
ResolveRevision
ResolveRevision resolves revision to corresponding hash. It will always resolve to a commit hash, not a tree or annotated tag. Implemented resolvers
repository.go:1549
↓ 8 callers
Function
UpdateObjectStorage
UpdateObjectStorage updates the storer with the objects in the given packfile.
plumbing/format/packfile/common.go:26
↓ 8 callers
Function
WriteFile
(fs billy.Filesystem, filename string, data []byte, perm os.FileMode)
utils/merkletrie/filesystem/node_test.go:225
↓ 8 callers
Method
Writer
()
plumbing/object.go:23
↓ 8 callers
Function
newChangeEntry
(p noder.Path)
plumbing/object/change_adaptor.go:29
↓ 8 callers
Method
newEndpoint
(c *C, name string)
plumbing/transport/ssh/upload_pack_test.go:82
↓ 8 callers
Function
newPath
utility function to build Paths
plumbing/object/change_adaptor_test.go:49
↓ 8 callers
Method
receivePack
(c *C, ep *transport.Endpoint, req *packp.ReferenceUpdateRequest, fixture *fixtures.Fixture, callAdvertisedR
plumbing/transport/test/receive_pack.go:266
↓ 8 callers
Method
test
(c *C, in []string, exp []string, isEmpty bool)
plumbing/protocol/packp/advrefs_test.go:162
↓ 8 callers
Function
testEncode
(c *C, input *AdvRefs, expected []byte)
plumbing/protocol/packp/advrefs_encode_test.go:18
↓ 7 callers
Method
AdvertisedReferencesContext
AdvertisedReferencesContext retrieves the advertised references for a repository. If the repository does not exist, returns ErrRepositoryNotFound. If
plumbing/transport/common.go:65
↓ 7 callers
Method
Commit
Commit returns the full commit object from the node
plumbing/object/commitgraph/commitnode.go:37
↓ 7 callers
Method
Contents
Contents returns the contents of a file as a string.
plumbing/object/file.go:31
↓ 7 callers
Method
CreateBranch
CreateBranch creates a new Branch
repository.go:697
↓ 7 callers
Method
Decode
Decode transform an plumbing.EncodedObject into a Tree struct
plumbing/object/tree.go:216
↓ 7 callers
Method
Decode
Decode transforms a plumbing.EncodedObject into a Commit struct.
plumbing/object/commit.go:186
↓ 7 callers
Method
Error
()
plumbing/protocol/packp/common.go:68
↓ 7 callers
Method
FilePatches
FilePatches returns a slice of patches per file.
plumbing/format/diff/patch.go:23
↓ 7 callers
Method
FindHash
FindHash finds the hash for the object with the given offset.
plumbing/format/idxfile/idxfile.go:35
↓ 7 callers
Method
Get
Get returns the values for a capability
plumbing/protocol/packp/capability/list.go:79
↓ 7 callers
Function
GetByteSlice
GetByteSlice returns a *[]byte that is managed by a sync.Pool. The initial slice length will be 16384 (16kb). After use, the *[]byte should be put ba
utils/sync/bytes.go:27
↓ 7 callers
Method
GetIndexByHash
GetIndexByHash gets the index in the commit graph from commit hash, if available
plumbing/format/commitgraph/v2/commitgraph.go:43
↓ 7 callers
Method
IsName
IsName checks if the name provided is equals to the Section name, case insensitive.
plumbing/format/config/section.go:63
↓ 7 callers
Function
NewClient
NewClient returns a new local client using the given git-upload-pack and git-receive-pack binaries.
plumbing/transport/file/client.go:30
↓ 7 callers
Function
NewObjectStorageWithOptions
NewObjectStorageWithOptions creates a new ObjectStorage with the given .git directory, cache and extra options
storage/filesystem/object.go:43
↓ 7 callers
Function
NewReader
NewReader returns a new Reader reading from r.
plumbing/format/objfile/reader.go:30
↓ 7 callers
Function
NewReferenceFilteredIter
NewReferenceFilteredIter returns a reference iterator for the given reference Iterator. This iterator will iterate only references that accomplish the
plumbing/storer/reference.go:46
↓ 7 callers
Function
NewReferenceStorage
NewReferenceStorage returns a new ReferenceStorer based on a base storer and a temporal storer.
storage/transactional/reference.go:22
↓ 7 callers
Function
NewTreeWalker
NewTreeWalker returns a new TreeWalker for the given tree. It is the caller's responsibility to call Close() when finished with the tree walker.
plumbing/object/tree.go:403
↓ 7 callers
Method
Next
Next returns the next entry in the packfile index.
plumbing/format/idxfile/idxfile.go:266
↓ 7 callers
Method
NextObjectHeader
NextObjectHeader returns the ObjectHeader for the next object in the reader
plumbing/format/packfile/scanner.go:168
← previous
next →
201–300 of 4,185, ranked by callers