pulli 0.2.7__tar.gz → 0.2.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pulli
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Summary: Walk a directory tree, show git repos with status, and fast-forward the ones that are behind upstream.
5
5
  Author: Stefan Waldherr
6
6
  License-Expression: MIT
@@ -1,2 +1,2 @@
1
1
  """pulli — discover git repos under a root and report their status."""
2
- __version__ = "0.2.7"
2
+ __version__ = "0.2.8"
@@ -166,8 +166,12 @@ def _ahead_behind(node: RepoNode, C=lambda s, *c: s) -> str:
166
166
  if not node.upstream:
167
167
  return "· ·"
168
168
  behind, ahead = node.behind or 0, node.ahead or 0
169
- b = C(f"↓{behind}", _CYAN, _BOLD) if behind else f"↓{behind}"
170
- a = C(f"↑{ahead}", _CYAN, _BOLD) if ahead else f"↑{ahead}"
169
+ # When the whole line is already cyan (behind repos get that in the
170
+ # flat renderer), the count must not re-cyan a subset — nested SGR of
171
+ # the same color makes the rest of the line render differently. Bold
172
+ # alone is enough emphasis there.
173
+ b = C(f"↓{behind}", _BOLD) if behind else f"↓{behind}"
174
+ a = C(f"↑{ahead}", _BOLD) if ahead else f"↑{ahead}"
171
175
  return f"{b} {a}"
172
176
 
173
177
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes