mirror of https://github.com/go-gitea/gitea.git
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.
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 | 3 weeks ago | |
setting | 4 weeks ago | |
activity.go | 3 months ago | |
attachment.go | 4 weeks ago | |
blame.go | 4 weeks ago | |
branch.go | 4 weeks ago | |
cherry_pick.go | 4 weeks ago | |
code_frequency.go | 2 months ago | |
commit.go | 2 weeks ago | |
compare.go | 2 weeks ago | |
contributors.go | 2 months ago | |
download.go | 4 weeks ago | |
editor.go | 4 weeks ago | |
editor_test.go | 3 months ago | |
find.go | 3 months ago | |
fork.go | 4 weeks ago | |
githttp.go | 3 weeks ago | |
githttp_test.go | 1 year ago | |
helper.go | 4 weeks ago | |
issue.go | 4 weeks ago | |
issue_comment.go | 4 weeks ago | |
issue_content_history.go | 4 weeks ago | |
issue_dependency.go | 4 weeks ago | |
issue_label.go | 4 weeks ago | |
issue_label_test.go | 2 months ago | |
issue_list.go | 4 weeks ago | |
issue_lock.go | 1 year ago | |
issue_new.go | 4 weeks ago | |
issue_page_meta.go | 4 weeks ago | |
issue_pin.go | 4 weeks ago | |
issue_poster.go | 2 months ago | |
issue_stopwatch.go | 4 weeks ago | |
issue_suggestions.go | 1 month ago | |
issue_test.go | 2 years ago | |
issue_timetrack.go | 4 weeks ago | |
issue_view.go | 4 weeks ago | |
issue_watch.go | 4 weeks ago | |
main_test.go | 1 year ago | |
middlewares.go | 2 months ago | |
migrate.go | 4 weeks ago | |
milestone.go | 4 weeks ago | |
packages.go | 2 months ago | |
patch.go | 1 month ago | |
projects.go | 4 weeks ago | |
projects_test.go | 3 months ago | |
pull.go | 2 weeks ago | |
pull_review.go | 4 weeks ago | |
pull_review_test.go | 2 months ago | |
recent_commits.go | 2 months ago | |
release.go | 4 weeks ago | |
release_test.go | 2 months ago | |
render.go | 4 weeks ago | |
repo.go | 4 weeks ago | |
search.go | 4 weeks ago | |
star.go | 1 month ago | |
topic.go | 1 year ago | |
transfer.go | 1 month ago | |
treelist.go | 2 weeks ago | |
view.go | 4 weeks ago | |
view_file.go | 2 months ago | |
view_home.go | 1 month ago | |
view_readme.go | 2 months ago | |
view_test.go | 2 years ago | |
watch.go | 1 month ago | |
webgit.go | 1 month ago | |
wiki.go | 4 weeks ago | |
wiki_test.go | 2 months ago |