Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

git/plandex ignore fixes

Dane Schneiderc192958a4681
diff --git a/.gitignore b/.gitignore
index 8636fb0f..97766de5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,4 @@
.plandex-dev/
plandex
plandex-server
-node_modules/
\ No newline at end of file
+node_modules/
diff --git a/app/cli/cmd/load.go b/app/cli/cmd/load.go
index 175fe36a..316ff000 100644
--- a/app/cli/cmd/load.go
+++ b/app/cli/cmd/load.go
@@ -49,5 +49,6 @@ func contextLoad(cmd *cobra.Command, args []string) {
ForceSkipIgnore: forceSkipIgnore,
})
+ fmt.Println()
term.PrintCmds("", "ls", "tell")
}
diff --git a/app/cli/fs/fs.go b/app/cli/fs/fs.go
index c7628a90..cca68cd5 100644
--- a/app/cli/fs/fs.go
+++ b/app/cli/fs/fs.go
@@ -270,9 +270,11 @@ func GetPaths(baseDir, currentDir string) (*ProjectPaths, error) {
return nil
}
- mu.Lock()
- defer mu.Unlock()
- activePaths[relPath] = true
+ if !isGitRepo {
+ mu.Lock()
+ defer mu.Unlock()
+ activePaths[relPath] = true
+ }
}
return nil
diff --git a/app/cli/lib/context_load.go b/app/cli/lib/context_load.go
index 9edbbab2..e5ccb9ef 100644
--- a/app/cli/lib/context_load.go
+++ b/app/cli/lib/context_load.go
@@ -79,8 +79,11 @@ func MustLoadContext(resources []string, params *types.LoadContextParams) {
}
// fmt.Println("active paths", len(paths.ActivePaths))
- // fmt.Println("ignored paths", len(paths.IgnoredPaths))
// fmt.Println("all paths", len(paths.AllPaths))
+ // fmt.Println("ignored paths", len(paths.IgnoredPaths))
+
+ // spew.Dump(paths.IgnoredPaths)
+ // spew.Dump(paths.ActivePaths)
if !params.ForceSkipIgnore {
var filteredPaths []string