Reflog

Mirroring Git, most operations that alter a reference leave a log for that reference (called reflog). This command suite allow one to view reflog for a reference if there are any. For now, only branches (refs that start with heads/) and remote tracking branches (refs that start with remotes/) have logs.

A log entry has this format:

<shorten commit sum> <ref name>@{<depth>}: <command>: <action>

wrgl reflog

Show the logs of REFERENCE

wrgl reflog REFERENCE [flags]

REFERENCE can be complete reference like "refs/heads/main" or shorten to just "main".

Flags

-h, --help

help for reflog

-P, --no-pager

don't use PAGER

Inherited flags

--badger-log

set Badger log level, valid options are "error", "warning", "debug", and "info" (defaults to "error")

--cpuprofile

write cpu profile to file

--debug

print debug logs to stdout

--debug-file

print debug logs to the given file instead

--heapprofile

write heap profile to file

--wrgl-dir

parent directory of repo, default to current working directory.

Examples

# show logs for main branch
wrgl reflog heads/main

# show logs for remote tracking branch
wrgl reflog remotes/origin/main

wrgl reflog exist

Checks whether a reference has any log

wrgl reflog exist REFERENCE [flags]

Flags

-h, --help

help for exist

Inherited flags

--badger-log

set Badger log level, valid options are "error", "warning", "debug", and "info" (defaults to "error")

--cpuprofile

write cpu profile to file

--debug

print debug logs to stdout

--debug-file

print debug logs to the given file instead

--heapprofile

write heap profile to file

--wrgl-dir

parent directory of repo, default to current working directory.