log
Show commits on the current branch—specifically, commits between the parent branch and HEAD. This helps you see exactly what changes are in the current stack branch, excluding commits from parent branches.
Usage
rung logrung log --jsonOptions
| Option | Description |
|---|---|
--json | Output as JSON (includes branch name, parent, and commit details) |
Example
$ rung log
a1b2c3d Add user authentication alicee4f5g6h Fix login redirect aliceOutput Format
<short-sha> <commit-message> <author>JSON Output
$ rung log --json{ "commits": [ { "hash": "a1b2c3d", "message": "Add user authentication", "author": "alice" }, { "hash": "e4f5g6h", "message": "Fix login redirect", "author": "alice" } ], "branch": "feat-auth", "parent": "main"}When There Are No Commits
$ rung log! Current branch has no commitsThis happens when the current branch points to the same commit as its parent.