~ecs/tm

ref: 95cb618f450695312ff6849e7c6e86709e985ae9 tm/tm-cat -rwxr-xr-x 188 bytes
95cb618fEmber Sawady init: use commit instead of commit-tree 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
#!/bin/sh -eu

. "$(dirname -- "$0")/lib.sh"
if [ $# -ne 1 ]; then
	abort "usage: tm cat <ref>"
fi
ref="$(tm resolve-ref "$1")" || abort "error: invalid ref $1"
cat "$TM_DIR/objects/$ref"