aboutsummaryrefslogtreecommitdiffstats
path: root/models/git_diff.go
Commit message (Collapse)AuthorAgeFilesLines
* Update code.gitea.io/git (#3482)Ethan Koenig2018-02-101-2/+10
|
* Fix Uninitialized variable in ParsePatch (#3156)Kim "BKC" Carlbäcker2017-12-121-1/+1
|
* Improve memory usage when reaching diff limits (#2990)Duncan Ogilvie2017-11-291-12/+20
| | | Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
* Fix diff of renamed and modified file (#1967)Ethan Koenig2017-06-141-7/+6
|
* fixes pull request hanging indefinitely when it contains normal and LFS file ↵Kuba Tyszko2017-04-031-1/+0
| | | | pointers (#1425)
* Refactor process package and introduce ProcessManager{} with tests (#75)Matthias Loibl2017-01-171-2/+2
| | | | | | | | | | * Add a process.Manager singleton with process.GetManager() * Use process.GetManager everywhere * Fix godoc comments for process module * Increment process counter id after locking the mutex
* Fix typos in models/ (#576)Ethan Koenig2017-01-051-8/+8
|
* Git LFS support v2 (#122)Fabian Zaremba2016-12-261-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Import github.com/git-lfs/lfs-test-server as lfs module base Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198 Removed: Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go .dockerignore .gitignore README.md * Remove config, add JWT support from github.com/mgit-at/lfs-test-server Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83 * Add LFS settings * Add LFS meta object model * Add LFS routes and initialization * Import github.com/dgrijalva/jwt-go into vendor/ * Adapt LFS module: handlers, routing, meta store * Move LFS routes to /user/repo/info/lfs/* * Add request header checks to LFS BatchHandler / PostHandler * Implement LFS basic authentication * Rework JWT secret generation / load * Implement LFS SSH token authentication with JWT Specification: https://github.com/github/git-lfs/tree/master/docs/api * Integrate LFS settings into install process * Remove LFS objects when repository is deleted Only removes objects from content store when deleted repo is the only referencing repository * Make LFS module stateless Fixes bug where LFS would not work after installation without restarting Gitea * Change 500 'Internal Server Error' to 400 'Bad Request' * Change sql query to xorm call * Remove unneeded type from LFS module * Change internal imports to code.gitea.io/gitea/ * Add Gitea authors copyright * Change basic auth realm to "gitea-lfs" * Add unique indexes to LFS model * Use xorm count function in LFS check on repository delete * Return io.ReadCloser from content store and close after usage * Add LFS info to runWeb() * Export LFS content store base path * LFS file download from UI * Work around git-lfs client issue with unauthenticated requests Returning a dummy Authorization header for unauthenticated requests lets git-lfs client skip asking for auth credentials See: https://github.com/github/git-lfs/issues/1088 * Fix unauthenticated UI downloads from public repositories * Authentication check order, Finish LFS file view logic * Ignore LFS hooks if installed for current OS user Fixes Gitea UI actions for repositories tracking LFS files. Checks for minimum needed git version by parsing the semantic version string. * Hide LFS metafile diff from commit view, marking as binary * Show LFS notice if file in commit view is tracked * Add notbefore/nbf JWT claim * Correct lint suggestions - comments for structs and functions - Add comments to LFS model - Function comment for GetRandomBytesAsBase64 - LFS server function comments and lint variable suggestion * Move secret generation code out of conditional Ensures no LFS code may run with an empty secret * Do not hand out JWT tokens if LFS server support is disabled
* Integrate templates into bindata optionally (#314)Thomas Boerger2016-12-061-1/+1
| | | Integrated optional bindata for the templates
* Expand documentationsSandro Santilli2016-11-241-16/+16
|
* Lint git_diff.goSandro Santilli2016-11-241-6/+26
| | | | Semi-automatic linting (don't really document things)
* Normalize files with gofmtThibault Meyer2016-11-111-2/+2
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-6/+6
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* This one I overlooked beforeSandro Santilli2016-11-071-4/+4
|
* More MixedCase constsSandro Santilli2016-11-071-29/+29
|
* Replace gogits/git-module dependency with go-gitea/git (#94)Sandro Santilli2016-11-061-1/+1
| | | | | | | | * Replace gogits/git-module dependency with go-gitea/git Fixes #92 * Remove git alias for git module import (not needed)
* Fix imports found by goimports.Matthias Loibl2016-11-051-6/+4
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-5/+5
|
* #3464 add diff signs which does not have inline diffUnknwon2016-08-161-2/+2
|
* #3464 reproduce diff signsUnknwon2016-08-161-1/+10
| | | | Commited wrong file.
* Web editor: improve edit file and diff previewUnknwon2016-08-141-1/+1
|
* Improve diff highlight (#3390)Andrey Nering2016-08-071-28/+54
| | | | | | - 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)
* #3345 dump content directly to HTTP ResponseWriterUnknwon2016-07-301-13/+23
|
* Diff patch (#3345)Dennis Chen2016-07-301-2/+46
| | | | | | | | | | | | | | | | * 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>
* add IsSubmodule field to DiffFile and hide view file button on diff page for ↵Siarhei Navatski2016-07-231-1/+5
| | | | submodules (#3097)
* Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174)Andrey Nering2016-06-291-22/+23
|
* Little refactoring of diff highlight.Andrey Nering2016-02-211-5/+1
| | | | Moving cache variable to template instead of in the struct.
* Enable sintax highlighting on diff view. Close #733Andrey Nering2016-02-041-0/+9
|
* Refactoring of inline diff computing to prevent empty diff box. Fix #2489Andrey Nering2016-01-271-31/+30
|
* roll back a small changeUnknwon2016-01-091-1/+2
|
* minor fix to #2335Unknwon2016-01-091-23/+32
|
* Fix: now highlights in diff view are getting the correct lines.Andrey Nering2016-01-081-22/+18
|
* Semantic fixes.Andrey Nering2016-01-071-11/+11
|
* Declaring specific types for enums constants.Andrey Nering2016-01-061-14/+21
| | | | | This makes the code more strict since you can't assign or compare values of different types without proper cast.
* Highlighting differences of lines in the diff view.Andrey Nering2016-01-061-0/+85
|
* #2185 fall back to use custom chardet libUnknwon2015-12-311-2/+2
|
* rename import pathUnknwon2015-12-151-1/+1
|
* fix huge diff hangsUnknwon2015-12-141-0/+2
|
* #2185 use Go sub-repo to detect encodingUnknwon2015-12-131-2/+2
|
* #2071 Diff is not showing full content when has super long one lineUnknwon2015-12-021-54/+72
|
* better escape char handleUnknwon2015-11-201-5/+5
|
* rename fieldsUnknwon2015-11-031-1/+1
|
* #1838 update merge base before generate new patchUnknwon2015-11-031-3/+1
|
* fix #1078Unknwon2015-11-021-12/+28
|
* #1790 fast return for too large diffUnknwon2015-10-171-11/+3
|
* more on #966Unknwon2015-08-201-0/+6
|
* Partial impl of git diff encodingVladimir Vissoultchev2015-07-291-20/+23
|
* Allow spaces in file/dir names on parsing git diffVladimir Vissoultchev2015-07-281-2/+2
|
* Link to previous commited source file (diff.view_file button) instead of ↵Tony Tsang2015-02-061-0/+8
| | | | returning 404 for deleted files.
* Replace mahonia with the standard functions in the Golang Sub-repositoriesPeter Smit2014-12-221-6/+12
|