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

Overwrite AUR-repo's working directory instead of copying individual files #37

Open
PRESFIL opened this issue Oct 15, 2023 · 1 comment

Comments

@PRESFIL
Copy link

PRESFIL commented Oct 15, 2023

Description

To fully manage the contents of the AUR repository, a rewriting approach is
needed, which affects the working folder as 1:1. Does it make any sense to use
copying files instead of overwriting the entire working folder?

Use case

The need to delete a file from the AUR repository. Now it is only possible to
overwrite the file in the repository when copying, with or without assets, but
you cannot delete file. Even if I duplicate file in the GitHub repository first,
and then delete it, will it remain in the AUR? This is very unobvious.

@KSXGitHub
Copy link
Owner

KSXGitHub commented Oct 15, 2023

I am quite busy recently, so I am willing to accept a PR that accepts a parameter named asset_dir.

  • This asset_dir should conflict with assets to avoid confusion (user is forbidden from specifying both assets and asset_dir).
  • When asset_dir is specified, this tool should mirror the target repo ($target_dir/) to be like $asset_dir/:
    • In $target_dir/, files are deleted according to git ls-tree --name-only.
    • $asset_dir/.gitignore is respected when choosing which files to copy to $target_dir/.

If you have problems with the above specification, please let me know.

If you are also too busy to make a PR, then you would have to wait for quite a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants