-
-
Notifications
You must be signed in to change notification settings - Fork 937
How to check if a commit exists? #721
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
Comments
I think the way to go is to catch the exception. |
Hi Byron, your answer is clear, thank you. However, I think it is possible to keep the issue open for future improvement: it can be a feature that other people think is worth to have.
Thank you, Byron |
If it should be a feature or change in behavior, please submit a new issue which presents the desired capabilities in a way that would allow discussion and/or contributions. Thank you |
Like the title says. I'd like to check if a specific commit exists.
Trying to run
iter_commits
over a rev that doesn't exists throws an exception, and I'd like to avoid that in order to provide nicer user output for my script.Pseudocode:
The text was updated successfully, but these errors were encountered: