summaryrefslogtreecommitdiffstats
path: root/tests/test_deprecated_options
blob: 2b058dc9ed89f420d8a8de087bd40bcb0bd7ff5c (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
#!/bin/bash

DELTA="./target/release/delta --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