log
v0.2.0+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.
rung logrung log --jsonOptions
Section titled “Options”| Option | Description |
|---|---|
--json | Output as JSON (includes branch name, parent, and commit details) |
Example
Section titled “Example”$ rung log
a1b2c3d Add user authentication alicee4f5g6h Fix login redirect aliceOutput Format
Section titled “Output Format”<short-sha> <commit-message> <author>JSON Output
Section titled “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
Section titled “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.