Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–28 unchanged (28 lines)
29nvm ls-remote > "$MOCKS_DIR/nvm ls-remote.txt"
30nvm ls-remote --lts > "$MOCKS_DIR/nvm ls-remote lts.txt"
31nvm ls-remote node > "$MOCKS_DIR/nvm ls-remote node.txt"
32nvm ls-remote iojs > "$MOCKS_DIR/nvm ls-remote iojs.txt"
33nvm_print_implicit_alias remote stable > "$MOCKS_DIR/nvm_print_implicit_alias remote stable.txt"
34nvm_ls_remote stable > "$MOCKS_DIR/nvm_ls_remote stable.txt"
35
36set +e
37NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm_ls_remote > "$MOCKS_DIR/nvm_ls_remote nightly.txt"
38nvm_download -L -s "$(nvm_get_mirror node std)/index.tab" -o - > "$MOCKS_DIR/nodejs.org-dist-index.tab"
39NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm_print_implicit_alias remote stable > "$MOCKS_DIR/nvm_print_implicit_alias remote stable nightly.txt"
40NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm_ls_remote stable > "$MOCKS_DIR/nvm_ls_remote stable nightly.txt"
41NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ NVM_LTS=* nvm_ls_remote > "$MOCKS_DIR/nvm_ls_remote LTS nightly.txt"
…lines 42–59 unchanged (18 lines)

After

…lines 1–28 unchanged (28 lines)
29nvm ls-remote > "$MOCKS_DIR/nvm ls-remote.txt"
30nvm ls-remote --lts > "$MOCKS_DIR/nvm ls-remote lts.txt"
31nvm ls-remote node > "$MOCKS_DIR/nvm ls-remote node.txt"
32nvm ls-remote iojs > "$MOCKS_DIR/nvm ls-remote iojs.txt"
33nvm_print_implicit_alias remote stable > "$MOCKS_DIR/nvm_print_implicit_alias remote stable.txt"
34nvm_ls_remote stable > "$MOCKS_DIR/nvm_ls_remote stable.txt"
35nvm alias "lts/*" > "$MOCKS_DIR/lts-star.txt"
36
37set +e
38NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm_ls_remote > "$MOCKS_DIR/nvm_ls_remote nightly.txt"
39nvm_download -L -s "$(nvm_get_mirror node std)/index.tab" -o - > "$MOCKS_DIR/nodejs.org-dist-index.tab"
40NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm_print_implicit_alias remote stable > "$MOCKS_DIR/nvm_print_implicit_alias remote stable nightly.txt"
41NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm_ls_remote stable > "$MOCKS_DIR/nvm_ls_remote stable nightly.txt"
…lines 42–60 unchanged (19 lines)

Before

program
comment "#!/usr/bin/env bash"
command
command_name
word "set"
word "-e"
command
command_name
word "echo"
raw_string "'Updating test mocks...'"
variable_assignment
variable_name "MOCKS_DIR"
= "="
string
" "\""
simple_expansion
$ "$"
variable_name "PWD"
string_content "/test/fast/Unit tests/mocks"
" "\""
command
command_name
word "echo"
string
" "\""
string_content "creating "
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
" "\""
command
command_name
word "mkdir"
word "-p"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
" "\""
word "\n\n\\."
string
" "\""
simple_expansion
$ "$"
variable_name "NVM_DIR"
string_content "/nvm.sh"
" "\""
word "--no-use"
redirected_statement
command
command_name
word "nvm"
word "deactivate"
file_redirect
file_descriptor "2"
> ">"
word "/dev/null"
function_definition
word "nvm_is_version_installed"
( "("
) ")"
compound_statement
{ "{"
command
command_name
word "return"
number "1"
} "}"
function_definition
word "nvm_make_alias"
( "("
) ")"
compound_statement
{ "{"
comment "# prevent local alias creation"
command
command_name
word "return"
number "0"
} "}"
redirected_statement
command
command_name
word "nvm_ls_remote"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote.txt"
" "\""
redirected_statement
command
command_name
word "nvm_ls_remote_iojs"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote_iojs.txt"
" "\""
redirected_statement
command
variable_assignment
variable_name "NVM_LTS"
= "="
word "*"
command_name
word "nvm_ls_remote"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote LTS.txt"
" "\""
redirected_statement
command
variable_assignment
variable_name "NVM_LTS"
= "="
word "argon"
command_name
word "nvm_ls_remote"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote LTS argon.txt"
" "\""
redirected_statement (+21 nodes collapsed)
redirected_statement (+29 nodes collapsed)
redirected_statement
command
command_name
word "nvm"
word "ls-remote"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm ls-remote.txt"
" "\""
redirected_statement
command
command_name
word "nvm"
word "ls-remote"
word "--lts"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm ls-remote lts.txt"
" "\""
redirected_statement
command
command_name
word "nvm"
word "ls-remote"
word "node"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm ls-remote node.txt"
" "\""
redirected_statement
command
command_name
word "nvm"
word "ls-remote"
word "iojs"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm ls-remote iojs.txt"
" "\""
redirected_statement
command
command_name
word "nvm_print_implicit_alias"
word "remote"
word "stable"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_print_implicit_alias remote stable.txt"
" "\""
redirected_statement
command
command_name
word "nvm_ls_remote"
word "stable"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote stable.txt"
" "\""
command
command_name
word "set"
word "+e"
redirected_statement
command
variable_assignment
variable_name "NVM_NODEJS_ORG_MIRROR"
= "="
word "https://nodejs.org/download/nightly/"
command_name
word "nvm_ls_remote"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote nightly.txt"
" "\""
redirected_statement (+29 nodes collapsed)
redirected_statement
command
variable_assignment
variable_name "NVM_NODEJS_ORG_MIRROR"
= "="
word "https://nodejs.org/download/nightly/"
command_name
word "nvm_print_implicit_alias"
word "remote"
word "stable"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_print_implicit_alias remote stable nightly.txt"
" "\""
redirected_statement
command
variable_assignment
variable_name "NVM_NODEJS_ORG_MIRROR"
= "="
word "https://nodejs.org/download/nightly/"
command_name
word "nvm_ls_remote"
word "stable"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote stable nightly.txt"
" "\""
redirected_statement (+21 nodes collapsed)
redirected_statement (+21 nodes collapsed)
command
command_name
word "set"
word "-e"
variable_assignment
variable_name "ALIAS_PATH"
= "="
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_make_alias LTS alias calls.txt"
" "\""
redirected_statement
command
command_name
word ":"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "ALIAS_PATH"
" "\""
variable_assignment
variable_name "LTS_NAMES_PATH"
= "="
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/LTS_names.txt"
" "\""
redirected_statement
command
command_name
word ":"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "LTS_NAMES_PATH"
" "\""
function_definition (+71 nodes collapsed)
redirected_statement
command
command_name
word "nvm"
word "ls-remote"
word "--lts"
file_redirect
> ">"
word "/dev/null"
command
command_name
word "echo"
string
" "\""
string_content "done! Don't forget to git commit them."
" "\""

After

program
comment "#!/usr/bin/env bash"
command
command_name
word "set"
word "-e"
command
command_name
word "echo"
raw_string "'Updating test mocks...'"
variable_assignment
variable_name "MOCKS_DIR"
= "="
string
" "\""
simple_expansion
$ "$"
variable_name "PWD"
string_content "/test/fast/Unit tests/mocks"
" "\""
command
command_name
word "echo"
string
" "\""
string_content "creating "
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
" "\""
command
command_name
word "mkdir"
word "-p"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
" "\""
word "\n\n\\."
string
" "\""
simple_expansion
$ "$"
variable_name "NVM_DIR"
string_content "/nvm.sh"
" "\""
word "--no-use"
redirected_statement
command
command_name
word "nvm"
word "deactivate"
file_redirect
file_descriptor "2"
> ">"
word "/dev/null"
function_definition
word "nvm_is_version_installed"
( "("
) ")"
compound_statement
{ "{"
command
command_name
word "return"
number "1"
} "}"
function_definition
word "nvm_make_alias"
( "("
) ")"
compound_statement
{ "{"
comment "# prevent local alias creation"
command
command_name
word "return"
number "0"
} "}"
redirected_statement
command
command_name
word "nvm_ls_remote"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote.txt"
" "\""
redirected_statement
command
command_name
word "nvm_ls_remote_iojs"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote_iojs.txt"
" "\""
redirected_statement
command
variable_assignment
variable_name "NVM_LTS"
= "="
word "*"
command_name
word "nvm_ls_remote"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote LTS.txt"
" "\""
redirected_statement
command
variable_assignment
variable_name "NVM_LTS"
= "="
word "argon"
command_name
word "nvm_ls_remote"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote LTS argon.txt"
" "\""
redirected_statement (+21 nodes collapsed)
redirected_statement (+29 nodes collapsed)
redirected_statement
command
command_name
word "nvm"
word "ls-remote"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm ls-remote.txt"
" "\""
redirected_statement
command
command_name
word "nvm"
word "ls-remote"
word "--lts"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm ls-remote lts.txt"
" "\""
redirected_statement
command
command_name
word "nvm"
word "ls-remote"
word "node"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm ls-remote node.txt"
" "\""
redirected_statement
command
command_name
word "nvm"
word "ls-remote"
word "iojs"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm ls-remote iojs.txt"
" "\""
redirected_statement
command
command_name
word "nvm_print_implicit_alias"
word "remote"
word "stable"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_print_implicit_alias remote stable.txt"
" "\""
redirected_statement
command
command_name
word "nvm_ls_remote"
word "stable"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote stable.txt"
" "\""
redirected_statement
command
command_name
word "nvm"
word "alias"
string
" "\""
string_content "lts/*"
" "\""
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/lts-star.txt"
" "\""
command
command_name
word "set"
word "+e"
redirected_statement
command
variable_assignment
variable_name "NVM_NODEJS_ORG_MIRROR"
= "="
word "https://nodejs.org/download/nightly/"
command_name
word "nvm_ls_remote"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote nightly.txt"
" "\""
redirected_statement (+29 nodes collapsed)
redirected_statement
command
variable_assignment
variable_name "NVM_NODEJS_ORG_MIRROR"
= "="
word "https://nodejs.org/download/nightly/"
command_name
word "nvm_print_implicit_alias"
word "remote"
word "stable"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_print_implicit_alias remote stable nightly.txt"
" "\""
redirected_statement
command
variable_assignment
variable_name "NVM_NODEJS_ORG_MIRROR"
= "="
word "https://nodejs.org/download/nightly/"
command_name
word "nvm_ls_remote"
word "stable"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_ls_remote stable nightly.txt"
" "\""
redirected_statement (+21 nodes collapsed)
redirected_statement (+21 nodes collapsed)
command
command_name
word "set"
word "-e"
variable_assignment
variable_name "ALIAS_PATH"
= "="
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/nvm_make_alias LTS alias calls.txt"
" "\""
redirected_statement
command
command_name
word ":"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "ALIAS_PATH"
" "\""
variable_assignment
variable_name "LTS_NAMES_PATH"
= "="
string
" "\""
simple_expansion
$ "$"
variable_name "MOCKS_DIR"
string_content "/LTS_names.txt"
" "\""
redirected_statement
command
command_name
word ":"
file_redirect
> ">"
string
" "\""
simple_expansion
$ "$"
variable_name "LTS_NAMES_PATH"
" "\""
function_definition (+71 nodes collapsed)
redirected_statement
command
command_name
word "nvm"
word "ls-remote"
word "--lts"
file_redirect
> ">"
word "/dev/null"
command
command_name
word "echo"
string
" "\""
string_content "done! Don't forget to git commit them."
" "\""