Feature/status and wizard improvements#12
Merged
Conversation
- Add 'gitkit status' to show current hooks, gitignore, gitattributes, and config - 'gitkit' without args now runs the init wizard - Detect installed hooks and match against built-ins - Show git config for both global and local scopes
- Add --global/--local flags to config apply - Default scope: --local if in repo, --global otherwise - Add 'gitkit config show' subcommand - Detect already-set configs and show 'already set' message - Export ConfigScope for use in wizard
- Detect installed hooks and mark with [✓ installed] - Pre-select already installed hooks in wizard - Detect configured git config and mark with [✓ already set] - Allow deselecting to remove hooks and configs - Add remove_hook and remove_config_key helper functions
- Replace text input with Select for hook type - Show valid hook names in interactive picker - Prevents typos and improves UX
- Add tests for resolve_keys, get_configured_keys - Add tests for scope_flag - All 27 tests passing
- Add gitkit status command documentation - Document gitkit without args as wizard alias - Add config scope options (--global/--local) - Document idempotency detection - Update wizard description to mention state awareness
- Fix 'nothing' check to consider hooks_to_remove and configs_to_remove - Fix potential panic with multibyte chars in hook detection - Fix incorrect 'removed' message when config removal fails - Move git_config_get to utils to avoid duplication - Optimize get_configured_keys: use git config --list (2 calls vs 10) - Fix useless test assertion
- Add Build struct with TOML serialization - Implement build list/save/delete commands - Store builds in ~/.gitkit/builds/ - Add capture_current_config to detect current repo state - Add detect_gitignore_templates and detect_gitattributes_presets
- Show saved builds at wizard start, allow selecting one - Ask to save configuration as build at wizard end - Update README with builds documentation - Add builds to features list
…compatibility - Add Windows USERPROFILE fallback for HOME environment variable - Enforce build name validation (no paths, no empty names) - Refactor hook detection to separate builtins from custom hooks - Extract custom hook commands from script shebangs - Simplify struct initialization with default patterns - Remove unnecessary dead_code annotations Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
status and wizard improvements