-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement coh tag
command
#7
Conversation
Closes #6
Let me know if we want some acknowledgement output, such as "Successfully created tag ..." (git doesn't print it out, but git always accepts an absolute name, so it has an excuse) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I have a few nitpicks and some suggestions about naming and execution.
bb0ec1f
to
6338f24
Compare
I'm not fine without a demonstrated use case of this command. Let's just not test it locally yet. I'll add some doctests. |
I'm okay without the message. I can see how it could be useful, though. I frequently run |
Maybe we could roll out a fixture to create a temporary repo. |
Also, don't feel obliged to make it a doctest. If you'd rather write proper unit tests (and that's what most of the world besides me would expect), feel free to create one in |
In case it's a proper unit test (which is the best as I think about it), we could monkeypatch |
Definitely, yes! Tracking in jaraco/jaraco.vcs#36. |
If we go that route, I'd recommend pytest-subprocess. |
Looks awesome, thanks! However my instinct is that it is more suitable in this specific case to test against the actual Git, as it is done in the project we depend on, i.e. |
I took a look at the fixtures there, and they're a little peculiar. They create two commits with a |
As discussed in Discord, this hesitation will be solved by verbosity levels. |
Wait a sec. I'll put that |
Well, the project is entirely untested yet. I guess we can add tests later, as soon as I get some more time. |
I used the feature to cut the next release of this project:
|
Ahhh, I didn't use the result of |
No biggie. |
Closes #6