mirror of
https://github.com/martinvonz/jj.git
synced 2024-09-11 13:56:29 +03:00
The demos don't need to be animated - the user wouldn't miss anything if they skipped to the end. So let's just show the full output so the user can read through it at their own pace. We could use plain text, but I think the colors are helpful, so I went with screenshots. Closes #166.
17 lines
426 B
Bash
Executable File
17 lines
426 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
. "$(dirname "$0")"/demo_helpers.sh
|
|
|
|
new_tmp_dir
|
|
|
|
comment "Clone a Git repo:"
|
|
run_command "jj git clone https://github.com/octocat/Hello-World"
|
|
run_command "cd Hello-World"
|
|
|
|
comment "Inspect it:"
|
|
run_command "jj log -r 'all()'"
|
|
run_command "jj diff -r b1"
|
|
|
|
comment "The repo is backed by the actual Git repo:"
|
|
run_command "git --git-dir=.jj/repo/store/git log --graph --all --decorate --oneline"
|