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
↓ 6 callers
Method
RemoveFile
Remove the first instance of file from the index. (This will usually be stage 0.)
git/index.go:604
↓ 6 callers
Function
Reset
Reset implementes the "git reset" command and delegates to the appropriate ResetMode or ResetUnstage subcommand. While the third option is a []File s
git/reset.go:27
↓ 6 callers
Function
RevParse
Implements "git rev-parse". This should be refactored in terms of RevParseCommit and cleaned up. (clean up a lot.)
git/revparse.go:370
↓ 6 callers
Function
ShowRef
(c *Client, opts ShowRefOptions, patterns []string)
git/showref.go:107
↓ 6 callers
Method
TreeType
TreeType prints the entry mode as the type that shows up in the "git ls-tree" command.
git/entrymode.go:25
↓ 6 callers
Method
WriteConfig
()
git/config.go:341
↓ 5 callers
Function
CheckoutIndexUncommited
Same as "git checkout-index", except the Index is passed as a parameter (and may not have been written to disk yet). You likely want CheckoutIndex ins
git/checkoutindex.go:165
↓ 5 callers
Function
DiffIndex
DiffIndex compares the index against a tree. If the index passed is nil, it reads the index from the .git directory
git/diffindex.go:19
↓ 5 callers
Method
ExtendedFlag
()
git/index.go:105
↓ 5 callers
Method
Format
(cl *Client, format string)
git/sha1.go:572
↓ 5 callers
Function
GetIndexMap
Converts the Tree into an IndexEntries, to simplify comparisons between Trees and Indexes
git/sha1.go:754
↓ 5 callers
Function
Grep
(c *Client, opts GrepOptions, pattern string, tree Treeish, pathspec []File)
git/grep.go:52
↓ 5 callers
Method
IsBare
Returns true if the repo is a bare repo.
git/client.go:136
↓ 5 callers
Function
RevParse
(c *git.Client, args []string)
cmd/rev-parse.go:11
↓ 5 callers
Method
SkipWorktree
()
git/index.go:49
↓ 5 callers
Method
Stat
Returns stat information for the given file.
git/file.go:56
↓ 5 callers
Function
expandGitTreeIntoIndexes
Converts a git Tree-ish object to a slice of IndexEntrys. The most significant difference between trees and indexes are that indexes have fully expand
git/expandtree.go:20
↓ 5 callers
Function
lsTree
(c *Client, opts LsTreeOptions, tree Treeish, prefix string, paths []File)
git/lstree.go:162
↓ 5 callers
Function
parseRef
(c *Client, filename string)
git/showref.go:267
↓ 5 callers
Function
progressF
Print progress information to stderr
git/progressf.go:15
↓ 5 callers
Method
whitespace
()
git/commit.go:216
↓ 4 callers
Method
Capabilities
Returns the capabilities determined during the initial protocol connection. The first index is the capability, the second is the arguments defined fo
git/remote.go:144
↓ 4 callers
Function
CheckoutCommit
Implements the "git checkout" subcommand of git for variations: git checkout [-q] [-f] [-m] [<branch>] git checkout [-q] [-f] [-m] --detach [<branch>]
git/checkout.go:123
↓ 4 callers
Method
Exists
()
git/client.go:54
↓ 4 callers
Method
File
Returns the file that holds r.
git/refspec.go:66
↓ 4 callers
Method
Flush
Send a flush packet to the connection
git/remote.go:169
↓ 4 callers
Function
GeneratePatch
(c *Client, options DiffCommonOptions, diffs []HashDiff, dst io.Writer)
git/hashdiff.go:108
↓ 4 callers
Method
Get
()
cmd/flag.go:46
↓ 4 callers
Method
GetAllObjectsExcept
GetAllObjectsExcept is like GetAllObjects, except that it excludes those objects in excludeList. It also populates excludeList with any objects encoun
git/sha1.go:680
↓ 4 callers
Method
GetCommitter
Returns the committer of the commit.
git/sha1.go:346
↓ 4 callers
Method
GetObjectsDir
Returns the .git/objects directory.
git/client.go:680
↓ 4 callers
Method
GetRefs
Gets a list of references on the remote. If patterns is specified, restrict to refs which match the pattern. If not, return all refs
git/remote.go:122
↓ 4 callers
Method
HasDir
(path IndexPath)
git/index.go:739
↓ 4 callers
Function
IndexAndCopyPack
Indexes the pack, and stores a copy in Client's .git/objects/pack directory as it's doing so. This is the equivalent of "git index-pack --stdin", but
git/indexpack.go:925
↓ 4 callers
Function
ParseConfig
(configFile io.Reader)
git/config.go:230
↓ 4 callers
Function
PktLineEncodeNoNl
(line []byte)
git/retrieve.go:21
↓ 4 callers
Method
RemoteURL
(c *Client)
git/remote.go:13
↓ 4 callers
Function
ResetMode
ResetMode implements "git reset [--soft | --mixed | --hard | --merge | --keep]" <commit>
git/reset.go:97
↓ 4 callers
Function
RevList
(c *git.Client, args []string)
cmd/rev-list.go:11
↓ 4 callers
Function
RevParseCommit
RevParse will parse a single revision into a Commit object.
git/revparse.go:360
↓ 4 callers
Method
SetReadMode
Determines how reading from the connection returns data to the caller.
git/remote.go:162
↓ 4 callers
Function
Status
(c *Client, opts StatusOptions, files []File)
git/status.go:63
↓ 4 callers
Function
SymbolicRefUpdate
(c *Client, opts SymbolicRefOptions, symname SymbolicRef, refvalue RefSpec, reason string)
git/symbolicref.go:64
↓ 4 callers
Function
UpdateRefSpec
Safely updates ref to point to cmt under the client c, logging reason in the reflog. If opts.OldValue is set, it will return an error if the current v
git/updateref.go:68
↓ 4 callers
Function
buildLsRefsCmdV2
Builds the ls-refs command to send over V2, for both stateless and stateful protocol variants
git/httpconn.go:462
↓ 4 callers
Function
checkMergeAndUpdate
Check if the merge would overwrite any modified files and return an error if so (unless --reset), then update the file system.
git/readtree.go:655
↓ 4 callers
Method
getObjectAtOffsetForIndexing
(r io.ReaderAt, offset int64, metaOnly bool, cache map[ObjectOffset]*packObject, refcache map[Sha1]*packObject
git/indexpack.go:341
↓ 4 callers
Function
getRefsV1
(refs []Ref, opts LsRemoteOptions, patterns []string)
git/httpconn.go:422
↓ 4 callers
Function
parseLsRef
parses a ref returned from the LsRefs command
git/httpconn.go:526
↓ 4 callers
Function
parseRemoteInitialConnection
(r io.Reader, stateless bool)
git/httpconn.go:163
↓ 4 callers
Function
readtreeSaveIndex
Helper to ensure the DryRun option gets checked no matter what the code path for ReadTree.
git/readtree.go:541
↓ 4 callers
Function
splitPatch
Split a patch into the hunks which make up the patch.
git/interactive.go:18
↓ 4 callers
Function
updateReflog
(c *Client, create bool, file File, oldvalue, newvalue Commitish, reason string)
git/updateref.go:22
↓ 4 callers
Method
write
Write the instruction to w
git/delta/calculator.go:20
↓ 3 callers
Function
CatFile
(c *Client, typ string, s Sha1, opts CatFileOptions)
git/catfile.go:32
↓ 3 callers
Function
CheckoutIndex
CheckoutIndex implements the "git checkout-index" subcommand of git.
git/checkoutindex.go:343
↓ 3 callers
Function
CommitTree
(c *Client, opts CommitTreeOptions, tree Treeish, parents []CommitID, message string)
git/committree.go:65
↓ 3 callers
Method
Create
Creates a file relative to GitDir. There should not be a leading slash.
git/client.go:263
↓ 3 callers
Function
DiffTree
(c *Client, opt *DiffTreeOptions, tree1, tree2 Treeish, paths []string)
git/difftree.go:71
↓ 3 callers
Method
Dst
Dst represents the local destination of a remote ref in a refspec. For instance, in the refspec "refs/heads/foo:refs/remotes/origin/foo", Dst refers t
git/refspec.go:47
↓ 3 callers
Method
Exists
Returns true if the branch exists under c's GitDir
git/refspec.go:154
↓ 3 callers
Function
FetchPack
FetchPack fetches a packfile from rmt. It uses wants to retrieve the refnames from the remote, and haves to negotiate the missing objects. FetchPack a
git/fetchpack.go:68
↓ 3 callers
Method
GetAllObjects
Returns a map of all paths in the Tree. If recurse is true, it will recurse into subtrees. If excludeself is true, it will *not* include it's own Sha1
git/sha1.go:623
↓ 3 callers
Function
GetBranch
Returns a valid Branch object for an existing branch.
git/refspec.go:141
↓ 3 callers
Method
GetCommitMessage
(c *Client)
git/sha1.go:304
↓ 3 callers
Method
GetObject
(sha1 Sha1)
git/objects.go:257
↓ 3 callers
Function
IndexPack
(c *Client, opts IndexPackOptions, r io.Reader)
git/indexpack.go:645
↓ 3 callers
Method
IsInsideGitDir
Returns true if the path is under the client's GitDir.
git/client.go:141
↓ 3 callers
Method
IsSymlink
()
git/file.go:115
↓ 3 callers
Method
Len
Implements the Sorter interface on PackfileIndexV2, in order to sort the Sha1, CRC32, and
git/indexpack.go:596
↓ 3 callers
Function
ModeFromString
(s string)
git/entrymode.go:39
↓ 3 callers
Function
NewRemoteConn
(c *Client, r Remote)
git/remote.go:175
↓ 3 callers
Method
Open
Opens a file relative to GitDir. There should not be a leading slash.
git/client.go:257
↓ 3 callers
Method
OpenConn
Opens a connection to the remote. This requires at least one round trip to the service and may mutate the state of this RemoteConn. After calling thi
git/remote.go:117
↓ 3 callers
Method
PushURL
Returns the URL used to push to a remote.
git/remote.go:56
↓ 3 callers
Method
Read
(buf []byte)
git/packiterator.go:22
↓ 3 callers
Method
Read
Reads a line from the underlying connection into buf in a decoded format.
git/fetchpack.go:377
↓ 3 callers
Method
ReadHeaderSize
Readers a packfile entry header from r, and returns the type of packfile, the size from the header, optionally a reference or file offset (for deltas
git/packfile.go:56
↓ 3 callers
Function
RevList
(c *Client, opt RevListOptions, w io.Writer, includes, excludes []Commitish)
git/revlist.go:19
↓ 3 callers
Function
Revert
Reverts the given commits from the HEAD. Revert doesn't actually create the new commit, it returns the new tree and leaves it up to the caller (who h
git/revert.go:25
↓ 3 callers
Method
SetService
Sets the name of git-upload-pack to use for this remote, where applicable. This must be called before OpenConn. When called on a transport type that d
git/remote.go:133
↓ 3 callers
Method
Sha1
(c *Client)
git/refspec.go:78
↓ 3 callers
Method
Src
Src represents the ref name of the ref at the remote location for a refspec. for instance, in the refspec "refs/heads/foo:refs/remotes/origin/foo", sr
git/refspec.go:27
↓ 3 callers
Function
StatusLong
Return a string of the status
git/status.go:142
↓ 3 callers
Function
checkReadtreePrereqs
Check if the read-tree can be performed. Returns a list of files that need to be removed if --reset is specified.
git/readtree.go:558
↓ 3 callers
Function
checkSparseMatches
(c *Client, opt ReadTreeOptions, path IndexPath, patterns []IgnorePattern)
git/readtree.go:80
↓ 3 callers
Method
dataStream
(r flate.Reader)
git/packfile.go:125
↓ 3 callers
Method
getObjectAtOffset
Using the index, retrieve an object from the packfile represented by r at offset. The index must be valid for this function to work, it can not retrie
git/indexpack.go:163
↓ 3 callers
Function
getObjectHeader
get a header for either a commit or tag type object.
git/objects.go:125
↓ 3 callers
Function
parseCommonDiffFlags
Sets up common options for git diff-files, diff-index and diff-tree and parses them. Any unique parameters must already be set up in flags before cal
cmd/commondiff.go:16
↓ 3 callers
Function
parseDate
(str string)
git/committree.go:20
↓ 3 callers
Function
printDiffHeader
(w io.Writer, name IndexPath, full bool)
git/hashdiff.go:101
↓ 3 callers
Function
printDiffs
Print the diffs that come back from either diff-files, diff-index, or diff-tree in the appropriate format according to options.
cmd/commondiff.go:58
↓ 3 callers
Method
readCached
(buf []byte)
git/delta/reader.go:151
↓ 3 callers
Function
removeFileClean
(f File)
git/readtree.go:916
↓ 3 callers
Method
sendRequest
(expectedmime string)
git/httpconn.go:373
↓ 3 callers
Method
strip
()
git/commit.go:225
↓ 3 callers
Function
validatePerson
(obj GitObject, typ string)
git/fsck.go:230
↓ 3 callers
Method
writeHeader
writeHeader writes the ZLIB header.
zlib/writer.go:90
↓ 2 callers
Method
Append
Appends the value val to the end of the file f. Not that f must already exist.
git/file.go:29
← previous
next →
101–200 of 646, ranked by callers