2
0
Commit Graph

48 Commits

Author SHA1 Message Date
Sandro Santilli
33bd2e4f90 This one I overlooked before 2016-11-07 17:33:03 +01:00
Sandro Santilli
353e6c4cfc More MixedCase consts 2016-11-07 17:24:59 +01:00
Sandro Santilli
2cc11efdcf Replace gogits/git-module dependency with go-gitea/git (#94)
* Replace gogits/git-module dependency with go-gitea/git

Fixes #92

* Remove git alias for git module import (not needed)
2016-11-06 11:18:34 -02:00
Matthias Loibl
b2f20b4726 Fix imports found by goimports. 2016-11-05 17:56:35 +01:00
Rémy Boulanouar
61ec6729e6 Change import reference to match gitea instead of gogs (#37) 2016-11-03 10:29:56 -02:00
Unknwon
d965c6f565 #3464 add diff signs which does not have inline diff 2016-08-16 07:37:28 -07:00
Unknwon
4d71628d3b #3464 reproduce diff signs
Commited wrong file.
2016-08-16 07:33:53 -07:00
Unknwon
e39f53bab8 Web editor: improve edit file and diff preview 2016-08-14 23:52:24 -07:00
Andrey Nering
6eee0a680e Improve diff highlight (#3390)
- Try to reduce memory allocations
- Add possibility to disable diff highlight (can improve performance for large diffs)
- Tweaking with cost for prettier (cleaner) diffs
- Do not calculate diff when the number of removed lines in a block is not equal to the number of added lines (this usually resulted in ugly diffs)
2016-08-07 09:49:47 -07:00
Unknwon
d90a2e0276 #3345 dump content directly to HTTP ResponseWriter 2016-07-30 23:39:58 +08:00
Dennis Chen
ff9c77c1f9 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>
2016-07-30 23:02:22 +08:00
Siarhei Navatski
1104e1785a add IsSubmodule field to DiffFile and hide view file button on diff page for submodules (#3097) 2016-07-23 02:18:56 +08:00
Andrey Nering
e87fcdf88e Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174) 2016-06-29 23:11:00 +08:00
Andrey Nering
5454e51a24 Little refactoring of diff highlight.
Moving cache variable to template instead of in the struct.
2016-02-21 18:45:24 -03:00
Andrey Nering
594c929461 Enable sintax highlighting on diff view. Close #733 2016-02-04 18:21:47 -02:00
Andrey Nering
ddcce651a6 Refactoring of inline diff computing to prevent empty diff box. Fix #2489 2016-01-27 18:54:08 -02:00
Unknwon
b6f671b0f4 roll back a small change 2016-01-09 15:04:28 +08:00
Unknwon
a4f9920a5f minor fix to #2335 2016-01-09 14:51:17 +08:00
Andrey Nering
89a90c8f02 Fix: now highlights in diff view are getting the correct lines. 2016-01-08 16:33:27 -02:00
Andrey Nering
5f1ef5f736 Semantic fixes. 2016-01-07 11:27:35 -02:00
Andrey Nering
1030aabeaf Declaring specific types for enums constants.
This makes the code more strict since you can't assign or compare
values of different types without proper cast.
2016-01-06 18:00:40 -02:00
Andrey Nering
d9564377bf Highlighting differences of lines in the diff view. 2016-01-06 17:46:56 -02:00
Unknwon
535758a58d #2185 fall back to use custom chardet lib 2015-12-31 22:13:47 -05:00
Unknwon
adb4784fe0 rename import path 2015-12-15 17:25:45 -05:00
Unknwon
91095e02cc fix huge diff hangs 2015-12-14 09:38:21 -05:00
Unknwon
9e27955942 #2185 use Go sub-repo to detect encoding 2015-12-13 19:56:33 -05:00
Unknwon
757bdc8ea8 #2071 Diff is not showing full content when has super long one line 2015-12-02 01:10:13 -05:00
Unknwon
0b652fab2f better escape char handle 2015-11-20 01:18:50 -05:00
Unknwon
01db8ff533 rename fields 2015-11-03 22:49:06 -05:00
Unknwon
bdebbec195 #1838 update merge base before generate new patch 2015-11-03 17:25:39 -05:00
Unknwon
99d29154c7 fix #1078 2015-11-02 19:55:24 -05:00
Unknwon
cf44f8d4c3 #1790 fast return for too large diff 2015-10-17 17:25:45 -04:00
Unknwon
85d081e80b more on #966 2015-08-20 16:08:26 +08:00
Vladimir Vissoultchev
575cc2dd48 Partial impl of git diff encoding 2015-07-29 17:55:01 +03:00
Vladimir Vissoultchev
eb0a4f8866 Allow spaces in file/dir names on parsing git diff 2015-07-28 19:48:36 +03:00
Tony Tsang
b6fb5371ce Link to previous commited source file (diff.view_file button) instead of returning 404 for deleted files. 2015-02-06 17:02:32 +08:00
Peter Smit
3af757ed77 Replace mahonia with the standard functions in the Golang Sub-repositories 2014-12-22 11:01:52 +02:00
Unknwon
9a1fe801e5 fix #711 2014-12-09 02:18:25 -05:00
lunnyxiao
ed84adb679 toutf8 improved & add max git diff lines 2014-09-17 12:03:03 +08:00
Unknwon
bba401a5dc Prepare 0.5 release 2014-09-12 19:42:11 -04:00
Christopher Brickley
00a864e693 add commit compare functionality 2014-09-01 14:56:19 -04:00
Unknwon
8dd07c0ddd New UI merge in progress 2014-07-26 00:24:27 -04:00
Unknown
097c8e05e6 Able to set timeout for process monitor 2014-07-06 17:32:36 -04:00
Unknown
f147ad619a Basic process manager 2014-06-19 01:08:03 -04:00
Unknown
6696610aea Fix zombie 2014-05-28 22:15:15 -04:00
Unknown
98dbbae2ef Fix #166 2014-05-13 12:40:32 -04:00
Unknown
c3a52f7dd0 Mirror bug fix on downloading zip 2014-04-15 20:01:20 -04:00
slene
52b4ab2aa5 update with new git 2014-04-13 09:35:36 +08:00