gitea/routers/web
Alexander McRae aba96f65cd
Use `git diff-tree` for `DiffFileTree` on diff pages (#33514)
Modify Diff View FileTree to show all files

## Changes

* removes Show Status button on diff
* uses `git diff-tree` to generate the file tree for the diff
* doesn't reload the diff tree each time we load more files in the
preview
* selecting and unloaded file will keep loading until that file is
loaded
* removes `DiffFileList.vue` and "Show Stats" in diff options

## Open Questions

* selecting and unloaded file will keep loading until that file is
loaded. Is this behaviour okay? It matches what github does.

### Demo

In this demo I set `git.MAX_GIT_DIFF_FILES=1` in my `app.ini` to
demonstrate a worst case example. In most cases the behaviour isn't
nearly as jarring as we load a bunch of files at a time.


https://github.com/user-attachments/assets/72f29663-d6fc-472d-94fa-7fb5950c2836

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-28 00:58:25 +00:00
..
admin Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
auth Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
devtest Always show the "rerun" button for action jobs (#33692) 2025-02-24 08:40:46 +00:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
explore Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
feed Add pubdate for repository rss and add some tests (#33411) 2025-01-27 23:58:46 +08:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
org Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
repo Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2025-02-28 00:58:25 +00:00
shared Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
user Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00
base.go Prepare for support performance trace (#33286) 2025-01-15 20:05:18 +00:00
githttp.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
goget.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
home.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
swagger_json.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
web.go Always show the "rerun" button for action jobs (#33692) 2025-02-24 08:40:46 +00:00
webfinger.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00