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

gerrit-upload dryrun: output diff for already uploaded changes #37

Open
twmr opened this issue May 20, 2022 · 0 comments
Open

gerrit-upload dryrun: output diff for already uploaded changes #37

twmr opened this issue May 20, 2022 · 0 comments

Comments

@twmr
Copy link
Owner

twmr commented May 20, 2022

If you upload a change that is already on gerrit it should be possible to somehow display the local changes (if there are any) between the local HEAD and the latest patchset of the change on gerrit.

If your local commit/change is in sync with the latest PS of the change on gerrit, gerrit-upload should output an error/warning.

To be performed steps:

  • find the change with the changeid of the current change on the gerrit server and fetch (only fetch!) it
  • if HEAD and FETCH_HEAD are identical, output a warning, otherwise
  • diff HEAD against the FETCH_HEAD and display it in new buffer
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

No branches or pull requests

1 participant