Skip to content

Commit a050007

Browse files
author
Vladimir Kotal
committed
add toString() for nicer representation in progress logging
1 parent b93c489 commit a050007

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/Repository.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ public abstract class Repository extends RepositoryInfo {
9999
@NotNull
100100
abstract boolean hasHistoryForDirectories();
101101

102+
public String toString() {
103+
return this.getDirectoryName();
104+
}
105+
102106
/**
103107
* Get the history for the specified file or directory.
104108
* It is expected that {@link History#getRenamedFiles()} and {@link HistoryEntry#getFiles()} are empty for files.

0 commit comments

Comments
 (0)