Commit Graph

48 Commits (c511f1c6c36e697906fd4833aa24924b98c60e6a)

Author SHA1 Message Date
Sandro Santilli f14232d2e9 This one I overlooked before
Sandro Santilli f6a11e0de1 More MixedCase consts
Sandro Santilli 6e4252dad4 Replace gogits/git-module dependency with go-gitea/git ()
* Replace gogits/git-module dependency with go-gitea/git

Fixes 

* Remove git alias for git module import (not needed)
Matthias Loibl 1f44b01e2a Fix imports found by goimports.
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Unknwon b1504ed99a add diff signs which does not have inline diff
Unknwon 9349def72e reproduce diff signs
Commited wrong file.
Unknwon cd89f6c502 Web editor: improve edit file and diff preview
Andrey Nering 2772791fda Improve diff highlight ()
- 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)
Unknwon 10dc330640 dump content directly to HTTP ResponseWriter
Dennis Chen dfab54d5a2 Diff patch ()
* 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 

* 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>
Siarhei Navatski cf85e9eb7b add IsSubmodule field to DiffFile and hide view file button on diff page for submodules ()
Andrey Nering 743d22669a Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff ()
Andrey Nering d160c7e565 Little refactoring of diff highlight.
Moving cache variable to template instead of in the struct.
Andrey Nering 2bfb8bb5fd Enable sintax highlighting on diff view. Close
Andrey Nering 5deb726f3f Refactoring of inline diff computing to prevent empty diff box. Fix
Unknwon 8a93113192 roll back a small change
Unknwon 86bce4a2ae minor fix to
Andrey Nering 697b0e2aba Fix: now highlights in diff view are getting the correct lines.
Andrey Nering bf11ad19ea Semantic fixes.
Andrey Nering 81ed5c4bee 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.
Andrey Nering 73474c043b Highlighting differences of lines in the diff view.
Unknwon 4993ab1a76 fall back to use custom chardet lib
Unknwon 19423957b1 rename import path
Unknwon 50264200f0 fix huge diff hangs
Unknwon 95f9c85bcc use Go sub-repo to detect encoding
Unknwon 926e91820a Diff is not showing full content when has super long one line
Unknwon 902b578465 better escape char handle
Unknwon 3a81fdf092 rename fields
Unknwon 25ec20d525 update merge base before generate new patch
Unknwon bc82157216 fix
Unknwon 6599869f28 fast return for too large diff
Unknwon 9b42f53aa8 more on
Vladimir Vissoultchev 4917d29c12 Partial impl of git diff encoding
Vladimir Vissoultchev fac4e27882 Allow spaces in file/dir names on parsing git diff
Tony Tsang fc6d80d619 Link to previous commited source file (diff.view_file button) instead of returning 404 for deleted files.
Peter Smit 3af757ed77 Replace mahonia with the standard functions in the Golang Sub-repositories
Unknwon 9a1fe801e5 fix
lunnyxiao ed84adb679 toutf8 improved & add max git diff lines
Unknwon bba401a5dc Prepare 0.5 release
Christopher Brickley 00a864e693 add commit compare functionality
Unknwon 8dd07c0ddd New UI merge in progress
Unknown 097c8e05e6 Able to set timeout for process monitor
Unknown f147ad619a Basic process manager
Unknown 6696610aea Fix zombie
Unknown 98dbbae2ef Fix
Unknown c3a52f7dd0 Mirror bug fix on downloading zip
slene 52b4ab2aa5 update with new git