From 5e9d53ef29710380368b60c82e146c5d82235e12 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 16 Jul 2023 07:43:04 +0200 Subject: Merging upstream version 0.16.5. Signed-off-by: Daniel Baumann --- gita/info.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gita/info.py') diff --git a/gita/info.py b/gita/info.py index 3af3178..bfb463b 100644 --- a/gita/info.py +++ b/gita/info.py @@ -198,9 +198,10 @@ def get_commit_time(prop: Dict[str, str]) -> str: def get_repo_status(prop: Dict[str, str], no_colors=False) -> str: head = get_head(prop["path"]) dirty, staged, untracked, color = _get_repo_status(prop, no_colors) + info = f"{head:<10} [{dirty+staged+untracked}]" if color: - return f"{color}{head+' ['+dirty+staged+untracked+']':<13}{Color.end}" - return f"{head+' ['+dirty+staged+untracked+']':<13}" + return f"{color}{info:<17}{Color.end}" + return f"{info:<17}" def get_repo_branch(prop: Dict[str, str]) -> str: -- cgit v1.2.3