Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/driusan/dgit
/ functions
Functions
646 in github.com/driusan/dgit
⨍
Functions
646
◇
Types & classes
156
↓ 2 callers
Function
ArchiveFormatList
Return the list of supported archive file format
git/archive.go:151
↓ 2 callers
Function
BranchList
(c *Client, stdout io.Writer, opts BranchOptions, patterns []string)
git/branch.go:16
↓ 2 callers
Method
CTime
()
git/file_ctime_unix.go:10
↓ 2 callers
Function
Calculate
Calculate how to generate dst using src as the base of the deltas and write the result to w.
git/delta/calculator.go:199
↓ 2 callers
Function
CalculateWithIndex
(index *suffixarray.Index, w io.Writer, src, dst []byte, maxsz int)
git/delta/calculator.go:174
↓ 2 callers
Function
CheckoutIndexFromReaderUncommited
Performs CheckoutIndex on the Stdin io.Reader from opts, with the git index passed as a parameter.
git/checkoutindex.go:40
↓ 2 callers
Method
CommitID
(c *Client)
git/revparse.go:19
↓ 2 callers
Method
DeleteBranch
Delete a branch
git/refspec.go:187
↓ 2 callers
Method
ExecEditor
Will invoke the Client's editor to edit the file f.
git/editor.go:13
↓ 2 callers
Function
Fetch
Fetch implements the "git fetch" command, fetching refs from rmt. If refs is nil, all remote refs will be fetched from the remote.
git/fetch.go:15
↓ 2 callers
Method
FetchURL
Returns the URL used to fetch from remote.
git/remote.go:50
↓ 2 callers
Method
GetConfigList
()
git/config.go:138
↓ 2 callers
Method
GetConfigSections
Gets all config sections that match name and subsection. The empty string matches all names/subsections.
git/config.go:156
↓ 2 callers
Method
GetObject
(r io.ReaderAt, s Sha1)
git/indexpack.go:441
↓ 2 callers
Method
GetObjectMetadata
(sha1 Sha1)
git/objects.go:249
↓ 2 callers
Function
HashReaderWithSize
(t string, sz int64, r io.Reader)
git/hashobject.go:13
↓ 2 callers
Method
INode
()
git/file_inode_unix.go:10
↓ 2 callers
Method
IsInSubmodule
Returns true if the file is inside a submodule and the submodule file. FIXME: invert this when submodules are implemented
git/file.go:77
↓ 2 callers
Method
IsInsideSymlink
()
git/file.go:99
↓ 2 callers
Method
LineString
()
git/ignore.go:34
↓ 2 callers
Function
LoadGlobalConfig
()
git/config.go:303
↓ 2 callers
Function
Log
(c *git.Client, args []string)
cmd/log.go:13
↓ 2 callers
Function
MatchIgnores
(c *Client, patterns []IgnorePattern, paths []File)
git/ignore.go:223
↓ 2 callers
Function
Merge
Implements the "git merge" porcelain command to merge other commits into HEAD and create a new commit.
git/merge.go:71
↓ 2 callers
Function
MergeFile
MergeFile merges changes that lead from opt.Base to opt.Other into opt.Current, flagging conflictsas appropriate. This will return an io.Reader of th
git/mergefile.go:30
↓ 2 callers
Function
Mktag
Implements mktag by reading the input from r in the format described in git-mktag(1).
git/mktag.go:15
↓ 2 callers
Function
NewWriter
NewWriter creates a new Writer. Writes to the returned Writer are compressed and written to w. It is the caller's responsibility to call Close on the
zlib/writer.go:41
↓ 2 callers
Function
NewWriterLevelDict
NewWriterLevelDict is like NewWriterLevel but specifies a dictionary to compress with. The dictionary may be nil. If not, its contents should not be
zlib/writer.go:61
↓ 2 callers
Method
PackEntryType
(c *Client)
git/sha1.go:91
↓ 2 callers
Function
PackObjects
Writes a packfile to w of the objects objects from the client's GitDir.
git/packobjects.go:39
↓ 2 callers
Method
ParseValues
(valueslines string)
git/config.go:184
↓ 2 callers
Method
ProtocolVersion
Gets the protocol version that was negotiated during connection opening. Only valid after calling OpenConn.
git/remote.go:137
↓ 2 callers
Method
ReadFirstLine
Reads the first line of File. (This is primarily to extract commit message lines for reflogs)
git/file.go:150
↓ 2 callers
Function
ReadTreeFastForward
ReadTreeFastForward will return a new Index with parent fast-forwarded to from parent to dst. Local modifications to the work tree will be preserved.
git/readtree.go:372
↓ 2 callers
Function
ResetUnstage
ResetUnstage implements "git reset [<treeish>] -- paths
git/reset.go:138
↓ 2 callers
Function
RevListCallback
(c *Client, opt RevListOptions, includes, excludes []Commitish, callback func(Sha1) error)
git/revlist.go:59
↓ 2 callers
Function
SendPack
(c *Client, opts SendPackOptions, r Remote, refs []Refname)
git/sendpack.go:24
↓ 2 callers
Method
SetSkipWorktree
(c *Client, path IndexPath, value bool)
git/index.go:337
↓ 2 callers
Function
StandardIgnorePatterns
Returns the standard ignores (.gitignore files and various global sources) that should be used to determine whether the provided files are ignored. Th
git/ignore.go:69
↓ 2 callers
Method
String
Returns the standard representation of an ignore match (or non-match)
git/ignore.go:30
↓ 2 callers
Method
String
()
git/refspec.go:12
↓ 2 callers
Method
String
()
git/fetchpack.go:20
↓ 2 callers
Method
String
()
git/client.go:25
↓ 2 callers
Method
String
()
git/client.go:50
↓ 2 callers
Function
TagCommit
(c *Client, opts TagOptions, tagname string, cmt Commitish, msg string)
git/tag.go:63
↓ 2 callers
Function
TagList
List tags, if tagnames is specified only list tags which match one of the patterns provided.
git/tag.go:29
↓ 2 callers
Function
UnpackObjects
Unpack the objects from r's input stream into the client GitDir's objects directory and returns the list of objects that were unpacked.
git/unpackobjects.go:35
↓ 2 callers
Method
Unset
(name string)
git/config.go:70
↓ 2 callers
Method
Value
Returns the value of RefSpec in Client's GitDir, or the empty string if it doesn't exist.
git/refspec.go:72
↓ 2 callers
Function
WriteTreeFromIndex
(c *Client, idx *Index, opts WriteTreeOptions)
git/writetree.go:23
↓ 2 callers
Function
addSharedFetchFlags
These options can be shared with other subcommands that fetch, such as pull
cmd/fetch.go:11
↓ 2 callers
Function
addSharedMergeFlags
These are merge flags that can be shared with other subcommands, such as pull
cmd/merge.go:12
↓ 2 callers
Function
calculate
The meat of our algorithm. Calculate a list of instructions to insert into the stream.
git/delta/calculator.go:80
↓ 2 callers
Function
checkoutFile
Checks out a given index entry.
git/checkoutindex.go:97
↓ 2 callers
Function
copyFile
(src, dst string)
git/apply.go:192
↓ 2 callers
Function
createTarArchive
(c *Client, opts ArchiveOptions, tgz bool, sha Sha1, mtime time.Time, entries []*IndexEntry)
git/archive.go:40
↓ 2 callers
Function
filterHunks
(prompt string, patch []patchHunk)
git/interactive.go:78
↓ 2 callers
Function
formatBytes
(n int64)
git/indexpack.go:929
↓ 2 callers
Function
getLogVar
(c *git.Client, key string, envVar string)
cmd/var.go:13
↓ 2 callers
Method
getObject
(sha1 Sha1, metaOnly bool)
git/objects.go:261
↓ 2 callers
Method
getRefNamesList
(cl *Client)
git/sha1.go:501
↓ 2 callers
Function
iteratePack
(c *Client, r io.Reader, initcallback func(int), callback packIterator, trailerCB func(r io.ReaderAt, packn in
git/packiterator.go:46
↓ 2 callers
Function
parseCacheInfo
(input string)
cmd/updateindex.go:12
↓ 2 callers
Function
parseRawTreeLine
parseRawtreeLine parses a single line from a raw tree object starting at entryStart. It returns the TreeEntry and the number of bytes in treecontent t
git/sha1.go:630
↓ 2 callers
Function
printRemotes
(c *git.Client, opts git.RemoteOptions)
cmd/remote.go:10
↓ 2 callers
Function
printTags
(tags []string)
cmd/tag.go:12
↓ 2 callers
Method
readVariable
Reads a variable length integer from the underlying stream and returns it as a uint64
git/delta/reader.go:163
↓ 2 callers
Function
recombinePatch
(w io.Writer, hunks []patchHunk)
git/interactive.go:66
↓ 2 callers
Function
refreshIndex
Helper to run update-index --refresh
git/status.go:45
↓ 2 callers
Function
requiresGitDir
(cmd string)
main.go:18
↓ 2 callers
Method
resolveDeltaForIndexing
(pack io.ReaderAt, deltat PackEntryType, rawdata []byte, location ObjectOffset, ref Sha1, refoffset int64, cac
git/indexpack.go:300
↓ 2 callers
Function
revListCallback
(c *Client, opt RevListOptions, commits []CommitID, excludeList map[Sha1]struct{}, callback func(Sha1) error)
git/revlist.go:116
↓ 2 callers
Function
sortPatterns
Patterns are sorted by their scope so that the most specific scopes are first and the more broad scopes are later on. This is to allow broader scopes
git/ignore.go:217
↓ 2 callers
Function
timeToGitTime
(t time.Time)
git/client.go:381
↓ 2 callers
Method
updateFanout
Update both the fanout table and Sha1Table for this index.
git/indexpack.go:632
↓ 2 callers
Function
verifyBlob
(c *Client, opts FsckOptions, stderr io.Writer, s Sha1)
git/fsck.go:416
↓ 2 callers
Function
verifyCommit
Verifies a commit for fsck or rev-parse --verify-objects
git/fsck.go:281
↓ 2 callers
Function
verifyTag
(c *Client, opts FsckOptions, tid Sha1)
git/fsck.go:362
↓ 2 callers
Function
verifyTree
Verifies a tree for fsck or rev-parse --verify-objects
git/fsck.go:314
↓ 2 callers
Method
writeIndex
(w io.Writer, withTrailer bool)
git/indexpack.go:532
↓ 2 callers
Function
writeVarInt
(w io.Writer, val int)
git/delta/calculator.go:300
↓ 1 callers
Function
Add
(c *git.Client, args []string)
cmd/add.go:11
↓ 1 callers
Method
AddFile
Adds a file to the index, without writing it to disk. To write it to disk after calling this, use GitIndex.WriteIndex This will do the following: 1.
git/index.go:504
↓ 1 callers
Method
AncestorMap
AncestorMap returns a map of empty structs (which can be interpreted as a set) of ancestors of a CommitID. It's useful if you want to know all the an
git/sha1.go:166
↓ 1 callers
Method
Ancestors
(c *Client)
git/sha1.go:372
↓ 1 callers
Function
Apply
(c *git.Client, args []string)
cmd/apply.go:11
↓ 1 callers
Function
Archive
(c *Client, opts ArchiveOptions, tree Treeish, paths []File)
git/archive.go:155
↓ 1 callers
Function
Archive
(c *git.Client, args []string)
cmd/archive.go:29
↓ 1 callers
Function
Branch
(c *git.Client, args []string)
cmd/branch.go:10
↓ 1 callers
Function
CatFile
Parses the arguments from git-cat-file as they were passed on the commandline and calls git.CatFiles
cmd/catfile.go:14
↓ 1 callers
Function
CatFileBatch
(c *Client, opts CatFileOptions, r io.Reader, w io.Writer)
git/catfile.go:81
↓ 1 callers
Function
CheckIgnore
(c *git.Client, args []string)
cmd/checkignore.go:14
↓ 1 callers
Function
Checkout
Implements the git checkout command line parsing.
cmd/checkout.go:12
↓ 1 callers
Function
CheckoutFiles
Implements "git checkout" subcommand of git for variations: git checkout [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <paths>... git c
git/checkout.go:272
↓ 1 callers
Function
CheckoutIndexCmd
Parses the command arguments from args (usually from os.Args) into a CheckoutIndexOptions and calls CheckoutIndex.
cmd/checkoutindex.go:13
↓ 1 callers
Function
Clean
(c *Client, opts CleanOptions, files []File)
git/clean.go:24
↓ 1 callers
Function
Clean
(c *git.Client, args []string)
cmd/clean.go:20
↓ 1 callers
Method
Cleanup
(mode string, edit bool)
git/commit.go:198
↓ 1 callers
Function
Clone
Clones a new repository from rmt into the directory dst, which must not already exist.
git/clone.go:38
↓ 1 callers
Function
Clone
(c *git.Client, args []string)
cmd/clone.go:11
← previous
next →
201–300 of 646, ranked by callers