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
↓ 3 callers
Method
Merge
Merge merges the reference branch into the current branch. If the merge is not possible (or supported) returns an error without changing the HEAD for
repository.go:1780
↓ 3 callers
Function
New
New takes the octal string representation of a FileMode and returns the FileMode and a nil error. If the string can not be parsed to a 32 bit unsigne
plumbing/filemode/filemode.go:58
↓ 3 callers
Function
NewBaseStorageSuite
(s Storer)
storage/test/storage_suite.go:41
↓ 3 callers
Function
NewClient
NewClient creates a new client with a custom net/http client. See `InstallProtocol` to install and override default http client. If the net/http clien
plumbing/transport/http/common.go:128
↓ 3 callers
Function
NewCommitIter
NewCommitIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns a CommitIter that iterates over all commits contained in t
plumbing/object/commit.go:476
↓ 3 callers
Function
NewCommitPostorderIter
NewCommitPostorderIter returns a CommitIter that walks the commit history like WalkCommitHistory but in post-order. This means that after walking a me
plumbing/object/commit_walker.go:129
↓ 3 callers
Function
NewContextWriteCloser
NewContextWriteCloser as NewContextWriter but with io.Closer interface.
utils/ioutil/common.go:149
↓ 3 callers
Function
NewEncodedObjectLookupIter
NewEncodedObjectLookupIter returns an object iterator given an object storage and a slice of object hashes.
plumbing/storer/object.go:133
↓ 3 callers
Function
NewFile
NewFile returns a File based on the given blob object
plumbing/object/file.go:26
↓ 3 callers
Function
NewIndexStorage
NewIndexStorage returns a new IndexStorer based on a base storer and a temporal storer.
storage/transactional/index.go:18
↓ 3 callers
Function
NewMultiEncodedObjectIter
NewMultiEncodedObjectIter returns an object iterator for the given slice of EncodedObjectIters.
plumbing/storer/object.go:227
↓ 3 callers
Method
NewObject
NewObject return a writer for a new object file.
storage/filesystem/dotgit/dotgit.go:343
↓ 3 callers
Function
NewObjectLRU
NewObjectLRU creates a new ObjectLRU with the given maximum size. The maximum size will never be exceeded.
plumbing/cache/object_lru.go:23
↓ 3 callers
Method
NewObjectPack
NewObjectPack return a writer for a new packfile, it saves the packfile to disk and also generates and save the index for the given packfile.
storage/filesystem/dotgit/dotgit.go:215
↓ 3 callers
Function
NewPermanentError
(err error)
plumbing/error.go:9
↓ 3 callers
Function
NewShallowStorage
NewShallowStorage returns a new ShallowStorage based on a base storer and a temporal storer.
storage/transactional/shallow.go:16
↓ 3 callers
Function
NewTagIter
NewTagIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns a *TagIter that iterates over all tags contained in the store
plumbing/object/tag.go:294
↓ 3 callers
Method
Next
()
plumbing/storer/reference.go:33
↓ 3 callers
Method
Next
()
plumbing/storer/object.go:263
↓ 3 callers
Function
ObjectsWithStorageForIgnores
ObjectsWithStorageForIgnores is the same as Objects, but a secondary storage layer can be provided, to be used to finding the full set of objects to b
plumbing/revlist/revlist.go:32
↓ 3 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/file.go:60
↓ 3 callers
Method
Option
Option returns the value for the specified key. Empty string is returned if key does not exists.
plumbing/format/config/section.go:108
↓ 3 callers
Method
Parent
Parent returns the ith parent of a commit.
plumbing/object/commit.go:140
↓ 3 callers
Function
ParseObjectType
ParseObjectType parses a string representation of ObjectType. It returns an error on parse failure.
plumbing/object.go:93
↓ 3 callers
Method
Patch
Patch returns a slice of Patch objects with all the changes between trees in chunks. This representation can be used to create several diff outputs.
plumbing/object/tree.go:354
↓ 3 callers
Method
Patch
Patch returns a Patch with all the file changes in chunks. This representation can be used to create several diff outputs.
plumbing/object/change.go:86
↓ 3 callers
Method
Path
Path returns the complete Path to the file, including the filename.
plumbing/format/diff/patch.go:49
↓ 3 callers
Method
Peek
(int)
utils/ioutil/common.go:15
↓ 3 callers
Method
Peek
()
plumbing/object/commitgraph/commitnode_walker_helper.go:15
↓ 3 callers
Method
Prune
(opt PruneOptions)
prune.go:33
↓ 3 callers
Method
Push
Push pushes a new CommitNode to the heap
plumbing/object/commitgraph/commitnode_walker_helper.go:58
↓ 3 callers
Function
Read
Read reads structured binary data from r into data. Bytes are read and decoded in BigEndian order https://golang.org/pkg/encoding/binary/#Read
utils/binary/read.go:16
↓ 3 callers
Function
ReadAttributesFile
(fs billy.Filesystem, path []string, attributesFile string, allowMacro bool)
plumbing/format/gitattributes/dir.go:21
↓ 3 callers
Method
RemoveGlob
RemoveGlob removes all paths, matching pattern, from the index. If pattern matches a directory path, all directory contents are removed from the index
worktree_status.go:652
↓ 3 callers
Method
RemoveReference
RemoveReference honors the storer.ReferenceStorer interface.
storage/transactional/reference.go:112
↓ 3 callers
Method
Reset
Reset returns the ANSI escape sequence to reset the color with key set from cc. If no color was set then no reset is needed so it returns the empty st
plumbing/format/diff/colorconfig.go:92
↓ 3 callers
Method
SetDelta
(base *ObjectToPack, delta plumbing.EncodedObject)
plumbing/format/packfile/object_pack.go:160
↓ 3 callers
Method
StderrPipe
StderrPipe returns a pipe that will be connected to the command's standard error when the command starts. It should not be called after Start.
plumbing/transport/internal/common/common.go:56
↓ 3 callers
Method
StdoutContext
(ctx context.Context)
plumbing/transport/internal/common/common.go:311
↓ 3 callers
Method
TagObjects
TagObjects returns a unsorted TagIter that can step through all of the annotated tags in the repository.
repository.go:1465
↓ 3 callers
Method
Tags
Tags returns all the tag References in a repository. If you want to check to see if the tag is an annotated tag, you can call TagObject on the hash R
repository.go:1369
↓ 3 callers
Method
Tree
Tree returns the tree that the tree walker most recently operated on.
plumbing/object/tree.go:484
↓ 3 callers
Method
Unmarshal
Unmarshal parses a git-config file and stores it.
config/modules.go:45
↓ 3 callers
Method
UpdateContext
UpdateContext the registered submodule to match what the superproject expects, the submodule should be initialized first calling the Init method or se
submodule.go:178
↓ 3 callers
Method
Validate
()
plumbing/transport/common.go:129
↓ 3 callers
Method
Validate
Validate validates fields of branch
config/branch.go:41
↓ 3 callers
Method
Validate
Validate validates the fields and sets the default values.
config/config.go:599
↓ 3 callers
Method
Value
()
plumbing/format/gitattributes/attributes.go:43
↓ 3 callers
Method
Write
Write writes p in the PackData channel
plumbing/protocol/packp/sideband/muxer.go:36
↓ 3 callers
Function
WriteVariableWidthInt
(w io.Writer, n int64)
utils/binary/write.go:20
↓ 3 callers
Method
addRefsFromRefDir
(refs *[]*plumbing.Reference, seen map[plumbing.ReferenceName]bool)
storage/filesystem/dotgit/dotgit.go:945
↓ 3 callers
Function
applyHeadersToRequest
it requires a bytes.Buffer, because we need to know the length
plumbing/transport/http/common.go:26
↓ 3 callers
Function
assertInfoRefs
(c *C, st storage.Storer, fs billy.Filesystem)
plumbing/serverinfo/serverinfo_test.go:37
↓ 3 callers
Function
assertObjectPacks
(c *C, st storage.Storer, fs billy.Filesystem)
plumbing/serverinfo/serverinfo_test.go:91
↓ 3 callers
Function
benchMarkReferenceString
(r *Reference, b *testing.B)
plumbing/reference_test.go:165
↓ 3 callers
Method
cachePut
(obj plumbing.EncodedObject)
plumbing/format/packfile/packfile.go:469
↓ 3 callers
Method
checkRemoteReference
(c *C, ep *transport.Endpoint, refName string, head plumbing.Hash)
plumbing/transport/test/receive_pack.go:292
↓ 3 callers
Function
commitIterFunc
(order LogOrder)
repository.go:1319
↓ 3 callers
Method
commitsFromRevs
(c *C, revs []string)
plumbing/object/merge_base_test.go:99
↓ 3 callers
Method
count
()
plumbing/object/rename.go:767
↓ 3 callers
Function
decodeDir
Expected data: a fsnoder description, for example: A(foo bar qux ...). When isRoot is true, unnamed dirs are supported, for example: (foo bar qux ...)
utils/merkletrie/internal/fsnoder/new.go:26
↓ 3 callers
Method
deleteFromIndex
(idx *index.Index, path string)
worktree_status.go:631
↓ 3 callers
Method
diffStagingWithWorktree
(reverse, excludeIgnoredChanges bool)
worktree_status.go:116
↓ 3 callers
Method
doRemoveFile
(idx *index.Index, path string)
worktree_status.go:622
↓ 3 callers
Method
encodedObject
(h plumbing.Hash)
plumbing/format/packfile/delta_selector.go:132
↓ 3 callers
Method
entry
(baseName string)
plumbing/object/tree.go:184
↓ 3 callers
Function
expand_ref
(s storer.ReferenceStorer, ref plumbing.ReferenceName)
repository.go:1527
↓ 3 callers
Method
fetch
(ctx context.Context, o *FetchOptions)
remote.go:401
↓ 3 callers
Method
findHashIndex
(h plumbing.Hash)
plumbing/format/idxfile/idxfile.go:71
↓ 3 callers
Method
findObjectInPackfile
(h plumbing.Hash)
storage/filesystem/object.go:542
↓ 3 callers
Method
finish
()
plumbing/transport/internal/common/common.go:374
↓ 3 callers
Method
getFromUnpacked
(h plumbing.Hash)
storage/filesystem/object.go:391
↓ 3 callers
Method
getOffset
(firstLevel, secondLevel int)
plumbing/format/idxfile/idxfile.go:142
↓ 3 callers
Function
getPatchContext
(ctx context.Context, message string, changes ...*Change)
plumbing/object/patch.go:29
↓ 3 callers
Method
hasIncomingObjects
hasIncomingObjects searches for an incoming directory and keeps its name so it doesn't have to be found each time an object is accessed.
storage/filesystem/dotgit/dotgit.go:588
↓ 3 callers
Method
hasPack
(h plumbing.Hash)
storage/filesystem/dotgit/dotgit.go:544
↓ 3 callers
Method
hashContent
(r io.Reader, size int64, isBin bool)
plumbing/object/rename.go:592
↓ 3 callers
Method
incomingObjectPath
incomingObjectPath is intended to add support for a git pre-receive hook to be written it adds support for go-git to find objects in an "incoming" dir
storage/filesystem/dotgit/dotgit.go:576
↓ 3 callers
Function
invalidOffsetSize
(offset, sz, srcSz uint)
plumbing/format/packfile/patch_delta.go:519
↓ 3 callers
Function
invalidSize
(sz, targetSz uint)
plumbing/format/packfile/patch_delta.go:515
↓ 3 callers
Function
isCopyFromDelta
(cmd byte)
plumbing/format/packfile/patch_delta.go:444
↓ 3 callers
Function
isCopyFromSrc
(cmd byte)
plumbing/format/packfile/patch_delta.go:440
↓ 3 callers
Method
isSeen
(hash plumbing.Hash)
object_walker.go:42
↓ 3 callers
Function
makeChange
(c *C, from *File, to *File)
plumbing/object/rename_test.go:502
↓ 3 callers
Function
newChangesFromString
(s string)
utils/merkletrie/difftree_test.go:167
↓ 3 callers
Function
newLines
(contents []string, commits []*object.Commit)
blame.go:149
↓ 3 callers
Function
newRepository
(s storage.Storer, worktree billy.Filesystem)
repository.go:496
↓ 3 callers
Function
newSession
(c *client, ep *transport.Endpoint, auth transport.AuthMethod)
plumbing/transport/http/common.go:227
↓ 3 callers
Function
newSimilarityIndex
()
plumbing/object/rename.go:568
↓ 3 callers
Function
newUlReqEncoder
(w io.Writer)
plumbing/protocol/packp/ulreq_encode.go:29
↓ 3 callers
Method
nextBoth
NextBoth makes d advance to the next noder in both merkletries. If any of them is a directory, it skips its contents.
utils/merkletrie/doubleiter.go:71
↓ 3 callers
Method
nextFrom
NextFrom makes d advance to the next noder in the "from" merkletrie, skipping its contents if it is a directory.
utils/merkletrie/doubleiter.go:84
↓ 3 callers
Method
nextLine
Reads a new pkt-line from the scanner, makes its payload available as p.line and increments p.nLine. A successful invocation returns true, otherwise,
plumbing/protocol/packp/advrefs_decode.go:70
↓ 3 callers
Method
nextTo
NextTo makes d advance to the next noder in the "to" merkletrie, skipping its contents if it is a directory.
utils/merkletrie/doubleiter.go:91
↓ 3 callers
Method
objectPath
(h plumbing.Hash)
storage/filesystem/dotgit/dotgit.go:562
↓ 3 callers
Function
objectsEqual
(c *C, o1, o2 plumbing.EncodedObject)
plumbing/format/packfile/encoder_test.go:272
↓ 3 callers
Function
overrideConfig
(overrides *ssh.ClientConfig, c *ssh.ClientConfig)
plumbing/transport/ssh/common.go:259
↓ 3 callers
Function
packfileFromReader
(c *C, buf *bytes.Buffer)
plumbing/format/packfile/encoder_test.go:298
↓ 3 callers
Method
parseAt
parseAt extract @ statements
internal/revision/parser.go:252
↓ 3 callers
Method
parseCaret
parseCaret extract ^ statements
internal/revision/parser.go:358
← previous
next →
601–700 of 4,185, ranked by callers