# Demo Transcripts

These are lightweight terminal transcripts for the four headline `timefs` workflows described in the README.

## Mount

```console
$ mkdir -p /tmp/linux-mnt
$ timefs mount ~/code/linux /tmp/linux-mnt -f
INFO mounting timefs repo=/home/user/code/linux mountpoint=/tmp/linux-mnt ref_snapshot=false
```

In a second shell:

```console
$ ls /tmp/linux-mnt
at
commits
history
now
refs
```

## Time Travel

```console
$ cd /tmp/linux-mnt/at/HEAD~40
$ pwd
/tmp/linux-mnt/at/HEAD~40
$ sed -n '1,5p' Makefile
# SPDX-License-Identifier: GPL-2.0
VERSION = 6
PATCHLEVEL = 1
SUBLEVEL = 0
EXTRAVERSION =
```

## Commit Diff

```console
$ diff -r /tmp/linux-mnt/at/HEAD~1 /tmp/linux-mnt/at/HEAD
diff -r /tmp/linux-mnt/at/HEAD~1/README /tmp/linux-mnt/at/HEAD/README
1c1
< old line
---
> new line
```

## File History

```console
$ ls /tmp/linux-mnt/history/Documentation/process/changes.rst
0001-1a2b3c4.rst
0002-5d6e7f8.rst
0003-9abc012.rst

$ diff /tmp/linux-mnt/history/Documentation/process/changes.rst/0001-1a2b3c4.rst \
       /tmp/linux-mnt/history/Documentation/process/changes.rst/0002-5d6e7f8.rst
```
