Compare commits
1 Commits
df92555538
...
584480bd53
| Author | SHA1 | Date | |
|---|---|---|---|
| 584480bd53 |
@ -82,13 +82,16 @@ git repository."
|
|||||||
(list
|
(list
|
||||||
(when (file-exists-p (file-name-concat "." ".git" "MERGE_HEAD"))
|
(when (file-exists-p (file-name-concat "." ".git" "MERGE_HEAD"))
|
||||||
"merge")
|
"merge")
|
||||||
(unless (= 0 (call-process "git" nil nil nil
|
(when (= 1 (call-process "git" nil nil nil
|
||||||
"diff" "--no-ext-diff" "--quiet"))
|
"diff" "--no-ext-diff" "--quiet" "--exit-code"))
|
||||||
"dirty")
|
"dirty")
|
||||||
(unless (= 0 (call-process "git" nil nil nil
|
(when (= 1 (call-process "git" nil nil nil
|
||||||
"diff" "--no-ext-diff" "--quiet" "--cached"))
|
"diff" "--no-ext-diff" "--quiet" "--exit-code" "--cached"))
|
||||||
"uncommitted")
|
"uncommitted")
|
||||||
(unless (string-empty-p (shell-command-to-string "git stash list --quiet"))
|
(when (with-temp-buffer
|
||||||
|
(and (= 0 (call-process "git" nil t nil
|
||||||
|
"stash" "list"))
|
||||||
|
(not (= 0 (buffer-size)))))
|
||||||
"stash")))))
|
"stash")))))
|
||||||
(if state-list
|
(if state-list
|
||||||
(format "%s@%s[%s]" git-branch base-dir (apply #'concat (-interpose "|" state-list)))
|
(format "%s@%s[%s]" git-branch base-dir (apply #'concat (-interpose "|" state-list)))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user