Skip to content

Add git update-ref completions #287

Open

Description

@SkyNotSilent

Warp issue warpdotdev/warp#12322 requests completions for git update-ref, including workflows like:

git fetch origin
git update-ref --no-deref HEAD refs/remotes/origin/main
git read-tree HEAD
git checkout-index -fa
git clean -fd

The command-signatures package should add git update-ref metadata and complete full Git ref names such as refs/remotes/origin/main for the ref/value arguments.

Activity

  1. warp-for-oss commented on Jun 22, 2026

    @warp-for-oss

    @SkyNotSilent

    Here's what I found while triaging this issue:

    Thanks for the clear request. The Git completions currently do not include git update-ref, so this is actionable as an enhancement to add the command metadata and full-ref suggestions.

    Maintainer details

    I concluded that feature request to add command-signature support for git update-ref, including full Git ref-name completions for ref/value arguments..

    Triage summary

    This is an actionable enhancement request to add git update-ref completions. The report asks for command metadata for git update-ref and full Git ref-name suggestions such as refs/remotes/origin/main for ref/value positions.

    Evidence

    • command-signatures/json/git.json does not currently include an update-ref subcommand.
    • Existing Git generators in command-signatures/src/generators/git.rs cover commits, tags, local branches, remote branches, and shortened remote branch names, but they do not expose full ref names in the refs/... form requested here.
    • git update-ref -h confirms the command accepts forms like <refname> <new-oid> [<old-oid>], -d <refname> [<old-oid>], and --stdin, with options including --no-deref.

    Likely implementation area

    Add an update-ref subcommand entry to the Git spec and add or reuse a Git generator that can suggest complete ref names from git for-each-ref --format="%(refname)" for the ref-name arguments. Object/value arguments may also want existing revision/commit-style generators where appropriate.

    Duplicate check

    I checked all open issues plus recently closed issues and did not find two or more likely duplicates.

    This is my automated analysis and may be incorrect. A maintainer will verify the details.

    Powered by Oz

  2. SkyNotSilent commented on Jun 22, 2026

    @SkyNotSilent
    Author

    This is the same request as warpdotdev/warp#12322, which points to command-signatures for implementation. I opened PR #286 with the completion spec and ref generator. Could a maintainer please confirm this issue and mark it ready-to-implement if the approach is acceptable? Once marked, I can re-trigger Oz review with /oz-review.

  3. added
    enhancement
    on Jun 22, 2026
  4. added
    ready-to-implement
    on Jul 10, 2026
  5. warp-for-oss commented on Jul 10, 2026

    @warp-for-oss

    This issue has been labeled ready-to-implement and is open for contributions involving code changes. If you'd like to tackle it, feel free to open a pull request against this issue. You can also comment @oz-agent on this issue to have the bot draft an implementation PR automatically.

  6. self-assigned this
    on Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementready-to-implement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions