19 lines · 575 B · Shell
RawDownload
#!/usr/bin/env bashset -eu -o pipefail function baseline() {    local revspec=${1:?First argument is the revspec of the object to create a baseline for}    local basename=${2:?Second argument is the name of the baseline file}    local baseline_file="$basename.baseline"    git rev-parse "$revspec" | git cat-file --batch | tail -n +2 > "$baseline_file"    truncate -s "$(($(stat -c '%s' "$baseline_file")-1))" "$baseline_file"} git init -qmkdir filetouch bin bin.d file.to file.toml file.toml.bin file0 file/a git add .git commit -m "c1" baseline @^{tree} tree

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t