From 7f4bd2baf66af0925b06318ed62736d6a3e17073 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 11 Jan 2020 02:58:08 -0800 Subject: [PATCH] Show [C][P] instead of [x][x]. --- gitcheckup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gitcheckup.py b/gitcheckup.py index b66de1b..228c677 100644 --- a/gitcheckup.py +++ b/gitcheckup.py @@ -86,11 +86,10 @@ def checkup(directory): return {'committed': committed, 'pushed': pushed, 'details': details} def main(argv): - print('[C][P]') for directory in DIRECTORIES: result = checkup(directory) - committed = 'x' if result['committed'] else ' ' - pushed = 'x' if result['pushed'] else ' ' + committed = 'C' if result['committed'] else ' ' + pushed = 'P' if result['pushed'] else ' ' details = result['details'] details = f' ({details})' if details else '' print(f'[{committed}][{pushed}] {directory}{details}')