Skip to content

Commit

Permalink
Skip headers in status output
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueDoctor authored and arxanas committed Nov 11, 2024
1 parent c6c12e5 commit 00a87d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-branchless-lib/src/git/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,8 @@ impl Repo {
line.extend(status_bytes.by_ref().take_while(not_null_terminator));
line
}
// Skip header lines
b'#' => continue,
_ => {
return Err(Error::UnknownStatusLinePrefix {
prefix: *line_prefix,
Expand Down

0 comments on commit 00a87d5

Please sign in to comment.