changeset 6813:ba0d64c5d132 draft

feat: search up to find .hg folder
author Zeger Van de Vannet <zeger@vandevan.net>
date Sun, 15 Sep 2024 16:14:20 +0200
parents e17f565d044f
children 41a5d98e164b
files helix-loader/src/lib.rs
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/helix-loader/src/lib.rs	Sat Jan 06 11:01:34 2024 +0100
+++ b/helix-loader/src/lib.rs	Sun Sep 15 16:14:20 2024 +0200
@@ -246,6 +246,7 @@
     let current_dir = current_working_dir();
     for ancestor in current_dir.ancestors() {
         if ancestor.join(".git").exists()
+            || ancestor.join(".hg").exists()
             || ancestor.join(".svn").exists()
             || ancestor.join(".jj").exists()
             || ancestor.join(".helix").exists()