themekit icon indicating copy to clipboard operation
themekit copied to clipboard

Detect deleted files?

Open vfonic opened this issue 3 years ago • 0 comments

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

vfonic avatar Apr 21 '21 07:04 vfonic