A TUI app for watching git repository file changes with diffs.
Handy for when you want to know what the AI agents are cooking.
- File Status Tracking: Shows all changed files in a Git repository with their status (modified, new, deleted, renamed, etc.)
- Visual Diff Viewer: Displays differences between file versions with syntax highlighting and line-by-line comparison
- File Operations:
- Revert changes to files
- Delete files safely (with trash/recycle bin support)
- Open files in the default editor
- Search Functionality: Allows searching for files by content within the repository
- Commit History Browser: View commit history with hash, message, author, and date
npm install -g diffwatchThen run from any git repository:
diffwatch- Clone the repository:
git clone https://github.com/sarfraznawaz2005/diffwatch.git
cd diffwatch- Install dependencies:
bun installTo watch the current git repository:
diffwatchTo watch a specific git repository:
diffwatch --path|-p /path/to/repodiffwatch [OPTIONS]Options:
--path <path>or-p <path>- Specify git repository path to watch--helpor-h- Show help message--versionor-v- Show version number
↑/↓- Navigate through the file listTab/←/→- Switch between file list and diff viewEnter- Open selected file in default editorD- Delete selected fileR- Revert changes to selected fileS- Enter search modeH- View commit historyQ- Quit the applicationEsc- Exit search mode or close dialogs
bun run dev
# or
bun run startTo build the application for distribution:
bun run buildThis creates a compiled binary in dist/ directory.
bun test # Run all tests
bun test:watch # Run tests in watch mode
bun test:coverage # Run tests with coverage
bun test:unit # Run unit tests only
bun test:integration # Run integration tests only
bun test:git # Run git-related tests only
bun test:components # Run component tests only
bun test:app # Run app integration testsbun run typecheck
# or
bun run lint