Skip to content

Commit 65346a1

Browse files
author
Zhe Yu
committed
feat(cli): Add vectorise command to post-checkout hook when it's a new clone
1 parent 2e3c8f2 commit 65346a1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/vectorcode/subcommands/init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"post-checkout": [
2828
'if [ -z "$(echo $1|grep [^0])" ]; then',
2929
' files=""',
30+
" ( [ -f .vectorcode/vectorcode.include ] || [ -f ~/.config/vectorcode/vectorcode.include ] ) && vectorcode vectorise || true",
3031
"else",
3132
' files=$(git diff --name-only "$1" "$2")',
3233
"fi",

0 commit comments

Comments
 (0)