4ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5REPO_DIR="$ASSET_DIR/.."
7# Ensure submodules are initialized.
8function update_submodules() {
10 local submodule_prompt=unspecified
14 while { read -r submodule && read -r submodule_path; } <&3; do
15 if ! [[ -d "${REPO_DIR}/.git/modules/${submodule}" ]] && [[ -d "${REPO_DIR}/${submodule_path}" ]]; then
16 if [[ "$submodule_prompt" = "unspecified" ]]; then
17 echo "One or more submodules were found to be uninitialized."
18 printf "Initialize and update them? [Y/n] "
19 read -r submodule_prompt
22 case "$submodule_prompt" in
24 git -C "$REPO_DIR" submodule update --init "$submodule_path"
30 echo "Unknown answer. Not updating submodules."
35 } 3< <(git config --file "${REPO_DIR}/.gitmodules" --null --get-regexp path | xargs -0 printf "%s\n" | sed 's/^submodule.//;s/.path$//')
42# Always remove the local cache to avoid any confusion
45# TODO: Remove this (and the reverse part below) when
46# https://github.com/trishume/syntect/issues/222 has been fixed
47JAVADOC_FILE="${ASSET_DIR}/syntaxes/01_Packages/Java/JavaDoc.sublime-syntax"
48JAVADOC_PATCH="${ASSET_DIR}/JavaDoc.sublime-syntax.patch"
49patch "$JAVADOC_FILE" "$JAVADOC_PATCH"
51bat cache --build --blank --source="$ASSET_DIR" --target="$ASSET_DIR"
53patch -R "$JAVADOC_FILE" "$JAVADOC_PATCH"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list