Fix output for ahead/behind branches

This commit is contained in:
2021-11-22 21:19:02 +01:00
parent 6b80a0f2d5
commit 12cb18c528

View File

@@ -481,7 +481,7 @@ fn add_repo_status(table: &mut Table, repo_name: &str, repo_handle: &git2::Repos
RemoteTrackingStatus::Ahead(d) => format!(" [+{}]", &d),
RemoteTrackingStatus::Behind(d) => format!(" [-{}]", &d),
RemoteTrackingStatus::Diverged(d1, d2) =>
format!(" [-{}/+{}]", &d1, &d2),
format!(" [+{}/-{}]", &d1, &d2),
}
)
}