forked from mirrors/jj
71c789f50b
The default log output of showing all commits is not very useful when contributing to an existing repo. Let's have it default to showing commits not on any remote branch instead. I think that's the best we can do since we don't have a configurable main branch yet, and we don't even have per-repo configuration.. Closes #250.
21 lines
528 B
Bash
Executable file
21 lines
528 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
. "$(dirname "$0")"/demo_helpers.sh
|
|
parse_args "$@"
|
|
|
|
new_tmp_dir
|
|
|
|
run_demo 'Clone a Git repo' '
|
|
run_command "# Clone a Git repo:"
|
|
run_command "jj git clone https://github.com/octocat/Hello-World"
|
|
run_command "cd Hello-World"
|
|
pause 1
|
|
run_command "# Inspect it:"
|
|
pause 1
|
|
run_command "jj log -r '\''all()'\''"
|
|
pause 5
|
|
run_command "jj diff -r b1"
|
|
pause 2
|
|
run_command "# The repo is backed by the actual Git repo:"
|
|
run_command "git --git-dir=.jj/repo/store/git log --graph --all --decorate --oneline"
|
|
'
|