[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-got 7bb16f7 053/145: implement conflicted-files
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vc-got 7bb16f7 053/145: implement conflicted-files |
Date: |
Thu, 9 Sep 2021 15:58:32 -0400 (EDT) |
branch: externals/vc-got
commit 7bb16f79d9239b75da67f85f08d4a6586d7ecb14
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>
implement conflicted-files
---
vc-got.el | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/vc-got.el b/vc-got.el
index 08d53c3..96163a5 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -106,7 +106,7 @@
;; - find-file-hook NOT IMPLEMENTED
;; - extra-menu NOT IMPLEMENTED
;; - extra-dir-menu NOT IMPLEMENTED
-;; - conflicted-files NOT IMPLEMENTED
+;; - conflicted-files DONE
;; - repository-url NOT IMPLEMENTED
;; TODO: use the idiom
@@ -615,5 +615,20 @@ Value is returned as floating point fractional number of
days."
(when (looking-at vc-got--commit-re)
(match-string-no-properties 1)))))
+(defun vc-got-conflicted-files (dir)
+ "Return the list of files with conflicts in directory DIR."
+ (let* ((root (vc-got-root dir))
+ (default-directory root)
+ (process-file-side-effects))
+ ;; for got it doesn't matter where we call "got status", it will
+ ;; always report file paths from the root of the repo.
+ (cl-loop with conflicts = nil
+ for (file . status) in (vc-got--parse-status-flag
+ (vc-got--status "."))
+ do (when (and (eq status 'conflict)
+ (file-in-directory-p file dir))
+ (push file conflicts))
+ finally return conflicts)))
+
(provide 'vc-got)
;;; vc-got.el ends here
- [elpa] externals/vc-got 5dec261 033/145: kill got stage/unstage buffer after utilisation and introduce unstage-all, (continued)
- [elpa] externals/vc-got 5dec261 033/145: kill got stage/unstage buffer after utilisation and introduce unstage-all, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 12ca62f 034/145: implement vc-got-diff-switches, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 406d7b4 037/145: switch to GPLv3, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got b34e96f 036/145: Emacs upstream has fixed the documentation, comment not needed, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got df20ca2 040/145: add vc-got--program-version command to return version number, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got d54ceb8 041/145: make got program be customizable, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 7c257a7 042/145: Merge pull request #1 from zmyrgel/feature/expand-implementation-status, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f09d635 045/145: Merge pull request #2 from zmyrgel/feature/add-version-command, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got febb894 043/145: Add new customization group `vc-got' under vc, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got a2474a4 048/145: improve vc-got-dir-status-files, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 7bb16f7 053/145: implement conflicted-files,
ELPA Syncer <=
- [elpa] externals/vc-got 3cdb075 058/145: update status list a bit, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got cf4e3eb 070/145: fix vc-got-dir-status-files, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 6f42ede 081/145: don't create temp buffers for nothing, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got b2721e8 080/145: set status to 'staged if a file has all its modification staged, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got dec54a7 088/145: improve vc-got-{push, pull}, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 424f515 100/145: don't need annotate-current-time; split the sections, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got ad36649 092/145: due piccoli errori di battitura corretti, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 6a973a7 106/145: simplify vc-got-root, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got e7747ce 109/145: use log-edit-extract-headers instead of the ugly workaround, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 26362bf 110/145: improve error message reporting for vc-got-checkin, ELPA Syncer, 2021/09/09