Git Diff Focus

Focus is the part of your code that your conversation in Chat centers around. It could be an entire file or just a few lines of code.

Git Diff Focus centers on Git changes across your entire project, enabling you to manage and review code changes effectively.

To choose Git Diff click on @ and select Git Diff.

Secondary Focus

When choosing Git Diff Focus, you have to choose a Secondary Focus option. The Secondary Focus refines the context for Chat's responses.

When using Git Diff Focus, there are three options for Secondary Focus:

  • Local Changes: Concentrate on all local changes made in your project or your current file.

  • Staged Changes: Highlight changes that have been staged for commit.

  • Committed Changes: Review changes that have already been committed. This option requires you to select a target branch to compare your changes against, enhancing the context for Qodo Gen's analysis and suggestions.

Using Current File Focus

  1. Add Focus: Type @ or click on @, and select Git Diff.

  2. Choose Secondary Focus: From the dropdown list, choose between local changes, staged changes or committed changes based on your requirement.

  3. Execute a Command: Type in your desired command (/changelog, /issues, etc) followed by your question or request.

Commands

Git Diff Focus supports the following commands:

  • /changelog

    Update the Changelog file with a summary of recent changes.

  • /commit

    Generate commit messages for staged changes.

  • /describe

    Get a title and description for your next pull request.

  • /improve

    Get suggestions to improve your code.

  • /issues

    Identify potential issues within the code, such as security vulnerabilities or bugs.

  • /recap

    Summarize all changes in the selected changeset.

  • /review

    Get a comprehensive pull request review of the current changes, including analysis and feedback.

Usage Examples

  • Preparing for Commits: Use /commit or /describe to craft meaningful commit messages and pull request descriptions.

  • Code Quality Assurance: Use /review, /improve and /issues to enhance the quality and security of your code before finalizing changes.

  • Change Management: Use /recap and /changelog to maintain documentation and records of your project and ensure transparency.

Last updated

Logo

2025 Qodo. All Rights Reserved.