-
Notifications
You must be signed in to change notification settings - Fork 0
git integration
OctavianTocan edited this page Oct 7, 2025
·
2 revisions
After successful syncs, the script prompts for an optional sync note. This creates a human-readable audit trail in sync-history.log
:
2025-01-07T12:30:00Z Added new weapon textures
2025-01-07T14:15:00Z Fixed material shader issues
The script guides users through creating standardized commit messages following Conventional Commits format.
-
feat
- A new feature -
fix
- A bug fix -
docs
- Documentation changes -
style
- Code style/formatting (no logic change) -
refactor
- Code refactoring (no feature/fix) -
perf
- Performance improvements -
test
- Adding or updating tests -
chore
- Maintenance tasks
-
Scope: Area affected (e.g.,
weapons
,textures
) -
Breaking change: Indicates breaking changes with
!
feat: add new weapon variants
fix(weapons): resolve texture loading bug
feat!: redesign inventory system (breaking change)
- Sync completion: Script detects successful sync
- User prompt: Asks for sync note (optional)
- Commit type selection: Interactive menu for commit type
- Scope input: Optional scope entry
- Breaking change check: Yes/no prompt
-
Git operations:
- Find parent repository root
- Stage
sync-history.log
- Create commit with conventional message
- Push to origin
- Appends timestamped message to
sync-history.log
- Uses ISO 8601 format for consistency
- UTF-8 encoding for international characters
- Non-fatal: Logging failures don't stop sync
- Interactive prompt for commit type selection
- Builds properly formatted commit message
- Handles breaking changes and scopes
- Locates parent git repository
- Calculates relative path to sync log
- Stages and commits only the log file
- Pushes to current branch
- Graceful error handling for git failures
- Team visibility: Asset changes tracked in git history
- Standardization: Consistent commit message format
- Audit trail: Timestamped log of all sync operations
- Non-intrusive: Only commits sync log, not user changes