Features
@Mentions
Git Mentions

Version Control Integration

Bwat's git reference system allows you to seamlessly incorporate repository history and changes directly into your development discussions. You can reference uncommitted modifications with Working directory changes (see below for details) or examine specific commits using @[commit-hash].

Accessing Version Control Data

To include git information:

  1. Type @ in the chat interface
  2. Select "Git Changes" or type Working directory changes (see below for details) for current modifications
  3. For specific commits, enter @ followed by at least 7 characters of the commit hash

Bwat instantly receives:

  • Complete diff information
  • Commit metadata (author, date, message)
  • File change status
  • Full context of modifications

Practical Applications

Commit Analysis

This change appears to impact performance: Git commit 'a1b2c3d' (see below for commit info)
Explain the modifications and potential optimization opportunities

Code Review

Current feature implementation: Working directory changes (see below for details)
Does this architectural approach follow best practices?
Suggest any improvements before I commit

Bug Investigation

Regression introduced in: @e4f5g6h
Related component: 'src/modules/AuthService.tsx' (see below for file content)
Propose a solution that maintains backward compatibility

Technical Implementation

For Working Changes (@git-changes)

  1. Bwat detects the git reference pattern
  2. Executes repository status commands
  3. Structures the output:
<working_changes>
branch: feature/user-profiles
modified: src/components/ProfileEditor.jsx
new: src/hooks/useProfileValidation.js
 
[Complete unified diff output]
</working_changes>

For Commit Inspection (@[commit-hash])

  1. Identifies commit reference pattern
  2. Retrieves full commit details
  3. Formats the information:
<commit_snapshot hash="a1b2c3d">
Author: Dev Team <engineering@company.com>
Date: 2025-05-20 14:30:45 -0700
 
Refactor authentication middleware
 
[Full diff showing line-by-line changes]
</commit_snapshot>

This automated process provides Bwat with complete version control context while maintaining your development workflow, eliminating manual diff sharing and enabling more accurate technical discussions.