Git Diff Focus
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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.
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.
Git Diff Focus supports the following commands:
Update the Changelog file with a summary of recent changes.
Generate commit messages for staged changes.
Get a title and description for your next pull request.
Get suggestions to improve your code.
Identify potential issues within the code, such as security vulnerabilities or bugs.
Summarize all changes in the selected changeset.
Get a comprehensive pull request review of the current changes, including analysis and feedback.
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.
After setting Focus, you can ask Qodo Gen any question or enter a .