User's manual. Section 1.

HIST(1): dump history


USAGE

        usage: hist [-Dacdflu] [-p dumpdir] [-w date] [-x cmd] {file}
            -D: debug
            -a: list all copies that differ, not just the last one.
            -c: copy the file from the dump
            -d: print file differences
            -f: force search past file removals
            -l: produce a long listing (or print just the name)
            -p dumpdir: path to dump (default is /dump or /u/dump)
            -u: unix IO
            -w date: backward search start time (default is now)
            -x cmd: print lines to execute this command between versions
        

DESCRIPTION

hist digs in the dump to list file history. By default it prints the path in the dump for the last version of the input files.

The dump is assumed to be in /dump or /u/dump unless flag -p tells otherwise. The only dumped trees known are /zx, dumped at /dump, and /u/* directories, dumped at /u/dump.

EXAMPLE

Locate in the dump all go sources for files under the current directory:

        ; lf ,~*.go | hist
        

Print all recorded changes made to hist.go:

        ; hist -ad hist.go
        

SOURCE

  • /zx/sys/src/clive/cmd/hist


User's manual. Section 1.