-
Notifications
You must be signed in to change notification settings - Fork 4
Keep intermediate git state if --allow-noop
was passed
#29
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
Conversation
Hm, TBH I don't care for that merge commit. Would it make sense to keep the rust-version update but not have a noop merge?
|
861eb48
to
f64718c
Compare
The commit is only created if there are some empty merge commits from upstream, sometimes it's not even created. I thought that what you suggest would complicate the implementation, but it actually makes it simpler 😆 So I changed it like you proposed. |
Although, I wonder if it won't be an issue that |
Ah, good point. There's a slight risk the next josh-push will act up because the commit it is based on (which is taken from rust-version) hasn't been fully integrated into the local history yet. But that seems unlikely and we should notice if this ever happens. |
Alright, let's try it. |
Yeah I guess it does cause issues.^^ (The fix is to pull again before making a push.) |
That seems annoying. I'd rather remove the flag if it has such footgun. WDYT about keeping also the potential merge commit? |
Yeah I think if josh-proxy returned new commits we should just have that merge commit then. We don't need a merge commit if josh-proxy returned the exact same commit that has already been merged before. |
That's easy, because in that case git doesn't evern create the merge commit. #30 should fix this. |
If a pull is a no-op, the preparation commit that updates
rust-version
, along with the (possibly empty) merge commit, is kept if--allow-noop
is passed.CC @RalfJung
Fixes: #26