seno

seno pushed to master at seno/git-rebase-ai

  • dc15cccc8f chore: Improve script for fetching remote branches This commit refactors the `ai-rebase.sh` script to correctly fetch remote branches specified as "owner/branch". It also adds a conditional to avoid fetch when deleting backups, improving script robustness and preventing errors.

1 month ago

seno pushed to master at seno/git-rebase-ai

  • bbcb713ca7 feat: Add version and improve fetch in ai-rebase.sh This commit introduces a version variable and improves the git fetch command within the ai-rebase.sh script. It makes the script more robust and informative by displaying its version. The fetch command is modified to correctly parse arguments.

1 month ago

seno pushed to master at seno/git-rebase-ai

  • 9f50524502 feat: Add git fetch and error handling to ai-rebase.sh This change adds `git fetch` with arguments provided by the user to ensure the script operates on the latest remote state. It also includes `set -e` for immediate exit on errors, improving the reliability of the script.

1 month ago

seno pushed to master at seno/git-rebase-ai

  • 5be21b6eea feat: Add git report script This commit adds a `git_report` script. The script fetches from upstream, logs the commit history, and diffs against upstream, respecting the `.rebase-ignore` file. The script also prints the current date. This will aid in debugging and reviewing changes.

1 month ago

seno pushed to master at seno/git-rebase-ai

  • 041d955011 feat: Add .rebase-ignore for file exclusion This commit introduces a `.rebase-ignore` file, similar to `.gitignore`, to exclude specific files or patterns from AI analysis during both fixup and reword suggestions. This improves performance and prevents unnecessary modifications to certain files.

1 month ago

seno pushed to master at seno/git-rebase-ai

  • 0e8eb69180 feat: Implement AI-powered Git rebase and reword This commit introduces the core functionality for AI-assisted Git rebase and reword operations. It includes components for: - Parsing Git commit history and diffs. - Interacting with an AI model for message generation. - Applying the AI suggestions via interactive rebase. - Handling .rebase-ignore files. The `git_rebase_ai.py` script provides the main entry point for these features.

1 month ago

seno pushed to master at seno/git-rebase-ai

  • e559ad93f7 refactor: Improve Git context gathering in rebase script This commit refactors the `git_rebase_ai.py` script to improve how it gathers Git context and creates backups before rebase operations. The changes include: - Simplifying the parameter handling. - Updating the default upstream branch to `upstream/master`. - Improving the overall script structure for readability and maintainability.

1 month ago

seno pushed to master at seno/git-rebase-ai

  • f49aed5a37 refactor: Improve Git context gathering and backup This commit refactors the Git context gathering process for clarity and adds a safety measure. The changes include: - Moved the backup branch creation earlier, before detailed Git context gathering, to ensure a backup exists even if context gathering fails. - Consolidated Git context gathering into two phases: initial and detailed, for better organization and error handling. - Ensured backup branch is created only if commits are found.
  • 9cadbd0052 refactor: Rename and reorganize Python scripts This commit renames `git_commit_ai.py` and `git_reword_ai.py` to `git_rebase_ai.py`. It also reorganizes the project structure by removing the separate `git_reword_ai.py` file and integrating its functionality into the main `git_rebase_ai.py` script. This simplifies the codebase and improves maintainability by consolidating the AI-powered rebase logic into a single file. The Dockerfile and Makefile are also updated to reflect these changes.
  • e152590301 init
  • 7d7749dcaf Initial commit
  • d5763e3f78 refactor: Improve Git context gathering and backup This commit refactors the Git context gathering process for clarity and adds a safety measure. The changes include: - Moved the backup branch creation earlier, before detailed Git context gathering, to ensure a backup exists even if context gathering fails. - Consolidated Git context gathering into two phases: initial and detailed, for better organization and error handling. - Ensured backup branch is created only if commits are found.
  • View comparison for these 7 commits »

1 month ago

seno pushed to master at seno/git-rebase-ai

  • d5763e3f78 refactor: Improve Git context gathering and backup This commit refactors the Git context gathering process for clarity and adds a safety measure. The changes include: - Moved the backup branch creation earlier, before detailed Git context gathering, to ensure a backup exists even if context gathering fails. - Consolidated Git context gathering into two phases: initial and detailed, for better organization and error handling. - Ensured backup branch is created only if commits are found.

1 month ago

seno pushed to master at seno/git-rebase-ai

  • 8cb46ee452 refactor: Rename and reorganize Python scripts This commit renames `git_commit_ai.py` and `git_reword_ai.py` to `git_rebase_ai.py`. It also reorganizes the project structure by removing the separate `git_reword_ai.py` file and integrating its functionality into the main `git_rebase_ai.py` script. This simplifies the codebase and improves maintainability by consolidating the AI-powered rebase logic into a single file. The Dockerfile and Makefile are also updated to reflect these changes.

1 month ago

seno pushed to master at seno/git-rebase-ai

1 month ago

seno pushed to master at seno/git-rebase-ai

1 month ago

seno created new branch master at seno/git-rebase-ai

1 month ago

seno created repository seno/git-rebase-ai

1 month ago

seno pushed to master at seno/genai-git-commit

  • e2b59427f0 Feat: Enhance AI-powered Git assistant with rebase tools This commit significantly expands the functionality of the AI-powered Git assistant by adding features for suggesting and automating interactive rebase operations. It introduces: - AI-powered `fixup` suggestion (finds commits that look like small fixes to their predecessors). - AI-powered `reword` suggestion (finds commits with messages that could be improved). - Automatic rebase capabilities (with safety backups) for applying fixups and rewording commits. - A new `ai-commit.sh` script that dispatches to the appropriate Python script based on flags. - Two new Python scripts: `git_rebase_ai.py` and `git_reword_ai.py`. - Expanded documentation, including Makefile usage instructions, details on rebase workflows, and descriptions of all files. The previous version only supported commit message generation. Now, developers can leverage AI to streamline interactive rebases, improving commit history quality and consistency.

1 month ago

seno pushed to master at seno/genai-git-commit

  • 77ed575112 build: Add Makefile for common tasks This commit introduces a Makefile to streamline common development tasks, such as building and running the Docker image. The Makefile provides targets for: - Building the Docker image - Running the ai-commit script - Rebasing with the ai-commit script - Rewriting with the ai-commit script This simplifies the workflow and makes it easier to manage the project.
  • 96260c68a8 feat: Improve ai-commit script for rebase/reword The ai-commit script now supports the `-r` and `-w` flags, allowing it to run `git_rebase_ai.py` and `git_reword_ai.py` respectively. This makes it easier to use the AI to improve commit history during an interactive rebase. The script also dynamically selects the correct script based on the provided arguments and sets the `GEMINI_MODEL` environment variable.
  • View comparison for these 2 commits »

1 month ago

seno pushed to master at seno/genai-git-commit

  • 28137811a9 Docs: Update usage instructions in README This commit updates the README.md file to clarify the usage instructions for the ai-commit.sh script. It now includes instructions on how to amend the previous commit using the `-a` or `--amend` flags. This enhancement provides users with clear guidance on amending commits, improving the tool's usability. Additionally, it documents the forwarding of arguments to the python script.

1 month ago

seno pushed to master at seno/genai-git-commit

  • 21deffe717 Fix: Correctly pass arguments to Docker and add amend option The ai-commit.sh script now correctly passes arguments to the Docker container, allowing for more flexible usage. This was achieved by appending `$@` to the docker run command. The git_commit_ai.py script now supports amending the previous commit using the `--amend` flag. A new `argparse` dependency has been added to handle command-line arguments. The `get_staged_diff` function has been updated to retrieve the diff between HEAD~1 and staged files when amending. The `create_commit` function and the `main` function now correctly handle the amend flag and communicate with the user accordingly. The number of allowed file requests from the LLM was also increased from 3 to 5.

1 month ago

seno pushed to master at seno/genai-git-commit

  • 1dc3137814 Chore: Improve error handling and model selection This commit enhances the `ai-commit.sh` script by adding checks for the existence of necessary Git configuration files (`.gitconfig` and `.git-credentials`). This prevents the script from running without proper Git configuration, improving the user experience by providing informative error messages. Additionally, updates the `git_commit_ai.py` to utilize `gemini-2.0-flash` to improve model selection and potential performance.
  • 62fbf62764 feat: Add file content retrieval for improved AI context This commit introduces functionality to retrieve the content of project files and include it in the prompt sent to the AI. This allows the AI to generate more informed and accurate commit messages by considering the broader context of the changes. The AI can now request specific file contents, which are then passed back to the AI if the user approves, enhancing the quality of generated commit messages. Also fixes the gemini model to use the latest model for better accuracy.
  • View comparison for these 2 commits »

1 month ago

seno pushed to master at seno/genai-git-commit

  • 6cec40ccbc Add README explaining AI commit message generator This commit adds a README file that explains the AI-powered Git commit message generator tool. The tool uses the Google Gemini API to analyze staged changes and generate commit messages following standard Git conventions. The README includes sections on features, prerequisites, setup, usage, how it works, and the files included in the repository. This provides users with a comprehensive guide to using the tool and understanding its functionality, which was previously unavailable.

1 month ago