Skip to content

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

Terminal window
rung log
rung log --json

Options

OptionDescription
--jsonOutput as JSON (includes branch name, parent, and commit details)

Example

Terminal window
$ rung log
a1b2c3d Add user authentication alice
e4f5g6h Fix login redirect alice

Output Format

<short-sha> <commit-message> <author>

JSON Output

Terminal window
$ 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

Terminal window
$ rung log
! Current branch has no commits

This happens when the current branch points to the same commit as its parent.

  • status — View the full stack tree
  • absorb — Absorb staged changes into commits
  • nxt / prv — Navigate the stack