We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bdfbaa commit e06a576Copy full SHA for e06a576
opengrok-web/src/main/java/org/opengrok/web/DiffData.java
@@ -96,7 +96,7 @@ public String getRev(int index) {
96
* @return shortened revision string (maximum 8 characters) with ".." appended
97
*/
98
public String getShortRev(int index) {
99
- return rev[index].substring(0, Integer.min(rev[index].length(), 8)) + "..";
+ return rev[index].substring(0, Integer.min(rev[index].length(), 8)) + (rev[index].length() > 8 ? ".." : "");
100
}
101
102
public String[] getFile(int index) {
0 commit comments