Files
HereIAm/repo_status.sh
Jerico Thomas 6c5f8c399e Add repository status script
- Shows tracked vs ignored files
- Displays repository size summary
- Lists distribution files if built
2025-07-25 13:39:28 -04:00

42 lines
1.1 KiB
Bash
Executable File

#!/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