You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9cfdddf
Browse filesBrowse the repository at this point in the historyBrowse files
feat: add watch mode to replay new commits as they are made
Add a --watch (-w) flag that polls HEAD every second and replays newly
arrived commits back-to-back, turning gitlogue into a live commit
visualizer.
- Show the startup HEAD commit in its final state while idle
- Queue commits reachable from the new HEAD but not the previous one
- Skip merge commits to avoid replaying merged changes twice
- Ignore commits brought in by switching branches
- Keep at most 100 queued commits, dropping the oldest on overflow
- Speed up typing linearly from 1x to 10x as the queue fills
Closes#215
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copy file name to clipboardExpand all lines: docs/usage.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,6 +217,25 @@ This is especially useful when viewing a specific commit or commit range and you
217
217
- Desktop ricing and ambience
218
218
- Educational replays of feature development
219
219
220
+
### `--watch` / `-w`
221
+
222
+
Watch the repository and replay new commits as they are made — a live commit visualizer.
223
+
224
+
```bash
225
+
gitlogue --watch # Wait for new commits and replay them
226
+
gitlogue --watch --speed 10 # Faster typing for live demos
227
+
```
228
+
229
+
**Behavior:**
230
+
- HEAD is polled every second; any commits reachable from the new HEAD but not from the previous one are queued (covers `git commit`, `git pull`, `git rebase`, etc.)
231
+
- Merge commits are skipped (their changes are replayed via the merged commits)
232
+
- Switching branches (`git checkout` / `git switch`) does not replay the commits of the new branch; only commits made afterwards are replayed
233
+
- On startup, the current HEAD commit is shown in its final state (without animation) while waiting for new commits
234
+
- Queued commits are replayed back-to-back in chronological order
235
+
- Typing speeds up automatically while commits are queued, linearly from 1x (empty queue) to 10x (100 queued commits)
236
+
- At most 100 commits are queued; when more arrive, the oldest queued commits are dropped
237
+
- Cannot be combined with `--commit`, `--order`, `--loop`, `--author`, `--before`, or `--after`
0 commit comments