git: should compare ignored-files with disk content

This commit is contained in:
Tienson Qin
2021-09-06 10:39:08 +08:00
parent a84dfb5eff
commit cd853b5864

View File

@@ -58,7 +58,7 @@
(not= (string/trim content)
(string/trim (or (db/get-file repo path) "")))
(not (string/includes? path "logseq/pages-metadata.edn"))
(not= (get @ignore-files path) db-content))
(not= (get @ignore-files path) content))
(p/let [
;; save the previous content in Logseq first and commit it to avoid
;; any data-loss.