summaryrefslogtreecommitdiffstats
path: root/gita/info.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-16 05:43:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-16 05:43:00 +0000
commit85e8dc18fe8b9a1a5a7be27fb5a4565bf40a6581 (patch)
tree2f0ccb73ce0586d9e8313c17087052cf3f218848 /gita/info.py
parentAdding upstream version 0.16.4. (diff)
downloadgita-85e8dc18fe8b9a1a5a7be27fb5a4565bf40a6581.tar.xz
gita-85e8dc18fe8b9a1a5a7be27fb5a4565bf40a6581.zip
Adding upstream version 0.16.5.upstream/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: