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.
Filip Navara 2af67f6044 Improve listing performance by using go-git (#6478)
* Use go-git for tree reading and commit info lookup.

Signed-off-by: Filip Navara <navara@emclient.com>

* Use TreeEntry.IsRegular() instead of ObjectType that was removed.

Signed-off-by: Filip Navara <navara@emclient.com>

* Use the treePath to optimize commit info search.

Signed-off-by: Filip Navara <navara@emclient.com>

* Extract the latest commit at treePath along with the other commits.

Signed-off-by: Filip Navara <navara@emclient.com>

* Fix listing commit info for a directory that was created in one commit and never modified after.

Signed-off-by: Filip Navara <navara@emclient.com>

* Avoid nearly all external 'git' invocations when doing directory listing (.editorconfig code path is still hit).

Signed-off-by: Filip Navara <navara@emclient.com>

* Use go-git for reading blobs.

Signed-off-by: Filip Navara <navara@emclient.com>

* Make SHA1 type alias for plumbing.Hash in go-git.

Signed-off-by: Filip Navara <navara@emclient.com>

* Make Signature type alias for object.Signature in go-git.

Signed-off-by: Filip Navara <navara@emclient.com>

* Fix GetCommitsInfo for repository with only one commit.

Signed-off-by: Filip Navara <navara@emclient.com>

* Fix PGP signature verification.

Signed-off-by: Filip Navara <navara@emclient.com>

* Fix issues with walking commit graph across merges.

Signed-off-by: Filip Navara <navara@emclient.com>

* Fix typo in condition.

Signed-off-by: Filip Navara <navara@emclient.com>

* Speed up loading branch list by keeping the repository reference (and thus all the loaded packfile indexes).

Signed-off-by: Filip Navara <navara@emclient.com>

* Fix lising submodules.

Signed-off-by: Filip Navara <navara@emclient.com>

* Fix build

Signed-off-by: Filip Navara <navara@emclient.com>

* Add back commit cache because of name-rev

Signed-off-by: Filip Navara <navara@emclient.com>

* Fix tests

Signed-off-by: Filip Navara <navara@emclient.com>

* Fix code style

* Fix spelling

* Address PR feedback

Signed-off-by: Filip Navara <navara@emclient.com>

* Update vendor module list

Signed-off-by: Filip Navara <navara@emclient.com>

* Fix getting trees by commit id

Signed-off-by: Filip Navara <navara@emclient.com>

* Fix remaining unit test failures

* Fix GetTreeBySHA

* Avoid running `git name-rev` if not necessary

Signed-off-by: Filip Navara <navara@emclient.com>

* Move Branch code to git module

* Clean up GPG signature verification and fix it for tagged commits

* Address PR feedback (import formatting, copyright headers)

* Make blob lookup by SHA working

* Update tests to use public API

* Allow getting content from any type of object through the blob interface

* Change test to actually expect the object content that is in the GIT repository

* Change one more test to actually expect the object content that is in the GIT repository

* Add comments
5 years ago
..
branch Display branch name in delete branch confirmation modal. (#5654) 6 years ago
diff Improve listing performance by using go-git (#6478) 5 years ago
editor Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 5 years ago
issue Fix 6655 - there is no need to EscapePound .Link as it is already escaped (#6656) 5 years ago
pulls Add more title attributes on shortened names (#6647) 5 years ago
release Properly escape release attachment URL (#6512) 5 years ago
settings Telegram webhook (#4227) 5 years ago
wiki Improve issue autolinks (#6273) 5 years ago
activity.tmpl Restrict permission check on repositories and fix some problems (#5314) 6 years ago
branch_dropdown.tmpl Escape branch name in dropdown menu (#3691) 6 years ago
commit_status.tmpl Add `noreferrer` to rel='noopener` for <a> tags (#4328) 6 years ago
commits.tmpl Responsive view (#2750) 7 years ago
commits_table.tmpl Support search operators for commits search (#6479) 5 years ago
create.tmpl Add more title attributes on shortened names (#6647) 5 years ago
empty.tmpl Feature: Archive repos (#5009) 6 years ago
forks.tmpl #3348 always use relative avatar link in the template 8 years ago
graph.tmpl Fix issue link rendering in commit messages (#2897) 7 years ago
header.tmpl Fix fork button (#6223) 5 years ago
home.tmpl Add more title attributes on shortened names (#6647) 5 years ago
migrate.tmpl Add more title attributes on shortened names (#6647) 5 years ago
search.tmpl Don't warn users about *every* dirty form (#3707) 6 years ago
sub_menu.tmpl Add ui class to sub_menu to fix style in arc-green (#6477) 5 years ago
user_cards.tmpl Add `noreferrer` to rel='noopener` for <a> tags (#4328) 6 years ago
view_file.tmpl Serve audio files using HTML5 audio tag (#5221) 6 years ago
view_list.tmpl Add title attributes to all items in the repo list viewer (#6258) 5 years ago
watchers.tmpl #1692 APIs: Users Followers 9 years ago