mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-05 23:42:50 +00:00
The automation is mostly copied from https://github.com/arxanas/git-branchless/tree/master/demos, so big thanks to @arxanas for writing that!
26 lines
567 B
Bash
Executable File
26 lines
567 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
. "$(dirname "$0")"/demo_helpers.sh
|
|
parse_args "$@"
|
|
|
|
new_tmp_dir
|
|
|
|
run_demo '
|
|
expect_prompt
|
|
run_command "# Clone a Git repo:"
|
|
expect_prompt
|
|
run_command "jj git clone https://github.com/octocat/Hello-World"
|
|
expect_prompt
|
|
run_command "cd Hello-World"
|
|
expect_prompt
|
|
run_command "# Inspect it:"
|
|
expect_prompt
|
|
run_command "jj log"
|
|
expect_prompt
|
|
run_command "jj diff -r b1"
|
|
expect_prompt
|
|
run_command "# The repo is backed by the actual Git repo:"
|
|
expect_prompt
|
|
run_command "git --git-dir=.jj/store/git log --graph --all --decorate --oneline"
|
|
'
|