mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-06 04:10:52 +01:00
Collapse folders with only one child folder (#1951)
Collapses a folder in code view which only has another folder as its only child. This lets you access a sub-folder which has content directly instead of navigating down the folder tree by clicking every folder separately. Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
committed by
GitHub
parent
8d9c18c23c
commit
44f0046f25
@@ -167,7 +167,11 @@ public class HgFileviewCommand extends AbstractCommand
|
||||
|
||||
HgInputStream stream = launchStream();
|
||||
|
||||
return new HgFileviewCommandResultReader(stream, disableLastCommit).parseResult();
|
||||
try {
|
||||
return new HgFileviewCommandResultReader(stream, disableLastCommit).parseResult();
|
||||
} finally {
|
||||
stream.close();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user