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

Detect deleted files? #929

Open
vfonic opened this issue Apr 21, 2021 · 0 comments
Open

Detect deleted files? #929

vfonic opened this issue Apr 21, 2021 · 0 comments

Comments

@vfonic
Copy link

vfonic commented Apr 21, 2021

Is your feature request related to a problem? Please describe.

I have a local git repo with theme files. When I do theme download, the theme files get downloaded as expected.

However, if someone deleted the file from the remote theme, the file will remain in the local repo.
It kind-of sounds like theme download; theme deploy should add no new files to the remote theme.

But in the case I have more files locally, those files will be pushed to the live theme. Is there a way to track deleted files from remote theme?

Describe the solution you'd like

Provide a public API (of the themekit tool, not REST API endpoint) to track file difference between local repo and remote repo. I think you already leverage something like this internally for this tool to work. It could be useful to have this exposed externally so that I can see if there are any extra files that I have locally that will be uploaded to the remote theme, before they are uploaded (something like dry run).

Describe alternatives you've considered

  1. Removing all the local files before doing theme download and then is if there are any differences with git status --porcelain
  2. Check theme download --verbose output and compare it with the output of ls command locally
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants