Skip to content

Conversation

@hongquan
Copy link
Contributor

@hongquan hongquan commented Feb 22, 2025

Improvement:

  • Faster to give result (calling git less, telling git to return simpler-to-parse output).
  • Context aware. For example:
    • After git checkout branch-name, the rest arguments must be file paths (git checkout only accepts one "branch").
    • After -- are file paths. git checkout a-branch -- a-file

The current completer for git checkout is slow because:

  • Running git too many times.
  • Parse many results and end up not use.

image

image

@fdncred fdncred merged commit 1e7fdd4 into nushell:main Feb 22, 2025
1 check passed
@fdncred
Copy link
Contributor

fdncred commented Feb 22, 2025

LGTM! Thanks

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