Skip to content

Commit

Permalink
Resolves #70 - Merge items are now displayed in status (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasursadikov authored Nov 3, 2024
1 parent 38f09c8 commit 0cf3b4c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/mud/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ def status(self, repos: Dict[str, List[str]]) -> None:

for file in files:
file_status = file[:2].strip()
if file_status == 'M':
if file_status.startswith('M') or file_status.startswith('U'):
color = YELLOW
elif file_status == 'A':
color = GREEN
elif file_status == 'R':
color = BLUE
elif file_status == 'D':
elif file_status.startswith('A') or file_status.startswith('C') or file_status.startswith('??') or file_status.startswith('!!'):
color = BRIGHT_GREEN
elif file_status.startswith('D'):
color = RED
elif file_status.startswith('R'):
color = BLUE
else:
color = CYAN

Expand Down Expand Up @@ -324,9 +324,9 @@ def _get_status_string(files: List[str]) -> str:

for file in files:
file = file.lstrip()
if file.startswith('M'):
if file.startswith('M') or file.startswith('U'):
modified += 1
elif file.startswith('A') or file.startswith('??'):
elif file.startswith('A') or file.startswith('C') or file.startswith('??') or file.startswith('!!'):
added += 1
elif file.startswith('D'):
removed += 1
Expand Down

0 comments on commit 0cf3b4c

Please sign in to comment.