Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | plumbing/object: move difftree to object package | Antonio Jesus Navarro Perez | 2017-02-24 | 1 | -63/+0 |
| | | | | | - To avoid ciclic dependency errors, we move all the difftree files to object package. - Added Diff method to Tree object. | ||||
* | difftree: ignore permissions changes between regular files | Alberto Cortés | 2017-02-22 | 1 | -1/+39 |
| | | | | Fix issue #279. | ||||
* | test for issue 279 | Alberto Cortés | 2017-02-22 | 1 | -4/+4 |
| | |||||
* | difftree for git.Trees (#273) | Alberto Cortés | 2017-02-21 | 1 | -237/+9 |
| | | | | | | | | | | | | | Last PR to fix #82: This PR modifies the difftree package itself. The old version extracted the files in both trees and compare them by hand. The new version turn the trees into merkletrie.Noders and call the merkletrie.Difftree function on them. How to review this PR: treenoder.go: defines the treeNoder type that wraps a git.Tree and implements merkletrie.Noder. change.go: defines the type of the output of a difftree operation. The type is the same as before, but I have moved it into its own file to keep the package organized. The old package defines the Action type too (insert, delete, modify), now, we reuse merkletrie.Action and it is no longer a field, but a method. change_adaptor.go: defines functions to turn merkletrie.Changes into difftree.Changes. difftree.go: before this patch this file holds all the logic to do a difftree, now it just turns the git.Trees into treeNoders, call merkletrie.difftree on them, and turns the resulting merkletrie.Changes into difftree.Changes. The only interesting piece of code here is that noders don't have the concept of mode (file permissions). The treenoder type codifies git.Tree modes into the merkletrie.Noder hash, so changes in the mode of a file are detected as modifications, just as the original git diff-tree command does. | ||||
* | new srcd.works/go-git.v4 path | Máximo Cuadros | 2017-01-30 | 1 | -2/+2 |
| | |||||
* | fix plumbing/difftree package name (#191)v4.0.0-rc6 | Santiago M. Mola | 2016-12-19 | 1 | -1/+1 |
| | |||||
* | move plumbing from top level package to plumbing (#183) | Santiago M. Mola | 2016-12-14 | 1 | -0/+253 |
* plumbing: rename Object -> EncodedObject. * plumbing/storer: rename ObjectStorer -> EncodedObjectStorer. * move difftree to plumbing/difftree. * move diff -> utils/diff * make Object/Tag/Blob/Tree/Commit/File depend on storer. * Object and its implementations now depend only on storer.EncodedObjectStorer, not git.Repository. * Tests are decoupled accordingly. * move Object/Commit/File/Tag/Tree to plumbing/object. * move Object/Commit/File/Tag/Tree to plumbing/object. * move checkClose to utils/ioutil. * move RevListObjects to plumbing/revlist.Objects. * move DiffTree to plumbing/difftree package. * rename files with plural nouns to singular * plumbing/object: add GetBlob/GetCommit/GetTag/GetTree. |