Record your work
glaurung redo
Reapply project changes reverted by undo.
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
$ 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
$ glaurung redo hello.glaurung -n 1 output
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
$ glaurung redo hello.glaurung -n 2 --json output
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
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