tokensave 3.3.1

Code intelligence tool that builds a semantic knowledge graph from Rust, Go, Java, Scala, TypeScript, Python, C, C++, Kotlin, C#, Swift, and many more codebases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# Git post-commit hook that re-indexes the tokensave after each commit.
#
# Install globally:
#   git config --global core.hooksPath ~/.git-hooks
#   cp scripts/post-commit ~/.git-hooks/post-commit
#   chmod +x ~/.git-hooks/post-commit
#
# Install per-repo:
#   cp scripts/post-commit .git/hooks/post-commit
#   chmod +x .git/hooks/post-commit

if command -v tokensave &>/dev/null && [ -d ".tokensave" ]; then
    tokensave sync &>/dev/null &
fi