We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb1bcc7 commit 76cb129Copy full SHA for 76cb129
1 file changed
.gemini/hooks/pre-commit.py
100644
100755
@@ -13,9 +13,9 @@ def main():
13
journal_path = f"journal/{today}.md"
14
15
# Scan for changes (staged, modified, untracked)
16
- # git ls-files --modified --others --exclude-standard
17
- res = run_command("git ls-files --modified --others --exclude-standard")
18
- changed_files = res.stdout.strip().splitlines()
+ # git status --porcelain shows all changes
+ res = run_command("git status --porcelain")
+ changed_files = [line[3:] for line in res.stdout.strip().splitlines() if line]
19
20
if not changed_files:
21
return 0
0 commit comments