demos: redirect setup commands to /dev/null

Previously, we needed to remove this manually from screenshots.
This commit is contained in:
Ilya Grigoriev 2023-08-28 22:59:58 -07:00
parent 438a4564b0
commit 68b8069c5e
4 changed files with 15 additions and 13 deletions

View File

@ -3,16 +3,18 @@ set -euo pipefail
. "$(dirname "$0")"/helpers.sh
new_tmp_dir
jj init --config-toml ui.allow-init-native=true
echo "first" > file
jj branch create first
jj commit -m 'first'
echo "second" > file
jj branch create second
jj commit -m 'second'
echo "third" > file
jj branch create third
jj commit -m 'third'
(
jj init --config-toml ui.allow-init-native=true
echo "first" > file
jj branch create first
jj commit -m 'first'
echo "second" > file
jj branch create second
jj commit -m 'second'
echo "third" > file
jj branch create third
jj commit -m 'third'
) >/dev/null
comment "We are in a repo with three commits, all
editing the same line:"

View File

@ -3,7 +3,7 @@ set -euo pipefail
. "$(dirname "$0")"/helpers.sh
new_tmp_dir
jj git clone https://github.com/octocat/Hello-World
jj git clone https://github.com/octocat/Hello-World > /dev/null
cd Hello-World
comment "We are in the octocat/Hello-World repo.

View File

@ -3,7 +3,7 @@ set -euo pipefail
. "$(dirname "$0")"/helpers.sh
new_tmp_dir
jj git clone https://github.com/octocat/Hello-World
jj git clone https://github.com/octocat/Hello-World > /dev/null
cd Hello-World
comment "We are on the master branch of the

View File

@ -3,7 +3,7 @@ set -euo pipefail
. "$(dirname "$0")"/helpers.sh
new_tmp_dir
jj git clone https://github.com/octocat/Hello-World
jj git clone https://github.com/octocat/Hello-World > /dev/null
cd Hello-World
comment "We are in the octocat/Hello-World repo.