package
2.2.0+incompatible
Repository: https://github.com/erda-project/erda.git
Documentation: pkg.go.dev
# Functions
AddAllChanges marks local changes to be ready for commit.
Version returns current Git version from shell.
No description provided by the author
Checkout checkouts a branch.
No description provided by the author
CommitChanges commits local changes with given committer, author and message.
CommitsCount returns number of total commits of until given revision.
Fsck verifies the connectivity and validity of the objects in the database.
GetCommitFileStatus returns file status of commit in given repository.
GetLatestCommitDate returns the date of latest commit of repository.
No description provided by the author
No description provided by the author
InitExternalRepository 初始化外部托管仓库.
InitRepository initializes a new Git repository.
IsBranchExist returns true if given branch exists in the repository.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsReferenceExist returns true if given reference exists in the repository.
IsTagExist returns true if given tag exists in the repository.
MoveFile moves a file to another file or directory.
NewCommand creates and returns a new Git Command based on given command and arguments.
No description provided by the author
No description provided by the author
No description provided by the author
NewMemCache If maxItemSize is zero, the cache has no limit.if maxItemSize is not zero, when cache's size beyond maxItemSize,start to swap.
No description provided by the author
No description provided by the author
No description provided by the author
PushExternalRepository 推送到外部仓库.
No description provided by the author
No description provided by the author
SyncExternalRepository 同步外部仓库.
Convert any type to string.
UnescapeChars reverses escaped characters.
UpdateExternalRepository 更新远程仓库配置.
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
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
There are only a few file modes in Git.
There are only a few file modes in Git.
There are only a few file modes in Git.
There are only a few file modes in Git.
There are only a few file modes in Git.
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
# Variables
Debug enables verbose logging on everything.
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
Blob represents a Git object.
Branch represents a Git branch.
No description provided by the author
No description provided by the author
No description provided by the author
Command represents a command with its subcommands or arguments.
Commit represents a git commit.
No description provided by the author
CommitFileStatus represents status of files in a commit.
CountObject represents disk usage report of Git repository.
No description provided by the author
Diff contains all information of a specific diff output.
DiffFile represents a file in diff.
DiffLine represents a line in diff.
No description provided by the author
DiffSection represents a section in diff.
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
MemCache is an LRU cache.
No description provided by the author
No description provided by the author
No description provided by the author
Repository represents a Git repository.
Signature represents the Author or Committer information.
No description provided by the author
No description provided by the author
SubModuleFile represents a file with submodule type.
Tag represents a Git tag.
Tree represents a flat directory listing.
No description provided by the author
# Interfaces
this is a interface which defines some common functions.
# Type aliases
An AtomicInt is an int64 to be accessed atomically.
No description provided by the author
DiffFileType represents the file status in diff.
DiffLineType represents the type of a line in diff.
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
Convert string to specify type.