Skip to content

git-completion fixes#1213

Merged
fdncred merged 2 commits intonushell:mainfrom
kevmoo:more_git_fixes
Feb 5, 2026
Merged

git-completion fixes#1213
fdncred merged 2 commits intonushell:mainfrom
kevmoo:more_git_fixes

Conversation

@kevmoo
Copy link
Contributor

@kevmoo kevmoo commented Feb 5, 2026

  • update push logic to support pushing a :delete

Also used for-each-ref as a replacement for branch --no-color

I've double-checked the behavior and found that the refactor actually fixes 2 bugs in the original implementation that I missed initially:

  • Symrefs: git branch output included -> target (e.g. origin/HEAD -> origin/main), which created invalid completions. for-each-ref gives clean origin/HEAD.
  • Detached HEAD: git branch output included (HEAD detached at ...), which was garbage. for-each-ref ignores it. I've updated the walkthrough with these details.

I've double-checked the behavior and found that the refactor actually fixes 2 bugs in the original implementation that I missed initially:

- Symrefs: git branch output included -> target (e.g. origin/HEAD -> origin/main), which created invalid completions. for-each-ref gives clean origin/HEAD.
- Detached HEAD: git branch output included (HEAD detached at ...), which was garbage. for-each-ref ignores it. I've updated the walkthrough with these details.
@fdncred
Copy link
Contributor

fdncred commented Feb 5, 2026

ok, let's try it. thanks!

@fdncred fdncred merged commit 00f8a98 into nushell:main Feb 5, 2026
1 check passed
@kevmoo kevmoo deleted the more_git_fixes branch February 5, 2026 20:14
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