2021-10-22 16:24:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
. "$(dirname "$0")"/demo_helpers.sh
|
|
|
|
parse_args "$@"
|
|
|
|
|
|
|
|
new_tmp_dir
|
|
|
|
|
2021-10-23 04:32:53 +00:00
|
|
|
run_demo 'Clone a Git repo' '
|
2021-10-22 16:24:02 +00:00
|
|
|
run_command "# Clone a Git repo:"
|
|
|
|
run_command "jj git clone https://github.com/octocat/Hello-World"
|
|
|
|
run_command "cd Hello-World"
|
2021-10-23 16:34:58 +00:00
|
|
|
pause 1
|
2021-10-22 16:24:02 +00:00
|
|
|
run_command "# Inspect it:"
|
2021-10-23 16:34:58 +00:00
|
|
|
pause 1
|
2022-05-14 15:55:46 +00:00
|
|
|
run_command "jj log -r '\''all()'\''"
|
2021-10-23 16:34:58 +00:00
|
|
|
pause 5
|
2021-10-22 16:24:02 +00:00
|
|
|
run_command "jj diff -r b1"
|
2021-10-23 16:34:58 +00:00
|
|
|
pause 2
|
2021-10-22 16:24:02 +00:00
|
|
|
run_command "# The repo is backed by the actual Git repo:"
|
2022-02-18 06:20:14 +00:00
|
|
|
run_command "git --git-dir=.jj/repo/store/git log --graph --all --decorate --oneline"
|
2021-10-22 16:24:02 +00:00
|
|
|
'
|