Skip to content

Instantly share code, notes, and snippets.

@craftslab
Last active March 19, 2024 10:56
Show Gist options
  • Save craftslab/70fc5831cfaf1be75f50139c684f546e to your computer and use it in GitHub Desktop.
Save craftslab/70fc5831cfaf1be75f50139c684f546e to your computer and use it in GitHub Desktop.
gerrit ssh

Run

# Query operators may quote values using matched curly braces (e.g. reviewerin:{Developer Group}) to sidestep issues
# with 2 levels of shell quoting (caller shell invoking SSH, and the SSH command line parser in the server).

# Query topic with whitespaces
ssh -p 29418 127.0.0.1 'gerrit query --format=JSON --current-patch-set --files topic:\"two\ \ whitespaces\"'

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment