Skip to content

Wire branch completion into git log argument position#264

Merged
lucieleblanc merged 1 commit into
mainfrom
app-4071/command-spec-git-log
Apr 16, 2026
Merged

Wire branch completion into git log argument position#264
lucieleblanc merged 1 commit into
mainfrom
app-4071/command-spec-git-log

Conversation

@lucieleblanc
Copy link
Copy Markdown
Contributor

Summary

Enhance git log completions by adding commonly used options and verifying that branch completion generators work correctly in revision argument positions.

What changed

New options added to git log:

  • Display: --graph, --all, --decorate, --no-decorate, --abbrev-commit
  • Limiting: -n/--max-count, --skip, --since/--after, --until/--before
  • Filtering: --committer, --all-match, --invert-grep, --merges, --no-merges, --first-parent
  • Formatting: --format/--pretty (with suggestions: oneline, short, medium, full, fuller, reference, email, raw), --date (with format suggestions)
  • Diff output: --name-only, --name-status, --diff-filter, -S, -G, --full-diff
  • Range: --reverse, --left-right, --cherry-pick, --simplify-by-decoration

Branch completion generators (local_branches, remote_branches, tags, commits) are already wired into both revision argument positions (since and until).

Screenshots

Tested in a local Warp build against a git repo with non-trivial branch names (feature/auth-redesign, bugfix/login-timeout, release/v2.3.0, hotfix/memory-leak-fix, chore/update-dependencies).

git log (first argument position — branch completions dropdown):
git log branch completions

git log feat (filtered branch completion — auto-completes to feature/auth-redesign):
git log filtered branch completion

git log master (second argument position — branch completions still work):
git log second arg branch completions


Conversation: https://staging.warp.dev/conversation/96610dde-1d64-4515-a336-3c6a7f00bea3
Run: https://oz.staging.warp.dev/runs/019d9240-f91b-768e-8f32-53f911b2c0ea
This PR was generated with Oz.

Add commonly used git log options including --graph, --all, --decorate,
-n/--max-count, --format/--pretty, --date, --first-parent, --merges,
--no-merges, --reverse, --name-only, --name-status, --diff-filter, -S, -G,
--left-right, --cherry-pick, --full-diff, --simplify-by-decoration,
--since/--after, --until/--before, --committer, --all-match, --invert-grep,
--abbrev-commit, and --skip.

Branch completion generators (local_branches, remote_branches, tags, commits)
are already wired into the revision argument positions.

Co-Authored-By: Oz <oz-agent@warp.dev>
@linear
Copy link
Copy Markdown

linear Bot commented Apr 15, 2026

APP-4071 [git] Wire branch completion into git log argument position

We already did something similar in APP-3484 and APP-3486. Ensure the same is done for git log.

warpdotdev/warp#3805

@lucieleblanc lucieleblanc marked this pull request as ready for review April 16, 2026 14:50
@acarl005 acarl005 self-requested a review April 16, 2026 18:49
@lucieleblanc lucieleblanc merged commit 7188c36 into main Apr 16, 2026
3 checks passed
@lucieleblanc lucieleblanc deleted the app-4071/command-spec-git-log branch April 16, 2026 18:50
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

Successfully merging this pull request may close these issues.

2 participants