Bunch of changes fr fr

This commit is contained in:
2025-09-25 00:36:32 +01:00
parent 5150ad453e
commit 247d19b5d4
2 changed files with 19 additions and 10 deletions

View File

@@ -115,18 +115,15 @@ behind or ahead the local repository is."
(diff (cl-position "by" branch-status :test #'string=)))
(if (null diff)
(ep/--with-fg-colour "=" ep/success-colour)
(--> diff
1+
(nth it branch-status)
(concat
))
(concat
(cond
((string= status "ahead")
(ep/--with-fg-colour "" ep/ahead-colour))
((string= status "behind")
(ep/--with-fg-colour "" ep/failure-colour)))
(nth (1+ diff) branch-status)))))
(thread-first diff
1+
(nth branch-status))))))
(defun ep/--git-change-status ()
"Returns a propertized string for the condition of the worktree in