]> source.dussan.org Git - gitea.git/commit
make `show stats` work when only one file changed (#32244)
authora1012112796 <1012112796@qq.com>
Mon, 14 Oct 2024 21:23:20 +0000 (05:23 +0800)
committerGitHub <noreply@github.com>
Mon, 14 Oct 2024 21:23:20 +0000 (21:23 +0000)
commitc4b2808b896dd86323c6a0d119c8cf24752d4d8a
tree4af0e47c27e8e654a5f0b763e4136a10d48fd097
parent81aec6d621a3ea0dfb02d3b4d20b9be77c30c6ab
make `show stats` work when only one file changed (#32244)

fix https://github.com/go-gitea/gitea/issues/32226

in https://github.com/go-gitea/gitea/pull/27775 , it do some changes to
only show diff file tree when more than one file changed. But looks it
also break the `diff-file-list` logic, which looks not expected change.
so try fix it.

/cc @silverwind

example view:

![image](https://github.com/user-attachments/assets/281e9c4f-a269-4d36-94eb-a132058aea87)

Signed-off-by: a1012112796 <1012112796@qq.com>
web_src/js/features/repo-diff-filetree.ts
web_src/js/features/repo-diff.ts