Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: gitea dump should try to detect type from filename, if possible #24622

Closed
DanielGibson opened this issue May 9, 2023 · 1 comment
Closed
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@DanielGibson
Copy link

DanielGibson commented May 9, 2023

Feature Description

If a filename is given for gitea dump (-f or --file) and it has a file ending that corresponds to a supported --type and --type is not set, the type that corresponds to the filename should be automatically used.

For example, gitea dump -f /path/to/mydump.tar should create a tar (currently it would create /path/to/mydump.zip)

Not strictly necessary bonus-feature: Support some common alternative file-endings (like tgz for .tar.gz or .tbz for .tar.bz2)

@DanielGibson DanielGibson added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels May 9, 2023
@wxiaoguang
Copy link
Contributor

Done by #30240

@lunny lunny removed the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Apr 3, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jul 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

3 participants