Files
oh-my-zsh/lib
Robby RussellandClaude Opus 5 7c37eac972 fix(git): take the branch from the last rev-parse line, keep one status line
A git dir path may contain a newline, so splitting the combined
rev-parse output on newlines can leave the branch somewhere past
element 2. The branch is always the final line, so read it from the end.

parse_git_dirty only needs to know whether the porcelain output is
empty. Read a single line with the read builtin instead of capturing
every line, so a worktree with many changes doesn't build a large
string on each prompt.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 07:54:31 -07:00
..
2025-07-21 18:39:25 +02:00
2024-11-21 09:01:48 +01:00
2022-01-03 13:50:50 +01:00