Record your work

glaurung redo

Reapply project changes reverted by undo.

writes files or project state 2 worked examples

use it for

redo works only while the reverted operations remain in the redo log.

Run glaurung redo --help on your installed version before putting the command in a script. Glaurung is still pre-1.0.

input
A project with one or more operations reverted by undo.
output
Reapplied project writes and an updated undo/redo history.
mode
writes state. Reapplies writes to the project.

command shape

syntax

short form
$ glaurung redo PROJECT [-n N]

The installed parser is authoritative: glaurung redo --help

before the examples

project setup

The examples use the checked-in hello-c-clang-debug fixture and a project named hello.glaurung.

$ glaurung kickoff samples/binaries/platforms/linux/amd64/export/native/clang/debug/hello-c-clang-debug --db hello.glaurung
$ glaurung comment hello.glaurung 0x1150 checked
$ glaurung undo hello.glaurung

run it

examples

Restore the last undone write

Redo consumes the newest entry in the redo stack.

run

from the engine checkout
$ glaurung redo hello.glaurung -n 1

output

captured result captured 2026-08-31
redo #4 function_prototypes function_name=print_sum  (no field-level diff)

captured 2026-08-31.

Read the result: A fresh project write can invalidate the redo path. Redo is not a long-term branch mechanism.

Reapply two operations

Use a count only after checking the undo list before the revert.

run

from the engine checkout
$ glaurung redo hello.glaurung -n 2 --json

output

captured result captured with the setup above, 2026-08-31
redo #1 comments va=0x1150  body: '<none>' → 'checked'

captured with the setup above, 2026-08-31.

Read the result: Only one operation was available, so asking for two reapplied one. The command stops at the end of the redo stack.

used above

important options

-n N
Reapply N operations; the default is one.
--binary PATH
Select the binary in a multi-binary project.
--json
Print operation details as JSON.

These are the flags used by the examples. Run glaurung redo --help for the complete parser help.

before you rely on it

checks

keep working

related commands

← all 40 commands