# AI Source Control Pro

Advanced AI-powered source control extension with intelligent commit analysis, visual diff tools, and automated code history insights. Enhanced Git workflow automation.

## Features

### File History & Comparison
- **Quick File History**: View complete history of any file with AI insights
- **Compare Revisions**: Intelligent diff with previous or working version
- **Blame Annotations**: See who changed each line and when
- **Commit Details**: Detailed AI-powered commit analysis

### Visual Git Information
- **Inline Blame**: Author and date annotations next to code
- **Git Code Lens**: Commit info above functions and classes
- **Heatmap**: Visual representation of code age
- **Current Line Blame**: Hover to see commit details

### Repository Views
- **Commits View**: Browse commit history with AI summaries
- **Branches View**: Manage local and remote branches
- **Remotes View**: View and manage remotes
- **Stashes View**: Manage your stashed changes
- **File History**: Timeline of file changes

### Advanced Features
- **AI Commit Search**: Find commits by message, author, or file
- **Branch Comparison**: Compare any two branches
- **Smart Avatars**: Author avatars in annotations
- **Customizable Format**: Configure date and annotation format

## Commands

### Quick Access
- `AI SCM Pro: Show File History` - View file's commit history
- `AI SCM Pro: Show Repository History` - View repository commits
- `AI SCM Pro: Show Branch History` - View branch commits
- `AI SCM Pro: Toggle File Blame` - Show/hide blame annotations
- `AI SCM Pro: Toggle Git Code Lens` - Enable/disable code lens

### Diff & Compare
- `AI SCM Pro: Open Changes with Previous Revision`
- `AI SCM Pro: Open Changes with Working File`
- `AI SCM Pro: Show Commit Details`

### Search & Navigate
- `AI SCM Pro: Search Commits` - AI-powered commit search
- `AI SCM Pro: Show Commit File Details`

## Keyboard Shortcuts

- `Alt+H` - Show File History
- `Alt+B` - Toggle File Blame
- `Ctrl+Shift+G` - Open AI SCM Panel

## Configuration

### Blame Annotations

```json
{
  "gitlens.blame.avatars": true,
  "gitlens.blame.compact": true,
  "gitlens.blame.dateFormat": "MMMM Do, YYYY h:mma",
  "gitlens.blame.format": "${author}, ${date}",
  "gitlens.blame.heatmap.enabled": true,
  "gitlens.blame.highlight.enabled": true
}
```

### Code Lens

```json
{
  "gitlens.codeLens.enabled": true,
  "gitlens.codeLens.recentChange.enabled": true,
  "gitlens.codeLens.authors.enabled": true
}
```

### Current Line

```json
{
  "gitlens.currentLine.enabled": true,
  "gitlens.hovers.enabled": true,
  "gitlens.hovers.currentLine.over": "annotation"
}
```

### Status Bar

```json
{
  "gitlens.statusBar.enabled": true
}
```

### Views

```json
{
  "gitlens.views.repositories.files.layout": "auto",
  "gitlens.advanced.caching.enabled": true
}
```

## Usage

### View File History
1. Open any file in your Git repository
2. Press `Alt+H` or use Command Palette
3. Browse commits that modified the file

### Toggle Blame
1. Open any file
2. Press `Alt+B` or click AI SCM icon
3. See author and date next to each line

### Compare Revisions
1. Right-click in editor
2. Select "AI SCM Pro: Open Changes with Previous Revision"
3. View side-by-side diff

### Search Commits
1. Open Command Palette (`Ctrl+Shift+P`)
2. Type "AI SCM Pro: Search Commits"
3. AI-powered search by message, author, or file

## Requirements

- Visual Studio Code 1.75.0 or higher
- Git installed and accessible from PATH

## Changelog

### Version 1.0.0
- Complete source control functionality with AI enhancements
- Advanced visualization tools
- Intelligent commit analysis
- Enhanced Git integration
- AI-powered blame features
- Repository views with smart insights
- Advanced search capabilities

## License

MIT
