Skip to content

Add completion spec: git rev-parse - #425

Open
itsyunnie wants to merge 1 commit into
warpdotdev:mainfrom
itsyunnie:codex/git-rev-parse-completions
Open

itsyunnie wants to merge 1 commit into
warpdotdev:mainfrom
itsyunnie:codex/git-rev-parse-completions

Conversation

@itsyunnie

Copy link
Copy Markdown

Closes #292.

Adds revision completions for git rev-parse. Its optional, repeatable revision argument uses the existing local branch, remote branch, commit, and tag generators, so completion also works after a first revision has been entered.

The change adds 15 lines to command-signatures/json/git.json and follows the existing git show argument structure. Full flag coverage and Rust generator changes are outside this change's scope.

Validation:

  • Windows script/presubmit passed: JSON formatting, cargo fmt, Clippy across all targets/features with warnings denied, and 183 tests (0 failures).
  • git diff --check passed.
  • Built Warp OSS on Windows against this modified local crate and manually verified all four generator dropdowns, candidate insertion, and completion of a second revision. The screenshots below are from that local build.

Local branches:
Local branch completions

Remote branches:
Remote branch completions

Commits:
Commit completions

Tags:
Tag completions

Selected commit as the first argument, with tag completions for a second revision:
Selection and second revision completion

Related prior work: #291.

@cla-bot

cla-bot Bot commented Oct 31, 2026

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @itsyunnie on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@itsyunnie

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed label Oct 31, 2026
@cla-bot

cla-bot Bot commented Oct 31, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add git rev-parse completions

1 participant