You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web/repo
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>
2 weeks ago
..
actions Fix Untranslated Text on Actions Page (#33635) 3 weeks ago
setting Refactor error system (#33610) 4 weeks ago
activity.go Refactor template & test related code (#32938) 3 months ago
attachment.go Refactor error system (#33610) 4 weeks ago
blame.go Refactor error system (#33610) 4 weeks ago
branch.go Refactor error system (#33610) 4 weeks ago
cherry_pick.go Refactor error system (#33610) 4 weeks ago
code_frequency.go Fix incorrect ref commit ID usage (#33331) 2 months ago
commit.go Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2 weeks ago
compare.go Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2 weeks ago
contributors.go Fix incorrect ref commit ID usage (#33331) 2 months ago
download.go Refactor error system (#33610) 4 weeks ago
editor.go Refactor error system (#33610) 4 weeks ago
editor_test.go Clarify path param naming (#32969) 3 months ago
find.go Refactor template & test related code (#32938) 3 months ago
fork.go Refactor error system (#33610) 4 weeks ago
githttp.go Fix git empty check and HEAD request (#33690) 3 weeks ago
githttp_test.go Fix http protocol auth (#27875) 1 year ago
helper.go Refactor error system (#33610) 4 weeks ago
issue.go Refactor error system (#33610) 4 weeks ago
issue_comment.go Refactor error system (#33610) 4 weeks ago
issue_content_history.go Refactor error system (#33610) 4 weeks ago
issue_dependency.go Refactor error system (#33610) 4 weeks ago
issue_label.go Refactor error system (#33610) 4 weeks ago
issue_label_test.go Remove duplicate "ResponseWriter.Status" method (#33346) 2 months ago
issue_list.go Refactor error system (#33610) 4 weeks ago
issue_lock.go Move context from modules to services (#29440) 1 year ago
issue_new.go Refactor error system (#33610) 4 weeks ago
issue_page_meta.go Fix PR's target branch dropdown (#33589) 4 weeks ago
issue_pin.go Move issue pin to an standalone table for querying performance (#33452) 4 weeks ago
issue_poster.go Support public code/issue access for private repositories (#33127) 2 months ago
issue_stopwatch.go Refactor error system (#33610) 4 weeks ago
issue_suggestions.go Rework suggestion backend (#33538) 1 month ago
issue_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_timetrack.go Refactor error system (#33610) 4 weeks ago
issue_view.go Move issue pin to an standalone table for querying performance (#33452) 4 weeks ago
issue_watch.go Refactor error system (#33610) 4 weeks ago
main_test.go make writing main test easier (#27270) 1 year ago
middlewares.go Refactor context repository (#33202) 2 months ago
migrate.go Refactor error system (#33610) 4 weeks ago
milestone.go Refactor error system (#33610) 4 weeks ago
packages.go Refactor context repository (#33202) 2 months ago
patch.go Support choose email when creating a commit via web UI (more) (#33445) 1 month ago
projects.go Refactor error system (#33610) 4 weeks ago
projects_test.go Clarify path param naming (#32969) 3 months ago
pull.go Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2 weeks ago
pull_review.go Refactor error system (#33610) 4 weeks ago
pull_review_test.go Refactor older tests to use testify (#33140) 2 months ago
recent_commits.go Fix incorrect ref commit ID usage (#33331) 2 months ago
release.go Refactor error system (#33610) 4 weeks ago
release_test.go Validate that the tag doesn't exist when creating a tag via the web (#33241) 2 months ago
render.go Refactor error system (#33610) 4 weeks ago
repo.go Refactor error system (#33610) 4 weeks ago
search.go enable literal string for code search (#33590) 4 weeks ago
star.go Refactor web route handler (#33488) 1 month ago
topic.go Move context from modules to services (#29440) 1 year ago
transfer.go Refactor web route handler (#33488) 1 month ago
treelist.go Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2 weeks ago
view.go Refactor error system (#33610) 4 weeks ago
view_file.go Simplify context ref name (#33267) 2 months ago
view_home.go Fix "redirect link" handling (#33440) 1 month ago
view_readme.go Refactor context repository (#33202) 2 months ago
view_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
watch.go Refactor web route handler (#33488) 1 month ago
webgit.go Support choose email when creating a commit via web UI (more) (#33445) 1 month ago
wiki.go Refactor error system (#33610) 4 weeks ago
wiki_test.go Remove duplicate "ResponseWriter.Status" method (#33346) 2 months ago