From 12c293fa4873177f5b979c86bdcf3e032ef5d884 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Fri, 8 Nov 2024 15:45:40 +0100 Subject: [PATCH] Skip headers in status output --- git-branchless-lib/src/git/repo.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-branchless-lib/src/git/repo.rs b/git-branchless-lib/src/git/repo.rs index d2bee7c4..8a6deafa 100644 --- a/git-branchless-lib/src/git/repo.rs +++ b/git-branchless-lib/src/git/repo.rs @@ -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,