tokensave 6.4.3

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
16
17
#!/bin/bash
# Git post-checkout hook that initializes tokensave after a fresh clone.
#
# Install globally:
#   git config --global core.hooksPath ~/.git-hooks
#   cp scripts/post-checkout ~/.git-hooks/post-checkout
#   chmod +x ~/.git-hooks/post-checkout
#
# Install per-repo:
#   cp scripts/post-checkout .git/hooks/post-checkout
#   chmod +x .git/hooks/post-checkout

PREV_HEAD="$1"

if [ "$PREV_HEAD" = "0000000000000000000000000000000000000000" ] && command -v tokensave &>/dev/null; then
    tokensave init &>/dev/null &
fi