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 42f8ad3 commit 99a4763Copy full SHA for 99a4763
extensions/legit/porcelain.lisp
@@ -611,6 +611,17 @@ summary: test
611
(t
612
(porcelain-error "commit-count not implemented for VCS: ~a" *vcs*))))
613
614
+(defun %not-fossil-commit-line (line)
615
+ (str:starts-with-p "+++ no more data" line))
616
+
617
+(defun fossil-commit-count ()
618
+ ;; Not really tested in Lem.
619
+ (length
620
+ ;; Does the timeline command always end with "+++ no more data (1) +++" ?
621
+ (remove-if #'%not-fossil-commit-line
622
+ (str:lines
623
+ (run-fossil (list "timeline" "--oneline"))))))
624
625
;; stage, add files.
626
(defun git-stage (file)
627
(run-git (list "add" file)))
0 commit comments