package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

CanUserDelete returns true if user could delete the repository.
CanUserForkRepo returns true if specified user can fork repository.
CheckDaemonExportOK creates/removes git-daemon-export-ok for git-daemon...
CheckDelegateHooks checks the hooks scripts for the repo.
CommitToPushCommit transforms a git.Commit to PushCommit type.
CreateDelegateHooks creates all the hooks scripts for the repo.
CreateTemporaryPath creates a temporary path.
FullPushingEnvironment returns an os environment to allow hooks to work on push.
GitToPushCommits transforms a list of git.Commits to PushCommits type.
InitializeLabels adds a label set to a repository using a template.
InternalPushingEnvironment returns an os environment to switch off hooks on push It is recommended to avoid using this unless you are pushing within a transaction or if you absolutely are sure that post-receive and pre-receive will do nothing We provide the full pushing-environment for other hook providers.
LoadRepoConfig loads the repository config.
LoadTemplateLabelsByDisplayName loads a label template by its display name.
LocalCopyPath returns the local repository temporary copy path.
NewPushCommits creates a new PushCommits object.
PushingEnvironment returns an os environment to allow hooks to work on push.
PushUpdateAddTag must be called for any push actions to add tag.
RemoveTemporaryPath removes the temporary path.
StoreMissingLfsObjectsInRepository downloads missing LFS objects.
SyncReleasesWithTags synchronizes release table with repository tags.
SyncRepoBranches synchronizes branch table with repository branches.
SyncRepoTags synchronizes releases table with repository tags.
ToAPIPayloadCommit converts a single PushCommit to an api.PayloadCommit object.
UpdateRepository updates a repository with db context.
UpdateRepoSize updates the repository size, calculating it using getDirectorySize.
WikiRemoteURL returns accessible repository URL for wiki if exists.

# Constants

env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
public key ID.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.

# Variables

Gitignores contains the gitiginore files.
LabelTemplateFiles contains the label template files, each item has its DisplayName and Description.
Licenses contains the license files.
Readmes contains the readme files.

# Structs

PushCommit represents a commit in a push operation.
PushCommits represents list of commits in a push operation.
PushUpdateOptions defines the push update options.

# Type aliases