Git Diff Focus

Focus is the part of your code that your conversation in Qodo Gen Chat centers around.

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

How to set Git Diff Focus

To choose Focus, click Select focus on the bottom left of the chatbox.

Usually, your Focus is automatically set to the file you currently have open. In this case, you can manually set it by clicking the file name in the bottom left corner of the chatbox.

For example, in this screenshot, you can set your Focus by clicking index.ts in the bottom left.

You can then select which component you'd like Qodo Gen to focus on:

  • Local Changes: Focus on all local changes made in your project.

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

  • Committed Changes: Focus on 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.

Use Qodo Gen Chat with Focus

After setting Focus, you can ask Qodo Gen any question or enter a command.

The AI models behind Qodo Gen Chat will use the selected Focus to respond to your query accurately and in relation to the focused file, ensuring solutions that are relevant to your codebase.

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

Was this helpful?