# Functions
ApplyDiffPatch applies a patch to the given repository.
ChangeRepoFiles adds, updates or removes multiple files in the given repository.
CherryPick cherrypicks or reverts a commit to the given repository.
CleanUploadFileName Trims a filename and returns empty string if it is a .git directory.
CountDivergingCommits determines how many commits a branch is ahead or behind the repository's base branch.
CreateOrUpdateFile handles creating or updating a file for ChangeRepoFiles.
GetAuthorAndCommitterUsers Gets the author and committer user objects from the IdentityOptions.
GetBlobBySHA get the GitBlobResponse of a repository using a sha hash.
GetContents gets the meta data on a file's contents.
GetContentsOrList gets the meta data of a file's contents (*ContentsResponse) if treePath not a tree directory, otherwise a listing of file contents ([]*ContentsResponse).
GetDiffPreview produces and returns diff result of a file which is not yet committed.
GetFileCommitResponse Constructs a FileCommitResponse from a Commit object.
GetFileResponseFromCommit Constructs a FileResponse from a Commit object.
constructs a FileResponse with the file at the index from FilesResponse.
GetObjectTypeFromTreeEntry check what content is behind it.
GetPayloadCommitVerification returns the verification information of a commit.
GetTreeBySHA get the GitTreeResponse of a repository using a sha hash.
NewTemporaryUploadRepository creates a new temporary upload repository.
TryGetContentLanguage tries to get the (linguist) language of the file content.
UploadRepoFiles uploads files to the given repository.
VerifyBranchProtection verify the branch protection for modifying the given treePath on the given branch.
# Constants
ContentTypeDir dir content type (dir).
ContentLink link content type (symlink).
ContentTypeRegular regular content type (file).
ContentTag submodule content type (submodule).
# Structs
ApplyDiffPatchOptions holds the repository diff patch update options.
ChangeRepoFilesOptions holds the repository files update options.
CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE.
IdentityOptions for a person's identity like an author or committer.
TemporaryUploadRepository is a type to wrap our upload repositories as a shallow clone.
UploadRepoFileOptions contains the uploaded repository file options.
# Type aliases
ContentType repo content type.