-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·40 lines (33 loc) · 1.35 KB
/
setup.sh
File metadata and controls
executable file
·40 lines (33 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# Tig Setup Script - Post-Commit Cloud Storage Version
echo "Setting up Tig with automatic Cursor chat extraction and cloud storage (post-commit)..."
# Install Python dependencies
echo "Installing Python dependencies..."
pip3 install -r requirements.txt
# Make tig.py executable
chmod +x tig.py
# Check if we're in a git repository
if [ ! -d ".git" ]; then
echo "Initializing git repository..."
git init
fi
# Run tig internal init to set up the post-commit hook
python3 tig.py _internal_init
echo ""
echo "Tig setup complete!"
echo ""
echo "IMPORTANT: Make sure you are logged in to GitHub and have a GitHub remote repository:"
echo " tig login # Login to GitHub"
echo "Note: Commits will fail if you are not logged in to GitHub or if there is no GitHub remote repository."
echo ""
echo "Usage:"
echo " git commit -m 'Your commit message' # Context automatically saved to cloud"
echo " python3 tig.py list # View saved contexts"
echo " python3 tig.py status # Check setup status"
echo " python3 test_cloud_storage.py # Test cloud storage functionality"
echo ""
echo "The tool will automatically:"
echo " - Extract Cursor chats for your project (post-commit)"
echo " - Capture current commit information and code diffs"
echo " - Send data to Supabase cloud storage"
echo " - Log success/failure status"