MCPcopy Create free account

hub / github.com/driusan/dgit / functions

Functions646 in github.com/driusan/dgit

↓ 268 callersMethodString
Print the object in human readable format.
git/objects.go:24
↓ 72 callersMethodClose
Close the underlying connection to this service.
git/remote.go:125
↓ 70 callersMethodHasPrefix
(s string)
git/refspec.go:61
↓ 68 callersMethodWriteFile
WriteFile writes data to the file f, using permission perm for the file if it does not already exist. WriteFile will overwrite existing file contents
git/client.go:67
↓ 51 callersMethodName
()
git/remote.go:70
↓ 46 callersMethodCommitID
(c *Client)
git/sha1.go:27
↓ 46 callersMethodExists
Determines if the file exists on the filesystem.
git/file.go:16
↓ 46 callersMethodFilePath
Returns the IndexPath as a filename relative to Getwd, in order to convert from Indexes to Working directory paths.
git/client.go:31
↓ 46 callersFunctionhashString
(str string)
git/writetree_test.go:17
↓ 43 callersMethodStage
()
git/index.go:45
↓ 39 callersMethodWrite
(data []byte)
git/sshconn.go:135
↓ 36 callersMethodFile
Returns a file named f, relative to GitDir
git/client.go:59
↓ 36 callersMethodReadFile
ReadFile reads a file under the GitDir and returns the contents.
git/client.go:72
↓ 31 callersFunctionAdd
Add implements the "git add" plumbing command.
git/add.go:29
↓ 29 callersMethodCreate
()
git/file.go:126
↓ 29 callersFunctionLsFiles
LsFiles implements the git ls-files command. It returns an array of files that match the options passed.
git/lsfiles.go:168
↓ 28 callersMethodGetConfig
Loads a config variable for the git repo hosted by c. If the local variable exists, it will be used, otherwise it will use the global variable. Non-ex
git/client.go:639
↓ 28 callersMethodRead
Reads the resolved delta from the underlying delta stream into buf
git/delta/reader.go:35
↓ 28 callersFunctionSha1FromString
(s string)
git/sha1.go:35
↓ 27 callersMethodIsDir
()
git/file.go:65
↓ 24 callersFunctionCommit
Commit implements the command "git commit" in the repository pointed to by c.
git/commit.go:66
↓ 24 callersMethodMatches
(ignorePath string, isDir bool)
git/ignore.go:42
↓ 23 callersMethodGetContent
()
git/objects.go:20
↓ 22 callersMethodReadIndex
Reads the index file from the GitDir and returns a Index object. If the index file does not exist, it will return a new empty Index.
git/index.go:191
↓ 21 callersMethodAddStage
Adds an entry to the index with Sha1 s and stage stage during a merge. If an entry already exists for this pathname/stage, it will be overwritten, oth
git/index.go:359
↓ 21 callersFunctionInit
(c *Client, opts InitOptions, dir string)
git/init.go:23
↓ 21 callersMethodRemove
()
git/file.go:167
↓ 18 callersMethodGetObject
(i io.ReaderAt, s Sha1)
git/indexpack.go:64
↓ 18 callersFunctionNewMultiStringValue
(p *[]string)
cmd/flag.go:37
↓ 18 callersMethodReadAll
Reads the entire contents of file and return as a string. Note that this should only be used for very small files (like refspecs)
git/file.go:140
↓ 18 callersFunctionRevParseCommitish
RevParse will parse a single revision into a Commitish object.
git/revparse.go:208
↓ 17 callersMethodGetHeadCommit
Gets the Commit of the current HEAD as a string.
git/client.go:539
↓ 16 callersMethodContains
(path IndexPath)
git/index.go:730
↓ 16 callersMethodLstat
Returns lstat information for the given file.
git/file.go:61
↓ 16 callersFunctionRevParseTreeish
RevParseTreeish will parse a single revision into a Treeish structure.
git/revparse.go:174
↓ 15 callersFunctionCommitIDFromString
(s string)
git/sha1.go:30
↓ 15 callersFunctionSymbolicRefGet
Gets a RefSpec for a symbolic ref. Returns "" if symname is not a valid symbolic ref.
git/symbolicref.go:38
↓ 14 callersMethodBranchName
Returns the branch name, without the refspec portion.
git/refspec.go:178
↓ 14 callersMethodType
Returns the git type of the object this Sha1 represents
git/sha1.go:107
↓ 14 callersFunctionUpdateIndex
This implements the git update-index command. It updates the index passed as a parameter, and returns it. It does *not* write it to disk, that's the r
git/updateindex.go:68
↓ 14 callersMethodWriteObject
Writes an object into the Client's .git/objects/ directory. This will write the object loosely, and not use a packfile.
git/client.go:491
↓ 14 callersFunctionnewNotimplStringValue
()
cmd/flag.go:53
↓ 13 callersMethodReadByte
()
git/packiterator.go:39
↓ 13 callersMethodTreeID
(c *Client)
git/sha1.go:23
↓ 12 callersMethodIndexPath
Normalizes the file name that's relative to the current working directory to be relative to the workdir root. Ie. convert it from a file system path t
git/file.go:45
↓ 12 callersMethodLen
()
git/delta/reader.go:180
↓ 12 callersMethodOpen
()
git/file.go:171
↓ 12 callersMethodWriteIndex
(w io.Writer)
git/indexpack.go:66
↓ 12 callersFunctionnewNotimplBoolValue
()
cmd/flag.go:69
↓ 11 callersFunctionApply
(c *Client, opts ApplyOptions, patches []File)
git/apply.go:51
↓ 11 callersFunctionLoadLocalConfig
(c *Client)
git/config.go:324
↓ 11 callersMethodString
()
git/file.go:23
↓ 11 callersMethodWrite
Write writes a compressed form of p to the underlying io.Writer. The compressed bytes are not necessarily flushed until the Writer is closed or explic
zlib/writer.go:145
↓ 11 callersFunctioncompareStatus
(c *Client, opts StatusOptions, expected expectedStatus)
git/status_test.go:14
↓ 10 callersMethodGetHeader
(header string)
git/objects.go:77
↓ 10 callersMethodIsAncestor
(c *Client, parent Commitish)
git/sha1.go:142
↓ 10 callersMethodIsClean
Returns true if the file on the filesystem hashes to Sha1, (which is usually the hash from the index) to determine if the file is clean.
git/client.go:522
↓ 10 callersFunctionNewClient
Creates a new client with the given gitDir and workdir. If not specified, NewClient will walk the filesystem until it finds a .git directory to use.
git/client.go:211
↓ 10 callersMethodParents
Returns all direct parents of commit c.
git/sha1.go:117
↓ 10 callersMethodReset
Reset discards any buffered data and resets the Resetter as if it was newly initialized with the given reader.
zlib/reader.go:63
↓ 10 callersFunctionUpdateRef
Handles "git update-ref" command line. ref is what's passed on the command-line it can be either a symbolic ref, or a refspec. We just use a string, b
git/updateref.go:104
↓ 9 callersFunctionCheckout
Implements the "git checkout" subcommand of git. Variations in the man-page are: git checkout [-q] [-f] [-m] [<branch>] git checkout [-q] [-f] [-m] -
git/checkout.go:68
↓ 9 callersMethodGetCommitObject
(commit CommitID)
git/objects.go:225
↓ 9 callersMethodGetType
()
git/objects.go:19
↓ 9 callersMethodHaveObject
Determine whether or not the object represented by id exists in the Client's object directory. Returns a bool if it was found, and the basename of the
git/client.go:561
↓ 9 callersFunctionReadTree
Reads a tree into the index. If DryRun is not false, it will also be written to disk.
git/readtree.go:599
↓ 9 callersMethodSet
(val string)
cmd/flag.go:41
↓ 9 callersMethodSetConfig
(name, value string)
git/config.go:27
↓ 9 callersFunctionsamePath
Helper to safely check if path is the same in p1 and p2
git/readtree.go:56
↓ 8 callersFunctionNewIndex
()
git/index.go:73
↓ 8 callersFunctionSha1FromSlice
(s []byte)
git/sha1.go:43
↓ 8 callersFunctioncheckoutTemp
Handles checking out a file when --temp is specified on the command line.
git/checkoutindex.go:73
↓ 8 callersFunctionnewAliasedStringValue
(p *string, val string)
cmd/flag.go:15
↓ 8 callersFunctionnewFlagSet
(name string)
cmd/clean.go:9
↓ 8 callersFunctionunsafeSha1FromString
(str string)
git/writetree_test.go:10
↓ 7 callersFunctionDiffFiles
DiffFiles implements the git diff-files command. It compares the file system to the index.
git/difffiles.go:33
↓ 7 callersMethodGetAuthor
Returns the author of the commit (with no time information attached) to the person object.
git/sha1.go:319
↓ 7 callersMethodGetDate
(c *Client)
git/sha1.go:245
↓ 7 callersMethodGetHeadBranch
Returns the branchname of the HEAD branch, or the empty string if the HEAD pointer is invalid or in a detached head state.
git/client.go:245
↓ 7 callersMethodGetMap
()
git/index.go:722
↓ 7 callersFunctionHashFile
(t, filename string)
git/hashobject.go:50
↓ 7 callersMethodMatches
Matches determines whether a Ref matches a pattern according to the rules of ShowRef
git/showref.go:21
↓ 7 callersFunctionPktLineEncode
(line []byte)
git/retrieve.go:14
↓ 7 callersFunctionReadTreeThreeWay
ReadTreeThreeWay will perform a three-way merge on the trees stage1, stage2, and stage3. In a normal merge, stage1 is the common ancestor, stage2 is "
git/readtree.go:130
↓ 7 callersMethodSetWriteMode
Determines how reading from the connection returns data to the caller.
git/remote.go:166
↓ 7 callersMethodString
()
git/remote.go:66
↓ 7 callersFunctiongetDeref
(c *Client, opts ShowRefOptions, ref Ref)
git/showref.go:296
↓ 7 callersFunctionwriteTree
(c *Client, prefix string, entries []*IndexEntry)
git/writetree.go:63
↓ 6 callersMethodClose
Close closes the Writer, flushing any unwritten data to the underlying io.Writer, but does not close the underlying io.Writer.
zlib/writer.go:178
↓ 6 callersMethodCreateBranch
Create a new branch in the Client's git repository.
git/client.go:345
↓ 6 callersMethodGetSize
()
git/objects.go:21
↓ 6 callersFunctionHashReader
Hashes the data of r with object type t, and returns the hash, and the data that was read from r.
git/hashobject.go:32
↓ 6 callersMethodLocalName
Returns the local part of a refname when given a ref like refs/heads/foo:refs/heads/bar for send-pack
git/fetchpack.go:26
↓ 6 callersFunctionLsTree
Implements the git ls-tree subcommand. This will return a list of index entries in tree that match paths
git/lstree.go:33
↓ 6 callersMethodMTime
()
git/file_mtime.go:6
↓ 6 callersFunctionMergeBase
(c *Client, options MergeBaseOptions, commits []Commitish)
git/mergebase.go:12
↓ 6 callersFunctionNewReader
Creates a new Delta using src and base as the source and
git/delta/reader.go:22
↓ 6 callersFunctionParseIgnorePatterns
(c *Client, patternFile File, scope File)
git/ignore.go:144
↓ 6 callersMethodRefreshStat
Refreshes the stat information for an index entry by comparing it against the path in the index.
git/index.go:181
↓ 6 callersMethodRemoteName
()
git/fetchpack.go:33
next →1–100 of 646, ranked by callers