John Wittrock would like Owners Override to review this change authored by Eric Rahm.
[tools] Add a gemini ignore file
This adds a `.geminiignore` file that un-ignores several `.gitignore`d
directories:
- `local`
- `vendor`
- `third_party`
This is similar to what we do with our `.ignore` file that's used by
tools like `fdfind` and `ripgrep`. This allows `gemini-cli` to access
those directories out-of-the-box. Ideally `gemini-cli` would support a
more generic `.ignore`, but for now an explicit `.geminiignore` works
well enough.
This allows us to remove previous work-arounds where the `.gitignore`d
directories were explicitly included as if they were external
directories.
Test: Manually verified `@` completion works in `gemini-cli`.
diff --git a/.gemini/settings.json b/.gemini/settings.json
index fd69755..bb90681 100644
--- a/.gemini/settings.json
+++ b/.gemini/settings.json
@@ -10,11 +10,6 @@
"fileFiltering": {
"respectGitIgnore": true,
"enableRecursiveFileSearch": false
- },
- "includeDirectories": [
- "local",
- "vendor/google"
- ],
- "loadFromIncludeDirectories": true
+ }
}
-}
\ No newline at end of file
+}
diff --git a/.geminiignore b/.geminiignore
new file mode 100644
index 0000000..e393454
--- /dev/null
+++ b/.geminiignore
@@ -0,0 +1,8 @@
+# This file contains globs which should not be tracked by git but which should be searched by
+# gemini-based tools, for example when finding usages of APIs.
+
+# TODO(https://fxbug.dev/28607) delete when we stop gitignore'ing version-controlled sources
+
+!/local/
+!/third_party/*
+!/vendor/
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
# TODO(https://fxbug.dev/28607) delete when we stop gitignore'ing version-controlled sourcesThis bug refers to submodules which we aren't going to do. Is there actually a plan to stop .gitignoring these directories? Is there a more appropriate bug to link this to?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
# TODO(https://fxbug.dev/28607) delete when we stop gitignore'ing version-controlled sourcesThis bug refers to submodules which we aren't going to do. Is there actually a plan to stop .gitignoring these directories? Is there a more appropriate bug to link this to?
This was lifted from the existing `.ignore` file, I can remove the reference if you think that makes more sense. I'm not sure if there's still a plan in place to stop gitignore'ing version-controlled sources, but perhaps that's going to fall out of the superproject work?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
# TODO(https://fxbug.dev/28607) delete when we stop gitignore'ing version-controlled sourcesEric RahmThis bug refers to submodules which we aren't going to do. Is there actually a plan to stop .gitignoring these directories? Is there a more appropriate bug to link this to?
This was lifted from the existing `.ignore` file, I can remove the reference if you think that makes more sense. I'm not sure if there's still a plan in place to stop gitignore'ing version-controlled sources, but perhaps that's going to fall out of the superproject work?
I'm not aware of any. No reason to have a TODO here if we do not have a plan to take action. If you want to remove these in the future, please file a new bug describing the steps and link it here - otherwise remove the TODO.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
# TODO(https://fxbug.dev/28607) delete when we stop gitignore'ing version-controlled sourcesEric RahmThis bug refers to submodules which we aren't going to do. Is there actually a plan to stop .gitignoring these directories? Is there a more appropriate bug to link this to?
James RobinsonThis was lifted from the existing `.ignore` file, I can remove the reference if you think that makes more sense. I'm not sure if there's still a plan in place to stop gitignore'ing version-controlled sources, but perhaps that's going to fall out of the superproject work?
I'm not aware of any. No reason to have a TODO here if we do not have a plan to take action. If you want to remove these in the future, please file a new bug describing the steps and link it here - otherwise remove the TODO.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
1 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: .geminiignore
Insertions: 0, Deletions: 2.
@@ -1,8 +1,6 @@
# This file contains globs which should not be tracked by git but which should be searched by
# gemini-based tools, for example when finding usages of APIs.
-# TODO(https://fxbug.dev/28607) delete when we stop gitignore'ing version-controlled sources
-
!/local/
!/third_party/*
!/vendor/
```
[tools] Add a gemini ignore file
This adds a `.geminiignore` file that un-ignores several `.gitignore`d
directories:
- `local`
- `vendor`
- `third_party`
This is similar to what we do with our `.ignore` file that's used by
tools like `fdfind` and `ripgrep`. This allows `gemini-cli` to access
those directories out-of-the-box. Ideally `gemini-cli` would support a
more generic `.ignore`, but for now an explicit `.geminiignore` works
well enough.
This allows us to remove previous work-arounds where the `.gitignore`d
directories were explicitly included as if they were external
directories.
Test: Manually verified `@` completion works in `gemini-cli`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Change has been successfully rolled: https://turquoise-internal-review.googlesource.com/1098232
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |