Add repository status script

- Shows tracked vs ignored files
- Displays repository size summary
- Lists distribution files if built
This commit is contained in:
Jerico Thomas
2025-07-25 13:39:28 -04:00
parent c726cc0716
commit 6c5f8c399e

41
repo_status.sh Executable file
View File

@@ -0,0 +1,41 @@
#!/bin/bash
# Show repository status and ignored files
echo "🔍 HereIAm Repository Status"
echo "============================"
echo ""
echo "📁 Files tracked by Git:"
echo "------------------------"
git ls-files | sort
echo ""
echo "🚫 Files ignored by Git:"
echo "------------------------"
git status --ignored --porcelain | grep '^!!' | sed 's/^!! //' | sort
echo ""
echo "📊 Repository Summary:"
echo "---------------------"
tracked_count=$(git ls-files | wc -l | tr -d ' ')
ignored_count=$(git status --ignored --porcelain | grep '^!!' | wc -l | tr -d ' ')
echo "Tracked files: $tracked_count"
echo "Ignored files/directories: $ignored_count"
echo ""
echo "💾 Repository size (tracked files only):"
git ls-files | xargs du -ch 2>/dev/null | tail -1
echo ""
echo "📦 Distribution files (if built):"
if [ -d "dist/" ]; then
echo "Built applications:"
find dist/ -name "*.app" -o -name "*.dmg" | while read file; do
size=$(du -sh "$file" | cut -f1)
echo " $file ($size)"
done
else
echo " No distribution files found. Run 'make build' to create them."
fi