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.
forgejo/routers
Mura Li 3186ef554c Support search operators for commits search (#6479)
* Support searching commits with prefix syntax

For now, support auther: committer:
When more than one prefix is supplied is presented, the result is the union.
When different prefixes are supplied, the result is the intersection.

For example,
"author:alice author:bob"
=> the result is all commits authored by Alice OR Bob

"hello committer:alice"
=> the result is all commits committed by Alice AND has the keyword
'hello' in the message.

Note that there should NOT have any space after the colon(:) of the prefix.
For example,
"author:bill" => correct
"author: bill" => wrong

* Remove unneeded logging

* Add missing files of test repository

* Add missing repo_unit entries to test fixtures

* Update test cases

* Add tooltip for commits search button

* Update tooltip text

I have no idea about how to format it with line breaks.

* Make the usage example more real

* Add a test case

* Add new options struct for SearchCommits

* Prefer len(s) > 0 over s != ""

* Add NewSearchCommitsOptions
5 years ago
..
admin Better logging (#6038) (#6095) 5 years ago
api/v1 fix bug user search API pagesize didn't obey ExplorePagingNum (#6579) 5 years ago
dev Make time diff translatable (#2057) 7 years ago
org Better logging (#6038) (#6095) 5 years ago
private move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
repo Support search operators for commits search (#6479) 5 years ago
routes fix upload attachments (#6481) 5 years ago
user Show last commit status in pull request lists (#6465) 5 years ago
utils Slack webhook channel name cannot be empty or just contain an hashtag (#4786) 6 years ago
home.go Clean up various use of escape/unescape functions for URL generation (#6334) 5 years ago
init.go Better logging (#6038) (#6095) 5 years ago
install.go Better logging (#6038) (#6095) 5 years ago
metrics.go Fix metrics auth token detection (#6006) 5 years ago
swagger_json.go Swagger.v1.json template (#3572) 6 years ago