Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions hooks/scripts/auto-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ if ! git rev-parse --is-inside-work-tree &>/dev/null; then
exit 0
fi

# Stage all changes
git add -A 2>/dev/null || exit 0
# Stage vault directories only — avoid accidentally committing credentials
# or sensitive files placed outside the vault's knowledge space
git add notes/ ops/ self/ inbox/ templates/ .arscontexta 2>/dev/null || true

# Check if there are staged changes
if git diff --cached --quiet 2>/dev/null; then
Expand Down