-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: osteele/git-scripts
base: 2025-02
head repository: osteele/git-scripts
compare: main
- 10 commits
- 20 files changed
- 1 contributor
Commits on Mar 9, 2025
-
refactor: improve fixup commit formatting, ordering, and rebase handling
- Update the git-create-fixups script to use "fixup!" in commit messages and fix exit codes for help display. - Update regex to match both "f" and "fixup!" style prefixes. - Revamp commit reordering to place each fixup immediately after its target (ordered from oldest to newest) and set the command based on the squash flag. - Restrict commit message output to the first line for non-colored display to prevent multi-line issues. - Remove the --autosquash flag from the rebase command and adjust base commit determination for --root cases.
Configuration menu - View commit details
-
Copy full SHA for b9d0d80 - Browse repository at this point
Copy the full SHA b9d0d80View commit details -
feat: add custom prompt option for commit rewording
Introduce a new -p/--prompt flag to allow users to supply custom instructions for modifying the existing commit message. The flag enables tailoring the commit message generation process by incorporating a user-defined prompt along with the diff details, while preserving the conventional commit format.
Configuration menu - View commit details
-
Copy full SHA for 1dae0d7 - Browse repository at this point
Copy the full SHA 1dae0d7View commit details -
feat: update CLI options and pre-commit hook handling
- Enhance usage message to include new options: --author, --cleanup, --edit/--no-edit, and --signoff/--no-signoff. - Replace -n/--dry-run with -d/--dry-run for clarity. - Introduce -n/--no-verify flag to optionally skip pre-commit hooks (passes --no-verify to git commit). - Run pre-commit hook conditionally unless skipping verification. - Adjust argument filtering for dry-run mode to reflect renamed option.
Configuration menu - View commit details
-
Copy full SHA for 7bc1353 - Browse repository at this point
Copy the full SHA 7bc1353View commit details -
feat: add git-ai-release-notes command
Introduce a new release notes generation feature that creates well-structured, markdown-formatted blog posts announcing new releases based on git commits. This tool leverages an LLM to categorize changes and supports various tonal styles (technical, casual, pirate, etc.), date filtering, and customizable output. Updated README.md with usage examples and added script permissions for executable use.
Configuration menu - View commit details
-
Copy full SHA for db85a10 - Browse repository at this point
Copy the full SHA db85a10View commit details -
refactor: improve model selection logic in git AI commands
Update model selection in git-ai-commit, git-ai-reword-message, and git-ai-squash-messages with a more robust approach: - Add error handling for when no models are available - Create a prioritized list of preferred models to try in order - Use consistent model preferences across all three scripts - Add newer models like claude-3.7-sonnet and gemini-2.0-flash to preferences - Use the first available model as fallback only when no preferred models found
Configuration menu - View commit details
-
Copy full SHA for 092a04a - Browse repository at this point
Copy the full SHA 092a04aView commit details
Commits on Sep 7, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 393ff8a - Browse repository at this point
Copy the full SHA 393ff8aView commit details
Commits on Oct 24, 2025
-
feat: Add script to create and configure GitHub repositories
- Introduce a new bash script `create-gh-repo.sh` for automating GitHub repository creation. - The script accepts repository name, description, and comma-separated topics as arguments. - It checks for `gh` CLI authentication and handles missing arguments. - The script creates a public repository without cloning it locally. - It supports adding topics to the newly created repository. - Finally, it displays the created repository's details including name, description, URL, visibility, and topics.
Configuration menu - View commit details
-
Copy full SHA for 983e492 - Browse repository at this point
Copy the full SHA 983e492View commit details -
feat: Introduce customizable AI commit instructions and refactor core…
… logic This commit introduces a new feature that allows users to customize AI commit message generation through instruction files. It also significantly refactors the underlying logic for generating commit messages to improve modularity and readability. Key changes include: - **New Feature: Customizable Instructions:** - Users can now provide global instructions at `~/.config/ai-commit-instructions`. - Project-specific instructions can be placed in `.ai-commit-instructions` within the repository root. - These instructions are combined with command-line prompts for finer control over AI output. - Documentation in `README.md` has been updated to explain this new feature. - **Refactoring: Shared Library (`git-ai-lib.sh`):** - Core functionalities like model selection, model alias resolution, instruction loading, and commit message generation have been extracted into a new shared library file. - This reduces code duplication across `git-ai-commit`, `git-ai-reword-commit-message`, and `git-ai-reword-message`. - The `generate_commit_message` function is now responsible for constructing prompts and calling the `llm` command. - Added `sanitize_utf8` function to handle potential encoding issues with diff content. - **Script Updates:** - `git-ai-commit`, `git-ai-reword-commit-message`, and `git-ai-reword-message` now source `git-ai-lib.sh` and utilize its functions. - The logic for applying additional instructions and combining them with prompts has been standardized. - Model alias resolution for display purposes is now handled more cleanly. These changes enhance the flexibility of the tool and make its codebase more maintainable.Configuration menu - View commit details
-
Copy full SHA for 7f7d2dd - Browse repository at this point
Copy the full SHA 7f7d2ddView commit details -
docs: Improve commit message formatting instructions
- Standardize instructions for creating AI commit messages in `git-ai-lib.sh` to use plain text formatting rules. - Remove explicit markdown emphasis rules, relying on the general plain text formatting. - Add a `llm models list` command example to the README for convenience. - Update example model aliases in README to reflect current model names more accurately (e.g., `claude-haiku-4.5`, `gpt-4o`). - Clarify that commit messages are viewed as plain text and backticks should be used for code, filenames, and identifiers. - Provide clear examples of good and bad formatting for commit messages.
Configuration menu - View commit details
-
Copy full SHA for 74780e2 - Browse repository at this point
Copy the full SHA 74780e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a75da1 - Browse repository at this point
Copy the full SHA 9a75da1View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 2025-02...main