Commit 4695490
authored
fix: Use git to figure out git repo. (#351)
I have a `.git` directory in my `$HOME` for some git hooks I have but it
isn't a git repo and confuses me when I open a new terminal and forget
I'm in my home but I get the 'There were more than 150 changed files.'
I've included how it should look with the `/tmp` directory. See
screenshot.
<img width="843" height="175" alt="ss 2025-08-04 at 12 33 52 PM"
src="https://github.com/user-attachments/assets/d2eaf852-c298-40d8-bace-b67a54df2a5e"
/>
This removes the `find_in_cwd_or_parent` shell method in favor of just
using a `git` command to determine. Seems simpler and more stable since
it uses built-in git behaviour instead of rolling our own method.1 file changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 1 | | |
11 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
12 | 5 | | |
13 | 6 | | |
14 | 7 | | |
| |||
0 commit comments