# Functions
AddAllRepositoriesToTeam adds all repositories to the team.
AdoptRepository adopts pre-existing repository files for the user/organization.
CacheRef cachhe last commit information of the branch or the tag.
CancelRepositoryTransfer marks the repository as ready and remove pending transfer entry, thus cancel the transfer process.
ChangeRepositoryName changes all corresponding setting from old repository name to new one.
CleanUpMigrateInfo finishes migrating repository and/or wiki with things that don't need to be done for mirrors.
ConvertForkToNormalRepository convert the provided repo from a forked repo to normal repo.
CreateNewBranch creates a new repository branch.
CreateNewBranchFromCommit creates a new repository branch.
CreateRepository creates a repository for the user/organization.
CreateRepositoryByExample creates a repository for the user/organization.
CreateRepositoryDirectly creates a repository for the user/organization.
DeleteAvatar deletes the repos's custom avatar.
DeleteBranch delete branch.
DeleteCollaboration removes collaboration relation between the user and repository.
DeleteMissingRepositories deletes all repository records that lost Git files.
DeleteOwnerRepositoriesDirectly calls DeleteRepositoryDirectly for all repos of the given owner.
DeleteRepository deletes a repository for a user or organization.
DeleteRepository deletes a repository for a user or organization.
DeleteUnadoptedRepository deletes unadopted repository files from the filesystem.
DelRepoDivergenceFromCache deletes all divergence caches of a repository.
FindForks returns all the forks of the repository.
ForkRepository forks a repository.
GarbageCollectLFSMetaObjects garbage collects LFS objects for all repositories.
GarbageCollectLFSMetaObjectsForRepo garbage collects LFS objects for a specific repository.
GenerateGitContent generates git content from a template repository.
GenerateGitHooks generates git hooks from a template repository.
GenerateIssueLabels generates issue labels from a template repository.
GenerateRepository generates a repository from a template.
GenerateWebhooks generates webhooks from a template repository.
GetContributorStats returns contributors stats for git commits for given revision or default branch.
GitFsckRepo calls 'git fsck' to check an individual repository's health.
GitFsckRepos calls 'git fsck' to check repository health.
GitGcRepo calls 'git gc' to remove unnecessary files and optimize the local repository.
GitGcRepos calls 'git gc' to remove unnecessary files and optimize the local repository.
HasRepository returns true if given repository belong to team.
Init start repository service.
IsErrForkAlreadyExist checks if an error is an ErrForkAlreadyExist.
LinkedRepository returns the linked repo if any.
ListUnadoptedRepositories lists all the unadopted repositories that match the provided query.
LoadBranches loads branches from the repository limited by page & pageSize.
LoadBranchesAndTags creates a new repository branch.
MigrateRepositoryGitData starts migrating git related data after created migrating repository.
PushCreateRepo creates a repository when a new repository is pushed to an appropriate namespace.
PushUpdate is an alias of PushUpdates for single push update options.
PushUpdateAddDeleteTags updates a number of added and delete tags.
PushUpdates adds a push update to push queue.
ReinitMissingRepositories reinitializes all repository records that lost Git files.
RemoveAllRepositoriesFromTeam removes all repositories from team and recalculates access.
RemoveRandomAvatars removes the randomly generated avatars that were created for repositories.
RemoveRepositoryFromTeam removes repository from team of organization.
RenameBranch rename a branch.
StartRepositoryTransfer transfer a repo from one owner to a new one.
SyncBranchesToDB sync the branch information in the database.
SyncRepositoryHooks rewrites all repositories' pre-receive, update and post-receive hooks to make sure the binary and custom conf path are up-to-date.
TeamAddRepository adds new repository to team of organization.
TransferOwnership transfers all corresponding setting from old user to new one.
UpdateRepoLicenses will update repository licenses col if license file exists.
UpdateRepository updates a repository.
UpdateRepositoryUnits updates a repository's units.
UploadAvatar saves custom avatar for repository.
# Structs
Branch contains the branch information.
ContributorData represents statistical git commit count data.
CreateRepoOptions contains the create repository options.
ErrForkAlreadyExist represents a "ForkAlreadyExist" kind of error.
ExtendedCommitStats contains information for commit stats with author data.
ForkRepoOptions contains the fork repository options.
GarbageCollectLFSMetaObjectsOptions provides options for GarbageCollectLFSMetaObjects function.
GenerateRepoOptions contains the template units to generate.
GiteaTemplate holds information about a .gitea/template file.
WebSearchRepository represents a repository returned by web search.
WebSearchResults results of a successful web search.