Unknwon
844d69143f
pkg/markup: allow match SHA1 length 7-40 ( #3321 )
6 years ago
Unknwon
aff4208244
*: rename "gogits" to "gogs"
7 years ago
Douglas Thrift
0bfce7aca4
repo/commit: fix file commit history pagination ( #4965 )
...
- The `commits_table.tmpl` pagination uses a `$.FileName` variable in
order to generate the next/previous URLs, but it seems like that
variable was no longer being populated in `renderCommits`.
7 years ago
Unknwon
4400d2fdd9
Refactoring: rename package routers -> routes
8 years ago
Unknwon
2478b87432
Refactoring: rename ctx -> c
8 years ago
Unknwon
90b9f7e08c
pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL}
8 years ago
Unknwon
0e271799f2
Refactoring: rename and simplify pkg/tool functions
8 years ago
Unknwon
edaf14f2b6
Refactoring: remove tool.TplName
8 years ago
Unknwon
6fbb984ebf
Refactoring: rename pkg/base -> pkg/tool
8 years ago
Unknwon
d05395fe90
Refactoring: rename modules -> pkg
...
Reasons to change:
1. Shorter than 'modules'
2. More generally used by other Go projects
3. Corresponds to the naming of '$GOPATH/pkg' directory
8 years ago
Unknwon
41c8e87be8
repo/commit: improve error detection
...
Response 404 not 500 for raw diff if object does not exist.
8 years ago
Unknwon
55afc1ad21
models/repo_diff: move core functions to gogits/git-module
8 years ago
Unknwon
bb86d66496
repo: rename PageIsViewCode -> PageIsViewFiles
...
Also highlight 'Files' tab when use editor.
8 years ago
Unknwon
bc630cc52b
repo/commit: able to config default commits page size ( #4230 )
...
Added config option '[ui.user] COMMITS_PAGING_NUM'.
8 years ago
Unknwon
61e2bff757
repo: commits, branches and releases should highlight files tab
8 years ago
Unknwon
c69900325d
commits: able to specify pageSize dynamically ( #3965 )
...
Usage: <url>?page={page}&pageSize={pageSize}
Also avoid/removed getting total commits count for pagination,
users are only allowed navigation by 'newer' and 'older'.
8 years ago
Andrey Nering
1d951cfc49
Fix 500 when repo has invalid .editorconfig ( #3758 )
...
Creating a notice instead
Fixes #3643
8 years ago
Unknwon
ba27d71abe
Web editor: improve edit file
8 years ago
Unknwon
f8a48ffaad
Web editor: improve code quality
8 years ago
Unknwon
6cda35a75f
#3464 reproduce diff signs
8 years ago
Unknwon
4a46613916
markdown: fix treating pure number as SHA1
...
- Detect non-exist commit and return 404 not 500
8 years ago
Andrey Nering
dbed39ba05
On showing diff/file, use the tab_width specified on .editorconfig, if any ( #3241 )
...
Closes #3182
8 years ago
Unknwon
10dc330640
#3345 dump content directly to HTTP ResponseWriter
8 years ago
Dennis Chen
dfab54d5a2
Diff patch ( #3345 )
...
* Add support for .diff and .patch
Add the ability to get text-diff and format-patch by adding .diff or
.patch in the end of a commit url. Issue #2641
* models: git_diff: various fixes
* Renames commitId to commitID.
* Writes stderr to a bytes.Buffer and displays proper error message on
command failure.
* Various style changes.
Signed-off-by: Dennis Chen <barracks510@gmail.com>
8 years ago
Andrey Nering
743d22669a
Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff ( #3174 )
8 years ago
Unknwon
60ae8ac3d2
Add route for #2846
9 years ago
Unknwon
514382e2eb
Rename module: middleware -> context
9 years ago
Andrey Nering
2bfb8bb5fd
Enable sintax highlighting on diff view. Close #733
9 years ago
Andrey Nering
5deb726f3f
Refactoring of inline diff computing to prevent empty diff box. Fix #2489
9 years ago
Andrey Nering
73474c043b
Highlighting differences of lines in the diff view.
9 years ago
Kim "BKC" Carlbäcker
8fe5d887ae
Changed name from inline to unified
9 years ago
Kim "BKC" Carlbäcker
0df39b33eb
Implement Split Diff-View
...
- Unified/Inline Diff-View Selectable
9 years ago
Unknwon
19423957b1
rename import path
9 years ago
Unknwon
9a2e43bff2
move out git module and #1573 send push hook
9 years ago
Unknwon
84a43b38cf
remove unused code
9 years ago
Unknwon
7c80eba77f
minor UI fix and fix ssh race
9 years ago
Unknwon
3b62a0fe0e
fix #1572 fix file histrory paging issue
9 years ago
Unknwon
b55499d039
go vet and fix #1890
9 years ago
Unknwon
37e0cee877
finish PR UI
9 years ago
Unknwon
8c046073a8
work on PR conversation
9 years ago
Unknwon
1ca257ad9f
rename fields
9 years ago
Unknwon
4275b3720a
finsih diff and compare
9 years ago
Unknwon
aa65761d81
new commits table
9 years ago
Tony Tsang
fc6d80d619
Link to previous commited source file (diff.view_file button) instead of returning 404 for deleted files.
10 years ago
Unknwon
37fcc8daf2
modules/base: add RenderCommitMessage with XSS-safe and special links
...
- update russian locale
10 years ago
Unknwon
c73e9057ae
Optmize git-fsck options and fix #820
10 years ago
Unknwon
9a1fe801e5
fix #711
10 years ago
dennis-smurf
528c075ad6
Added issue link rendering in commit messages
10 years ago
Unknwon
a43164877c
fix #664
10 years ago
Unknwon
21b9d5fa1f
Fix #618
10 years ago