Skip to content

Commit b094b98

Browse files
author
Marc ROZANC
committed
Rename boolean for foundTag and add getter
1 parent e9f82b4 commit b094b98

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/java/me/qoomon/gitversioning/commons/GitDescription.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ public class GitDescription {
44
private final String commit;
55
private final String tag;
66
private final int distance;
7-
private final boolean foundTag;
7+
private final boolean tagFound;
88

9-
public GitDescription(String commit, String tag, int distance, boolean foundTag) {
9+
public GitDescription(String commit, String tag, int distance, boolean tagFound) {
1010
this.commit = commit;
1111
this.tag = tag;
1212
this.distance = distance;
13-
this.foundTag = foundTag;
13+
this.tagFound = tagFound;
1414
}
1515

1616
public String getCommit() {
@@ -21,12 +21,16 @@ public String getTag() {
2121
return tag;
2222
}
2323

24+
public boolean isTagFound() {
25+
return tagFound;
26+
}
27+
2428
public int getDistance() {
2529
return distance;
2630
}
2731

2832
public int getDistanceOrZero() {
29-
return foundTag ? distance : 0;
33+
return tagFound ? distance : 0;
3034
}
3135

3236
@Override

0 commit comments

Comments
 (0)