package
1.8.0
Repository: https://github.com/jolheiser/gitea.git
Documentation: pkg.go.dev

# Functions

CleanUpMigrateInfo finishes migrating repository and/or wiki with things that don't need to be done for mirrors.
CommitToPushCommit transforms a git.Commit to PushCommit type.
CreateDelegateHooks creates all the hooks scripts for the repo.
CreateNewBranch creates a new repository branch.
CreateNewBranchFromCommit creates a new repository branch.
CreateRepository creates a repository for the user/organization.
DeleteMissingRepositories deletes all repository records that lost Git files.
ForkRepository forks a repository.
GenerateGitContent generates git content from a template repository.
GenerateRepository generates a repository from a template.
GetBranch returns a branch by its name.
GetBranches returns all the branches of a repository.
GitFsck calls 'git fsck' to check repository health.
GitGcRepos calls 'git gc' to remove unnecessary files and optimize the local repository.
ListToPushCommits transforms a list.List to PushCommits type.
MigrateRepositoryGitData starts migrating git related data after created migrating repository.
NewPushCommits creates a new PushCommits object.
PushUpdateAddTag must be called for any push actions to add tag.
ReinitMissingRepositories reinitializes all repository records that lost Git files.
SyncReleasesWithTags synchronizes release table with repository tags.
SyncRepositoryHooks rewrites all repositories' pre-receive, update and post-receive hooks to make sure the binary and custom conf path are up-to-date.

# Structs

PushCommit represents a commit in a push operation.
PushCommits represents list of commits in a push operation.