aboutsummaryrefslogtreecommitdiffstats
path: root/utils/merkletrie
Commit message (Collapse)AuthorAgeFilesLines
* fix nilOleg Kovalov2020-07-011-3/+4
|
* fix goreportcard warningsOleg Kovalov2020-07-011-1/+2
|
* plumbing: detect renames by hash and similar content in diff treeMiguel Molina2020-04-231-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit implements the rename detection algorithms used in the JGit implementation. Given a list of changes, additions and deletions are extracted and matched in two ways: - By exact hash content: all additions and deletions are grouped by the content hash and paired with the best match based on the file mode and file path. All the files that cannot be paired are kept as regular deletions and additions. - By similar content: a matrix of addition and deletion pairs with all possible combinations is created and scored by how similar the content is between both files as well as how similar the file path is. The pairs with the best score and whose score is equal or greater than a threshold are paired and turned into a rename. All the files that cannot be paired are kept as regular deletions and additions. DiffTree and DiffTreeContext will not return the changes with renames detected for compatibility reasons, although this will change in v6 so that detecting renames is the default behaviour. A new function DiffTreeWithOptions has been added to configure the parameters for the rename detection to control the score threshold, the limit of renames and whether to use similar content detection in the detection. More information: - https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java - https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit/src/org/eclipse/jgit/diff/SimilarityRenameDetector.java - https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit/src/org/eclipse/jgit/diff/SimilarityIndex.java Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
* *: migration from gopkg to go modulesMáximo Cuadros2020-03-1019-37/+37
|
* Fix typos in comments, variables and function namesOleksandr Redko2019-10-246-12/+12
| | | | Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
* *: avoid unnecessary conversionsChristian Muehlhaeuser2019-07-292-3/+3
| | | | | | | No need to convert these values, they're already of the right type. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit a1d8a7ac8bd0e4aff0f27dbb8bb37b8bd13a1346)
* Remove Unicode normalization in difftreeVadim Markovtsev2019-02-113-10/+31
| | | | | | Fixes #1057 Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
* plumbing: add context to allow cancel on diff/patch computingMarc Barussaud2018-07-022-0/+82
| | | | Signed-off-by: Marc Barussaud <marc.barussaud@orange.com>
* update to go-billy.v4 and go-git-fixtures.v3Máximo Cuadros2017-11-232-3/+4
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* examples,plumbing,utils: typo fixesferhat elmas2017-11-203-3/+3
|
* utils: merkletrie, filesystem fix symlinks to dirMáximo Cuadros2017-11-201-0/+36
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* Fix support for dir symlinksDmitry Frank2017-11-101-0/+4
|
* worktree: normalized string comparison testsMáximo Cuadros2017-08-021-1/+11
|
* Normalize filenames before comparing.Josh Betz2017-07-311-1/+7
| | | | | | | | | Some multibyte characters can have multiple representations. Before comparing strings, we need to normalize them. In this case we're normalizing to normalized form C, but it shouldn't matter as long as both strings are normalized to the same form. Fixes https://github.com/src-d/go-git/issues/495
* utils: merkletrie filesystem based on path, and not in filepathMáximo Cuadros2017-07-193-14/+14
|
* utils: merkletrie fix test on windowsMáximo Cuadros2017-07-182-16/+23
|
* remote: fix Worktree.Status on empty repositoryMáximo Cuadros2017-07-132-2/+13
|
* utils: merkletrie support for symlinksMáximo Cuadros2017-06-182-6/+54
|
* *: upgrade to go-billy.v3, mergeMáximo Cuadros2017-06-182-5/+5
|
* *: applying new index.Index changesMáximo Cuadros2017-04-262-9/+13
|
* fix format string issues as found by go vetSantiago M. Mola2017-04-263-5/+5
|
* worktree: reset and checkout support for submodulesMáximo Cuadros2017-04-152-12/+81
|
* merkletrie: filesystem and index speedup and documentationMáximo Cuadros2017-04-114-211/+179
|
* merkletrie: node support for billy filesystemsMáximo Cuadros2017-04-112-0/+255
|
* merkletrie: node support for index fileMáximo Cuadros2017-04-112-0/+229
|
* project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-0715-22/+22
| | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release.
* Fix issue 275 (edited) (#276)Alberto Cortés2017-02-228-81/+302
| | | | | | | | | Fix #275 . It was not possible to write a test for this issue as the original fsnoder didn't support filenames with length > 1. Therefore this patch has 3 commits: add support for long filenames in fsnoder. add a test case for the issue using the new long filenames from step 1. fix the issue by comparing paths level by level instead of lexigographically over the whole path.
* merkletrie: fix const action type fuck up (#268)Alberto Cortés2017-02-142-1/+12
| | | | Action constants (Insert, Delete, Modify) have type int instead of Action. This patch make them Actions.
* simplify noder mocks in test (#265)Alberto Cortés2017-02-132-18/+4
|
* add difftree for noders (#262)Alberto Cortés2017-02-137-13/+1246
| | | | | difftree for noders
* add merkletrie iterator and its helper frame type (#252)Alberto Cortés2017-02-064-0/+873
| | | | | | | | * add merkletrie iterator and its helper frame type * requested changes by mcuadros * reuqested changes: smola
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-306-6/+6
|
* delete old noder, create a new one in utils (#241)Alberto Cortés2017-01-3011-0/+1466