diff options
author | silverwind <me@silverwind.io> | 2023-10-25 05:09:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 05:09:18 +0200 |
commit | 572f0963edc71239634ee782a3c69213479f34ba (patch) | |
tree | cfb593e2358e9f06a5aeb6503b646adb5591e2ea /web_src/js/components/DiffFileTreeItem.vue | |
parent | fba4ee7efcd0baead1611c0885468c15916cc7e1 (diff) | |
download | gitea-572f0963edc71239634ee782a3c69213479f34ba.tar.gz gitea-572f0963edc71239634ee782a3c69213479f34ba.zip |
Only show diff file tree when more than one file changed (#27775)
When 0 or 1 files changed in a diff, we don't need to show a file tree.
This behaviour matches GitHub. Single-file diff after this change, note
absence of button:
<img width="1234" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/3618438b-e655-42a3-989f-f299267b2b8b">
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'web_src/js/components/DiffFileTreeItem.vue')
0 files changed, 0 insertions, 0 deletions