Skip to content
Snippets Groups Projects
Commit 57b6e52d authored by Georg Seibt's avatar Georg Seibt :nerd:
Browse files

add getName() method to Repository

parent c8ad9921
No related branches found
No related tags found
No related merge requests found
......@@ -270,6 +270,15 @@ public class Repository {
return dir;
}
/**
* Returns the name of the directory this {@link Repository} is based in.
*
* @return the name of the {@link Repository}
*/
public String getName() {
return getDir().getName();
}
@Override
public boolean equals(Object o) {
if (this == o) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment