Mura Li
d43562c97e
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
7 years ago
zeripath
1b4bffde8b
Prevent server 500 on compare branches with no common history ( #6555 )
* Prevent 500 if there is no common mergebase
* Prevent creation of PR with no history
7 years ago
Lunny Xiao
f47714c501
move code.gitea.io/git to code.gitea.io/gitea/modules/git ( #6364 )
* move code.gitea.io/git to code.gitea.io/gitea/modules/git
* fix imports
* fix fmt
* fix misspell
* remove wrong tests data
* fix unit tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* enable Debug to trace the failure tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* comment commit count tests since git clone depth is 50
* fix tests
* update from code.gitea.io/git
* revert change to makefile
7 years ago
Unknwon
7c3baef786
move out git module and #1573 send push hook
10 years ago
Adam Strzelecki
381f571952
Allow pre-receive hook customization
This hook can be used for example to reject too large commits and it is
executed before "update" hook, used exclusively by Gogs to update its state.
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
10 years ago
Unknwon
fe32140ce0
#2008 more supported git hooks
10 years ago
Unknwon
a0a4125989
fix #1383
10 years ago
Unknwon
8b6b23a40d
better escape char handle
10 years ago
Unknwon
95b10e3b07
fix #1119 and data race in timming tasks
10 years ago
Unknwon
9f6045b236
Merge pull request #1994 from arthuroy/develop
Fix #1965 - the hyperlink and the display name of the branch
10 years ago
Unknwon
bfcd3d036f
#1742 Update default branch in git repository while change in web view
10 years ago
Arthur Ouyang
92fa62691e
Use refStr[len("refs/heads/"):] instead of refStr[11:] and fix error
Fix #1965
10 years ago
Arthur Ouyang
cd18c572ac
Use refStr[11:] instead of TrimPrefix
Fix #1965
10 years ago
Arthur Ouyang
a5f57ea3ff
Fix #1965 - the hyperlink and the display name of the branch
The hyperlink and the display name of the branch if the branch is in a folder or the branch name has '#'
10 years ago
Unknwon
75b80c336f
#1922 Pull request fail to merge with BIN
10 years ago
Unknwon
12cad18886
rename fields
10 years ago
Unknwon
b09f487d65
#1838 update merge base before generate new patch
10 years ago
Matthias Pioch
a33352a8e0
fix workaround for reverse proxy, ssh, submodule
10 years ago
Matthias Pioch
46faac0c6b
workaround for reverse proxy, ssh, submodule
10 years ago
Unknwon
396d0babfb
work on #1830
10 years ago
Unknwon
1876645e3b
print out git version
10 years ago
Unknwon
9d579819e5
save PR info as patch and minor fix on PR
10 years ago
Unknwon
913287abc9
basic PR feature
10 years ago
Unknwon
249e492b6b
finish PR UI
10 years ago
Unknwon
315b183c66
work on PR conversation
10 years ago
Unknwon
c6e957c846
more clear error
10 years ago
Unknwon
b892366780
new repo git hooks UI
10 years ago
Unknwon
01dd462e27
new commits table
10 years ago
Unknwon
7366a55de4
fix #966
10 years ago
Unknwon
d12a83f985
list view: issue, label, milestone
10 years ago
Unknwon
f20987df0e
fix #1169
- prevent create reop on existed path
10 years ago
Filippo Valsorda
0d8a70e957
Handle submodules without a .gitmodules entry - fix #1023
11 years ago
Unknwon
a02649fcd4
modules/git/signature.go: parse date foramt #663
11 years ago
Unknwon
c16693e217
modules/git: able to parse RFC1123Z date format #663
11 years ago
Unknwon
3005c4f6db
Fix diff css style, hooks \r char
11 years ago
Unknwon
64c68220d2
Fix #264
11 years ago
Linquize
67c44b7d27
If git >= 2.0, sort tags in descending order by version number
11 years ago
Unknwon
2a031c1365
Fix #515
11 years ago
Unknwon
ebb05475ed
Fix #495 and cannot view repository by tag
11 years ago
Unknwon
3f707b3f32
Add basic submodule support
11 years ago
lunnyxiao
7df60af60e
submodule support and closed #478
11 years ago
lunnyxiao
150eef93b2
add submodule basic support & buf fixed #478
11 years ago
Unknwon
ae3639868e
Quick fix on #476
11 years ago
Unknwon
62f21ff3ed
Work on #476
11 years ago
Unknwon
0d9c41be7d
Work on #476
11 years ago
Unknwon
9a1d5d2489
Finish new web hook pages
11 years ago
Unknwon
5c4bc3c848
Huge updates!!!!! Be careful to merge!!!!
11 years ago
Unknwon
8dd07c0ddd
New UI merge in progress
11 years ago