Debian Codegraph @

testdata/git-conflict-with-base-minus.riff-output

raw
1 diff --cc xsrc/token_collector.rs
2 index b0b23a5,d8d6da8..0000000
3 --- xsrc/token_collector.rs
4 +++ xsrc/token_collector.rs
5 @@@ -34,47 -35,62 +34,95 @@@ pub(crate) struct LineStyle 
6 }
7
8 pub(crate) const LINE_STYLE_OLD: LineStyle = {
9  + LineStyle {
10  + prefix_style: ANSI_STYLE_NORMAL.with_color(Red),
11  + plain_style: ANSI_STYLE_NORMAL.with_color(Red),
12  + highlighted_style: ANSI_STYLE_NORMAL.with_color(Red).with_inverse(true),
13  + }
14  +};
15  +
16 ++<<<<<<< HEAD
17  +pub(crate) const LINE_STYLE_OLD_FAINT: LineStyle = {
18  + LineStyle {
19  + prefix_style: ANSI_STYLE_NORMAL.with_color(Red).with_weight(Weight::Faint),
20  + plain_style: ANSI_STYLE_NORMAL.with_color(Red).with_weight(Weight::Faint),
21  + highlighted_style: ANSI_STYLE_NORMAL
22  + .with_color(Red)
23  + .with_weight(Weight::Faint)
24  + .with_inverse(true),
25  + }
26  +};
27  +
28 ++||||||| parent of 980b661 (Remove the adds-only special highlighting feature)
29 ++pub(crate) const LINE_STYLE_OLD_FAINT: LineStyle = {
30 +  LineStyle {
31 +  prefix_style: AnsiStyle {
32 +  inverse: false,
33  - weight: Weight::Normal,
34 ++ weight: Weight::Faint,
35 +  color: Red,
36 +  },
37 +  plain_style: AnsiStyle {
38 +  inverse: false,
39  - weight: Weight::Normal,
40 ++ weight: Weight::Faint,
41 +  color: Red,
42 +  },
43 +  highlighted_style: AnsiStyle {
44 +  inverse: true,
45  - weight: Weight::Normal,
46 ++ weight: Weight::Faint,
47 +  color: Red,
48 +  },
49 +  }
50 + };
51 + 
52 ++=======
53 ++>>>>>>> 980b661 (Remove the adds-only special highlighting feature)
54 pub(crate) const LINE_STYLE_NEW: LineStyle = {
55  + LineStyle {
56  + prefix_style: ANSI_STYLE_NORMAL.with_color(Green),
57  + plain_style: ANSI_STYLE_NORMAL.with_color(Green),
58  + highlighted_style: ANSI_STYLE_NORMAL.with_color(Green).with_inverse(true),
59  + }
60  +};
61  +
62 ++<<<<<<< HEAD
63  +pub(crate) const LINE_STYLE_ADDS_ONLY: LineStyle = {
64  + LineStyle {
65  + prefix_style: ANSI_STYLE_NORMAL
66  + .with_color(Green)
67  + .with_weight(Weight::Faint),
68  + plain_style: ANSI_STYLE_NORMAL,
69  + highlighted_style: ANSI_STYLE_NORMAL.with_color(Green).with_inverse(true),
70  + }
71  +};
72  +
73 ++||||||| parent of 980b661 (Remove the adds-only special highlighting feature)
74 ++pub(crate) const LINE_STYLE_ADDS_ONLY: LineStyle = {
75 +  LineStyle {
76 +  prefix_style: AnsiStyle {
77 +  inverse: false,
78  - weight: Weight::Normal,
79 ++ weight: Weight::Faint,
80 +  color: Green,
81 +  },
82 +  plain_style: AnsiStyle {
83 +  inverse: false,
84 +  weight: Weight::Normal,
85  - color: Green,
86 ++ color: Default,
87 +  },
88 +  highlighted_style: AnsiStyle {
89 +  inverse: true,
90 +  weight: Weight::Normal,
91 +  color: Green,
92 +  },
93 +  }
94 + };
95 + 
96 ++=======
97 ++>>>>>>> 980b661 (Remove the adds-only special highlighting feature)
98 pub(crate) const LINE_STYLE_CONFLICT_BASE: LineStyle = {
99 LineStyle {
100  - prefix_style: AnsiStyle {
101  - inverse: true,
102  - weight: Weight::Normal,
103  - color: Default,
104  - },
105  - plain_style: AnsiStyle {
106  - inverse: false,
107  - weight: Weight::Normal,
108  - color: Red,
109  - },
110  - highlighted_style: AnsiStyle {
111  - inverse: true,
112  - weight: Weight::Normal,
113  - color: Red,
114  - },
115  + prefix_style: ANSI_STYLE_NORMAL.with_inverse(true),
116  + plain_style: ANSI_STYLE_NORMAL.with_color(Red),
117  + highlighted_style: ANSI_STYLE_NORMAL.with_color(Red).with_inverse(true),
118 }
119 };
120