Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: osteele/git-scripts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2025-02
Choose a base ref
...
head repository: osteele/git-scripts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 10 commits
  • 20 files changed
  • 1 contributor

Commits on Mar 9, 2025

  1. 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.
    osteele committed Mar 9, 2025
    Configuration menu
    Copy the full SHA
    b9d0d80 View commit details
    Browse the repository at this point in the history
  2. 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.
    osteele committed Mar 9, 2025
    Configuration menu
    Copy the full SHA
    1dae0d7 View commit details
    Browse the repository at this point in the history
  3. 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.
    osteele committed Mar 9, 2025
    Configuration menu
    Copy the full SHA
    7bc1353 View commit details
    Browse the repository at this point in the history
  4. 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.
    osteele committed Mar 9, 2025
    Configuration menu
    Copy the full SHA
    db85a10 View commit details
    Browse the repository at this point in the history
  5. 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
    osteele committed Mar 9, 2025
    Configuration menu
    Copy the full SHA
    092a04a View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2025

  1. Configuration menu
    Copy the full SHA
    393ff8a View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2025

  1. 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.
    osteele committed Oct 24, 2025
    Configuration menu
    Copy the full SHA
    983e492 View commit details
    Browse the repository at this point in the history
  2. 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.
    osteele committed Oct 24, 2025
    Configuration menu
    Copy the full SHA
    7f7d2dd View commit details
    Browse the repository at this point in the history
  3. 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.
    osteele committed Oct 24, 2025
    Configuration menu
    Copy the full SHA
    74780e2 View commit details
    Browse the repository at this point in the history
  4. merge: resolve conflicts between main branches

    Merged changes from main@origin (092a04a) and main (74780e2).
    Resolved all conflicts by accepting side #2 (main) which includes:
    - Documentation improvements in README.md
    - Shared library refactoring in git-ai-commit
    - Consistent import ordering in git-apply-fixups
    osteele committed Oct 24, 2025
    Configuration menu
    Copy the full SHA
    9a75da1 View commit details
    Browse the repository at this point in the history
Loading