package
0.0.0-20221118233547-f39f0c15edbb
Repository: https://github.com/driusan/dgit.git
Documentation: pkg.go.dev

# Packages

Delta provides functions for reading and calculating git styles deltas.

# Functions

Add implements the "git add" plumbing command.
No description provided by the author
No description provided by the author
Return the list of supported archive file format.
No description provided by the author
No description provided by the author
No description provided by the author
Implements the "git checkout" subcommand of git.
Implements the "git checkout" subcommand of git for variations: git checkout [-q] [-f] [-m] [<branch>] git checkout [-q] [-f] [-m] --detach [<branch>] git checkout [-q] [-f] [-m] [--detach] <commit> git checkout [-q] [-f] [-m] [[-b|-B|--orphan] <new_branch>] [<start_point>].
Implements "git checkout" subcommand of git for variations: git checkout [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <paths>..
CheckoutIndex implements the "git checkout-index" subcommand of git.
Performs a CheckoutIndex on the files read from opts.Stdin.
Performs CheckoutIndex on the Stdin io.Reader from opts, with the git index passed as a parameter.
Same as "git checkout-index", except the Index is passed as a parameter (and may not have been written to disk yet).
No description provided by the author
Clones a new repository from rmt into the directory dst, which must not already exist.
Commit implements the command "git commit" in the repository pointed to by c.
No description provided by the author
No description provided by the author
DiffFiles implements the git diff-files command.
DiffFiles implements the git diff-files command.
DiffIndex compares the index against a tree.
No description provided by the author
Fetch implements the "git fetch" command, fetching refs from rmt.
FetchPack fetches a packfile from rmt.
Calls callback for each ref under c's GitDir which has prefix as a prefix.
Fsck implements the "git fsck" subcommand.
No description provided by the author
Returns a valid Branch object for an existing branch.
Converts the Tree into an IndexEntries, to simplify comparisons between Trees and Indexes.
No description provided by the author
No description provided by the author
Hashes the data of r with object type t, and returns the hash, and the data that was read from r.
No description provided by the author
No description provided by the author
Indexes the pack, and stores a copy in Client's .git/objects/pack directory as it's doing so.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LsFiles implements the git ls-files command.
No description provided by the author
Implements the git ls-tree subcommand.
No description provided by the author
Implements the "git merge" porcelain command to merge other commits into HEAD and create a new commit.
Aborts an in progress merge as "git merge --abort" (Not implemented).
No description provided by the author
No description provided by the author
MergeFile merges changes that lead from opt.Base to opt.Other into opt.Current, flagging conflictsas appropriate.
Implements mktag by reading the input from r in the format described in git-mktag(1).
Mktree reads a tree from r in the same format as ls-tree and returns the TreeID of the converted tree.
MkTreeBatch reads trees separated by newlines from r, and writes the TreeID to w.
No description provided by the author
No description provided by the author
Creates a new client with the given gitDir and workdir.
No description provided by the author
No description provided by the author
Writes a packfile to w of the objects objects from the client's GitDir.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Reads a delta offset from the io.Reader, and returns both the value and the list of bytes consumed from the reader.
No description provided by the author
Reads a tree into the index.
ReadTreeFastForward will return a new Index with parent fast-forwarded to from parent to dst.
ReadTreeThreeWay will perform a three-way merge on the trees stage1, stage2, and stage3.
No description provided by the author
Returns true if a reflog exists for refname r under client.
No description provided by the author
No description provided by the author
Implements the "git remote get-url" command.
Retrieves a list of remotes set up in the local git repository for Client c.
Prints the remote named r in the format of "git remote show r" to destination w.
Reset implementes the "git reset" command and delegates to the appropriate ResetMode or ResetUnstage subcommand.
ResetMode implements "git reset [--soft | --mixed | --hard | --merge | --keep]" <commit>.
ResetUnstage implements "git reset [<treeish>] -- paths.
Reverts the given commits from the HEAD.
No description provided by the author
No description provided by the author
Implements "git rev-parse".
RevParse will parse a single revision into a Commit object.
RevParse will parse a single revision into a Commitish object.
RevParsePath parses a path spec such as `HEAD:README.md` into the value that it represents.
RevParseTreeish will parse a single revision into a Treeish structure.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Show implementes the "git show" command.
No description provided by the author
Returns the standard ignores (.gitignore files and various global sources) that should be used to determine whether the provided files are ignored.
No description provided by the author
No description provided by the author
Return a string of the status.
Implements git status --short.
No description provided by the author
Gets a RefSpec for a symbolic ref.
No description provided by the author
No description provided by the author
No description provided by the author
List tags, if tagnames is specified only list tags which match one of the patterns provided.
Unpack the objects from r's input stream into the client GitDir's objects directory and returns the list of objects that were unpacked.
This implements the git update-index command.
No description provided by the author
No description provided by the author
No description provided by the author
Handles "git update-ref" command line.
Safely updates ref to point to cmt under the client c, logging reason in the reflog.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
Directly pass through read/write requests (used when sending a packfile).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Decode PktLine format and send the decoded data to the caller.
Like PktLineMode, but also read 1 extra byte for determining which sideband channel the data is on.
No description provided by the author
Valid merge stages.
Valid merge stages.
Valid merge stages.
Valid merge stages.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
A BitSetter denotes an option for a flag which sets or unsets a bit.
No description provided by the author
No description provided by the author
No description provided by the author
CheckoutIndexOptions represents the options that may be passed to "git checkout-index".
CheckoutOptions represents the options that may be passed to "git checkout".
Command line options which affect the behaviour of clean.
A Client represents a user of the git command inside of a git repo.
No description provided by the author
No description provided by the author
No description provided by the author
Options that are shared between git diff, git diff-files, diff-index, and diff-tree.
Describes the options that may be specified on the command line for "git diff-files".
Describes the options that may be specified on the command line for "git diff-index".
Describes the options that may be specified on the command line for "git diff".
Describes the options that may be specified on the command line for "git diff-index".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A HashDiff represents a single line in a git diff-index type output.
Represents a match (or non-match) of a particular path name against a set of ignore patterns.
An ignore pattern declared in a pattern file (e.g.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Describes the options that may be specified on the command line for "git diff-index".
No description provided by the author
No description provided by the author
Options for LsTree.
No description provided by the author
No description provided by the author
No description provided by the author
Merge options represent the options that may be passed on the command line to "git merge".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A Person is usually an Author, but might be a committer.
No description provided by the author
No description provided by the author
Options that may be passed in the command line to ReadTree.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
List of command line options that may be passed to RevList.
Options that may be passed to RevParse on the command line.
RmOptions denotes command line options that may be parsed from "git rm".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SymbolicRefOptions represents the command line options that may be passed on the command line.
TagOptions is a stub for when more of Tag is implemented.
A TreeEntry represents an entry inside of a Treeish.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
A RemoteConn represends a connection to a remote which communicates with the remote.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
A Branch is a type of RefSpec that lives under refs/heads/ or refs/remotes/heads Use GetBranch to get a valid branch from a branchname, don't cast from string.
Implement the sort interface on *GitIndexEntry, so that it's easy to sort by name.
Implement the sort interface on *GitIndexEntry, so that it's easy to sort by name.
No description provided by the author
No description provided by the author
An EntryMode is like an os.FileMode, but restricted to the values that are legal in git.
A file represents a file (or directory) relative to os.Getwd().
No description provided by the author
This file provides a stupid way of parsing git config files.
A GitDir represents the .git/ directory of a repository.
No description provided by the author
No description provided by the author
No description provided by the author
An IndexPath represents a file in the index.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A PackProtocolMode determines how calling Read on a RemoteConn returns data to the caller.
No description provided by the author
No description provided by the author
No description provided by the author
A RefSpec refers to a reference contained under .git/refs.
No description provided by the author
No description provided by the author
A Stage represents a git merge stage in the index.
No description provided by the author
No description provided by the author
No description provided by the author
A SymbolicRef is generally "HEAD".
No description provided by the author
No description provided by the author
WorkDir is the top level of the work directory of the current process, or the empty string if the --bare option is provided.