summaryrefslogtreecommitdiffstats
path: root/gita/info.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-16 05:43:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-16 05:43:04 +0000
commit5e9d53ef29710380368b60c82e146c5d82235e12 (patch)
treeefc287af4d977d585b4717455c68e31c6d57439f /gita/info.py
parentReleasing debian version 0.16.4-1. (diff)
downloadgita-5e9d53ef29710380368b60c82e146c5d82235e12.tar.xz
gita-5e9d53ef29710380368b60c82e146c5d82235e12.zip
Merging upstream version 0.16.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gita/info.py')
-rw-r--r--gita/info.py5
1 files changed, 3 insertions, 2 deletions
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: