summaryrefslogtreecommitdiffstats
path: root/tests/test_deprecated_options
blob: 8202a70c92783e5c4c9ec1c42394a6a856c29b55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

# if first arg provided, use it, otherwise default to release
DELTA_BIN=${1:-./target/release/delta}
DELTA="$DELTA_BIN --no-gitconfig"

foreground_color=red
for decoration_attr in box underline plain; do

    git show | $DELTA --commit-style $decoration_attr
    git show | $DELTA --file-style $decoration_attr
    git show | $DELTA --hunk-style $decoration_attr

    git show | $DELTA --commit-color $foreground_color
    git show | $DELTA --file-color $foreground_color
    git show | $DELTA --hunk-color $foreground_color

    git show | $DELTA --commit-color $foreground_color --commit-style $decoration_attr
    git show | $DELTA --file-color $foreground_color --file-style $decoration_attr
    git show | $DELTA --hunk-color $foreground_color --hunk-style $decoration_attr

done

background_color=blue
for option in --minus-color --plus-color --minus-emph-color --plus-emph-color; do
    git show | $DELTA $option $background_color
done

git show | $DELTA --theme=GitHub --highlight-removed