Refactor Dockerfile to use system-wide Git configuration for delta pager

- Changed Git configuration commands in the Dockerfile to apply system-wide settings instead of user-specific settings for the 'vscode' user.
- This update ensures that the delta pager and related configurations are available globally within the container, improving consistency and usability for all users.
This commit is contained in:
Dylan Knutson
2025-01-20 16:24:35 +00:00
parent 73ff4ee472
commit 828f52fe81

View File

@@ -60,12 +60,12 @@ RUN wget -O- https://github.com/dandavison/delta/releases/download/0.18.2/git-de
sudo dpkg -i /tmp/git-delta.deb && \
rm /tmp/git-delta.deb
RUN su vscode -c 'git config --global core.pager "delta"' && \
su vscode -c 'git config --global interactive.diffFilter "delta --color-only"' && \
su vscode -c 'git config --global delta.navigate true' && \
su vscode -c 'git config --global delta.dark true' && \
su vscode -c 'git config --global delta.side-by-side true' && \
su vscode -c 'git config --global merge.conflictstyle "zdiff3"'
RUN git config --system core.pager "delta" && \
git config --system interactive.diffFilter "delta --color-only" && \
git config --system delta.navigate true && \
git config --system delta.dark true && \
git config --system delta.side-by-side true && \
git config --system merge.conflictstyle "zdiff3"
# Install native gems
COPY --from=native-gems /usr/src/app/gems/xdiff-rb /gems/xdiff-rb