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

Fix bug where Tinty won't update local templates with custom schemes #63

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

JamyGolden
Copy link
Member

When tinty generate-scheme has been used or custom schemes are added to ~/.local/share/tinted-theming/tinty/custom-schemes and tinty apply is run, apply behaves differently: Instead of just applying the theme, it builds each template first (using tinted-builder-rust). This is necessary to be able to have custom schemes exist for templates.

Currently tinty update checks to see if there are any diffs, if there are it does not update and asks the user to remove all of their changes to the repo first. This is where the problem lies since the templates contain themes that aren't in the git history so tinty won't update when custom schemes are used.

The change in this PR changes the diff check to allow untracked files since there is low risk of a conflict with a git pull in that case.

@JamyGolden JamyGolden requested a review from a team as a code owner September 25, 2024 10:18
@JamyGolden JamyGolden merged commit ee020f5 into main Sep 25, 2024
5 checks passed
@JamyGolden JamyGolden deleted the jamy/bugfix/update-local-templates branch September 25, 2024 10:19
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

Successfully merging this pull request may close these issues.

1 participant