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

Feature request: exit if worktree is not clean #2

Closed
hazcod opened this issue Jan 14, 2020 · 1 comment · Fixed by #3
Closed

Feature request: exit if worktree is not clean #2

hazcod opened this issue Jan 14, 2020 · 1 comment · Fixed by #3

Comments

@hazcod
Copy link
Contributor

hazcod commented Jan 14, 2020

In order to not destroy any pending changes accidentally, cob should exit with status 1 if there are changes found in the git tree.

I think you could use WorkTree.Status().IsClean() for this.

@knqyf263
Copy link
Owner

Thanks. It's a nice idea. I will implement it.

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 a pull request may close this issue.

2 participants