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
x/review/git-codereview: detect when there is more than one pending change #9291
Comments
Another option is to put this in a commit hook to catch at git commit time (again, unless explicitly disabled somehow). |
Could Gerrit be configured so that it creates the CL but doesn't send the That will also make it easier to experience and test the review command. Or could we set up a dummy go repo for testing purposes (even on a separate |
I'd like to preserve the ability of |
mail already has a -f flag. Maybe it could be used to force this too. Or is On 13 December 2014 at 07:46, Brad Fitzpatrick notifications@github.com
|
After c3e5818 "git mail" complains if there are multiple pending CLs, and the user needs to explicitly pass the change to mail. It seems to cover the original issue (mail would ask which change, and the user could notice there are two), and permits pushing multiple commits (just pass the tip of the branch). Should we close this? |
Rick got burned by running 'git commit' instead of 'git change' and ending up in a branch with two commits. Then git mail helpfully pushed them both to Gerrit, which helpfully created two changes.
Something in the review tool should detect multiple commits and print an error and die.
Maybe git mail, or maybe something earlier.
Note that I am NOT saying people can't use the multiple commit mode of Gerrit, I'm just saying that the review tool isn't going to help them do that, at least not by default.
@adg
The text was updated successfully, but these errors were encountered: