We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9b0aae commit c0e5025Copy full SHA for c0e5025
gitstatus.py
@@ -35,10 +35,6 @@
35
conflicts.append(st)
36
elif st[0] != ' ':
37
staged.append(st)
38
-n_staged = len(staged)
39
-n_changed = len(changed)
40
-n_conflicts = len(conflicts)
41
-n_untracked = len(untracked)
42
43
ahead, behind = 0,0
44
@@ -64,10 +60,10 @@
64
60
branch,
65
61
str(ahead),
66
62
str(behind),
67
- str(n_staged),
68
- str(n_conflicts),
69
- str(n_changed),
70
- str(n_untracked),
63
+ str(len(staged)),
+ str(len(conflicts)),
+ str(len(changed)),
+ str(len(untracked)),
71
])
72
print(out, end='')
73
0 commit comments