Skip to content

Commit 02d16c6

Browse files
committed
refactor(git): Using package for delta
Signed-off-by: Vincent Boutour <[email protected]>
1 parent 7669d63 commit 02d16c6

File tree

1 file changed

+1
-19
lines changed
  • installations

1 file changed

+1
-19
lines changed

installations/git

+1-19
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,11 @@ script_dir() {
1515
}
1616

1717
install() {
18-
packages_install git git-lfs
18+
packages_install git git-lfs git-delta
1919

2020
if ! command -v git >/dev/null 2>&1; then
2121
return
2222
fi
2323

2424
curl --disable --silent --show-error --location --max-time 30 --output "$(script_dir)/../sources/git-prompt" "https://raw.githubusercontent.com/git/git/v$(git --version | awk '{printf("%s", $3)}')/contrib/completion/git-prompt.sh"
25-
26-
# renovate: datasource=github-releases depName=dandavison/delta
27-
local DELTA_VERSION="0.16.5"
28-
29-
local OS="unknown-linux-musl"
30-
local ARCH
31-
ARCH="$(normalized_arch "" "arm")"
32-
33-
if [[ $(normalized_os) =~ ^darwin ]]; then
34-
OS="apple-darwin"
35-
elif [[ ${ARCH} == "aarch64" ]]; then
36-
OS="unknown-linux-gnu"
37-
elif [[ ${ARCH} == "arm" ]]; then
38-
OS="unknown-linux-gnueabihf"
39-
fi
40-
41-
local DELTA_RELEASE="delta-${DELTA_VERSION}-${ARCH}-${OS}"
42-
archive_to_binary "https://github.com/dandavison/delta/releases/download/${DELTA_VERSION}/${DELTA_RELEASE}.tar.gz" "${DELTA_RELEASE}/delta"
4325
}

0 commit comments

Comments
 (0)