2021-10-22 19:24:02 +03:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
2023-08-29 01:42:44 +03:00
|
|
|
. "$(dirname "$0")"/helpers.sh
|
2021-10-22 19:24:02 +03:00
|
|
|
|
|
|
|
new_tmp_dir
|
|
|
|
|
2022-10-21 08:13:09 +03:00
|
|
|
comment "Clone a Git repo:"
|
2021-10-22 19:24:02 +03:00
|
|
|
run_command "jj git clone https://github.com/octocat/Hello-World"
|
|
|
|
run_command "cd Hello-World"
|
2022-10-21 08:13:09 +03:00
|
|
|
|
|
|
|
comment "Inspect it:"
|
|
|
|
run_command "jj log -r 'all()'"
|
2023-09-10 07:17:47 +03:00
|
|
|
blank
|
2021-10-22 19:24:02 +03:00
|
|
|
run_command "jj diff -r b1"
|
2022-10-21 08:13:09 +03:00
|
|
|
|
|
|
|
comment "The repo is backed by the actual Git repo:"
|
2022-02-18 09:20:14 +03:00
|
|
|
run_command "git --git-dir=.jj/repo/store/git log --graph --all --decorate --oneline"
|
2023-02-09 03:26:55 +03:00
|
|
|
|
|
|
|
blank
|