Skip to content

Commit 00a87d5

Browse files
TrueDoctorarxanas
authored andcommitted
Skip headers in status output
1 parent c6c12e5 commit 00a87d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-branchless-lib/src/git/repo.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,8 @@ impl Repo {
10281028
line.extend(status_bytes.by_ref().take_while(not_null_terminator));
10291029
line
10301030
}
1031+
// Skip header lines
1032+
b'#' => continue,
10311033
_ => {
10321034
return Err(Error::UnknownStatusLinePrefix {
10331035
prefix: *line_prefix,

0 commit comments

Comments
 (0)