themekit
themekit copied to clipboard
Detect deleted files?
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
- Removing all the local files before doing
theme download
and then is if there are any differences withgit status --porcelain
- Check
theme download --verbose
output and compare it with the output ofls
command locally