1
2
3
4
5
6
7
8
9
10
11 package org.eclipse.jgit.revwalk;
12
13 import java.util.Locale;
14
15 import org.eclipse.jgit.lib.Constants;
16
17
18
19
20 public final class FooterKey {
21
22 public static final FooterKey SIGNED_OFF_BY = new FooterKey("Signed-off-by");
23
24
25 public static final FooterKey ACKED_BY = new FooterKey("Acked-by");
26
27
28 public static final FooterKey CC = new FooterKey("CC");
29
30 private final String name;
31
32 final byte[] raw;
33
34
35
36
37
38
39
40 public FooterKey(String keyName) {
41 name = keyName;
42 raw = Constants.encode(keyName.toLowerCase(Locale.ROOT));
43 }
44
45
46
47
48
49
50 public String getName() {
51 return name;
52 }
53
54
55 @SuppressWarnings("nls")
56 @Override
57 public String toString() {
58 return "FooterKey[" + name + "]";
59 }
60 }