branchName = head === '(detached)' ? undefined : head;
} else if (line.startsWith('# branch.upstream ')) {
upstreamBranchName = line.substring('# branch.upstream '.length).trim();
agentHostGitService.ts
} else if (line.startsWith('# branch.ab ')) {
if (m) {
outgoingChanges = Number(m[1]);
incomingChanges = Number(m[2]);
}
} else if (!line.startsWith('#')) {
uncommittedChanges++;