diff --git a/demos/helpers.sh b/demos/helpers.sh index 2ef29e8a9..2f8a108cb 100644 --- a/demos/helpers.sh +++ b/demos/helpers.sh @@ -18,8 +18,6 @@ run_command() { run_command_output_redacted() { echo "\$ $@" - # `bash` often resets $COLUMNS, so we also - # allow $RUN_COMMAND_COLUMNS eval "$@" > /dev/null 2>&1 echo -e "\033[0;90m... (output redacted) ...\033[0m" } diff --git a/demos/run_scripts.sh b/demos/run_scripts.sh index fcbf230e8..2ae8b6761 100755 --- a/demos/run_scripts.sh +++ b/demos/run_scripts.sh @@ -70,4 +70,11 @@ for script in "$@"; do -colors 63 -background black -resize 100% \ "$script_base".png \ || true + # TODO/FIXME: The above command doesn't seem to work properly; + # the PNG files end up larger than they should be and are RGB + # as opposed to expected indexed 63-color. This is caused by + # https://github.com/martinvonz/jj/commit/6d573ef6d7a45151495de18b6f4c5063ce39f6bd + # and + # https://github.com/martinvonz/jj/commit/42dee7d08ce8e362cf9d44f844b25e001b6ac94f + # and needs debugging of ImageMagick invocations. done diff --git a/demos/working_copy.png b/demos/working_copy.png index 2b758bd01..07433128e 100644 Binary files a/demos/working_copy.png and b/demos/working_copy.png differ diff --git a/demos/working_copy.svg b/demos/working_copy.svg index 6945370ee..5cbf32619 100644 --- a/demos/working_copy.svg +++ b/demos/working_copy.svg @@ -1,5 +1,5 @@ - + - + # We are in the octocat/Hello-World repo. # We have an empty working copy on top of master: $ jj log -@  ttmypqzs jjfan@example.com 2024-09-04 19:21:13 21dac130 +@  ozsmopnz jjfan@example.com 2024-09-05 17:44:52 fb3dbcd1 │  (empty) (no description set) -  orrkosyo octocat@nowhere.com 2012-03-06 16:06:50 master 7fd1a60b +  orrkosyo octocat@nowhere.com 2012-03-06 16:06:50 master 7fd1a60b │  (empty) Merge pull request #6 from Spaceghost/patch-1 ~ $ jj status The working copy is clean -Working copy : ttmypqzs 21dac130 (empty) (no description set) -Parent commit: orrkosyo 7fd1a60b master | (empty) Merge pull request #6 from Spa +Working copy : ozsmopnz fb3dbcd1 (empty) (no description set) +Parent commit: orrkosyo 7fd1a60b master | (empty) Merge pull request #6 from Spa ceghost/patch-1 # Now make some changes in the working copy: @@ -63,27 +63,27 @@ Working copy changes: M README A new-file -Working copy : ttmypqzs a3925f25 (no description set) -Parent commit: orrkosyo 7fd1a60b master | (empty) Merge pull request #6 from Spa +Working copy : ozsmopnz e667643c (no description set) +Parent commit: orrkosyo 7fd1a60b master | (empty) Merge pull request #6 from Spa ceghost/patch-1 # Add a branch so we can easily refer to this # commit: $ jj branch create goodbye -Created 1 branches pointing to ttmypqzs a3925f25 goodbye | (no description set) +Created 1 branches pointing to ozsmopnz e667643c goodbye | (no description set) $ jj log -@  ttmypqzs jjfan@example.com 2024-09-04 19:21:13 goodbye a3925f25 +@  ozsmopnz jjfan@example.com 2024-09-05 17:44:52 goodbye e667643c │  (no description set) -  orrkosyo octocat@nowhere.com 2012-03-06 16:06:50 master 7fd1a60b +  orrkosyo octocat@nowhere.com 2012-03-06 16:06:50 master 7fd1a60b │  (empty) Merge pull request #6 from Spaceghost/patch-1 ~ # Start working on a new change off of master: $ jj new master -Working copy now at: sykquxrt 9412b8bb (empty) (no description set) -Parent commit      : orrkosyo 7fd1a60b master | (empty) Merge pull request #6 fr +Working copy now at: qulnmsro cece88b0 (empty) (no description set) +Parent commit      : orrkosyo 7fd1a60b master | (empty) Merge pull request #6 fr om Spaceghost/patch-1 Added 0 files, modified 1 files, removed 1 files @@ -91,11 +91,11 @@ # "goodbye" change stayed in its own commit: $ jj log -@  sykquxrt jjfan@example.com 2024-09-04 19:21:14 9412b8bb +@  qulnmsro jjfan@example.com 2024-09-05 17:44:51 cece88b0 │  (empty) (no description set) -│ ○  ttmypqzs jjfan@example.com 2024-09-04 19:21:13 goodbye a3925f25 +│ ○  ozsmopnz jjfan@example.com 2024-09-05 17:44:52 goodbye e667643c ├─╯  (no description set) -  orrkosyo octocat@nowhere.com 2012-03-06 16:06:50 master 7fd1a60b +  orrkosyo octocat@nowhere.com 2012-03-06 16:06:50 master 7fd1a60b │  (empty) Merge pull request #6 from Spaceghost/patch-1 ~ @@ -104,8 +104,8 @@ $ jj status The working copy is clean -Working copy : sykquxrt 9412b8bb (empty) (no description set) -Parent commit: orrkosyo 7fd1a60b master | (empty) Merge pull request #6 from Spa +Working copy : qulnmsro cece88b0 (empty) (no description set) +Parent commit: orrkosyo 7fd1a60b master | (empty) Merge pull request #6 from Spa ceghost/patch-1 # Modify a file in this new change: @@ -114,8 +114,8 @@ $ jj status Working copy changes: M README -Working copy : sykquxrt f3b4701e (no description set) -Parent commit: orrkosyo 7fd1a60b master | (empty) Merge pull request #6 from Spa +Working copy : qulnmsro 51e8e98e (no description set) +Parent commit: orrkosyo 7fd1a60b master | (empty) Merge pull request #6 from Spa ceghost/patch-1 # The working copy is not special; we can, for @@ -123,25 +123,22 @@ # First, set it on the working copy: $ jj describe -m everyone -Working copy now at: sykquxrt 93d83772 everyone -Parent commit      : orrkosyo 7fd1a60b master | (empty) Merge pull request #6 fr -om Spaceghost/patch-1 -... (output redacted) ... - -# Now set it on the change we worked on before: - -$ jj describe goodbye -m goodbye - -# Inspect the result: - -$ jj log -○  ttmypqzs jjfan@example.com 2024-09-04 19:21:14 goodbye 13c5fc55 -│  goodbye -│ @  sykquxrt jjfan@example.com 2024-09-04 19:21:14 93d83772 -├─╯  everyone -  orrkosyo octocat@nowhere.com 2012-03-06 16:06:50 master 7fd1a60b -│  (empty) Merge pull request #6 from Spaceghost/patch-1 -~ +... (output redacted) ... + +# Now set it on the change we worked on before: + +$ jj describe goodbye -m goodbye + +# Inspect the result: + +$ jj log +○  ozsmopnz jjfan@example.com 2024-09-05 17:44:52 goodbye eb4cc65d +│  goodbye +│ @  qulnmsro jjfan@example.com 2024-09-05 17:44:52 aa8ad947 +├─╯  everyone +  orrkosyo octocat@nowhere.com 2012-03-06 16:06:50 master 7fd1a60b +│  (empty) Merge pull request #6 from Spaceghost/patch-1 +~