aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/commit_walker_test.go
Commit message (Collapse)AuthorAgeFilesLines
* plumbing: object, Make first commit visible on logs filtered with filename. ↵onee-only2024-03-051-0/+26
| | | | Fixes #191
* *: migration from go-git-fixtures/v4 and go-git/gcfgMáximo Cuadros2020-03-101-9/+9
|
* *: migration from gopkg to go modulesMáximo Cuadros2020-03-101-1/+1
|
* add tests for NewCommitIterCTime and NewCommitIterBSFSaeed Rasooli2018-03-061-0/+96
| | | | Signed-off-by: Saeed Rasooli <saeed.gnu@gmail.com>
* plumbing: the commit walker can skip externally-seen commitsJeremy Stribling2017-09-091-2/+26
| | | | | | | | | | When the revlist is computing the set of hashes needed to transfer, it doesn't need to walk over commits it has already processed. So, it can instruct the commit walker not to walk those commits by passing in its own `seen` map. For a 36K object repo, this brought the time for `revlist.Objects` down from 50s to 30s.
* repository: allow push from shallow repositoriesMáximo Cuadros2017-07-191-23/+5
|
* plumbing: object, allow ignore commits in commit walkersMáximo Cuadros2017-07-181-4/+69
|
* fix naming of NewCommit{Pre,Post}IteratorSantiago M. Mola2017-06-131-2/+2
| | | | | Use Iter suffix, just as all other iterators in the project. Use Preorder and Postorder to be more clear.
* Add Repository.Log() method (fix #298)Antonio Jesus Navarro Perez2017-04-111-4/+6
| | | | | | | | | | - CommitIter is now an interface - The old CommitIter implementation is now called StorerCommitIter - CommitWalker and CommitWalkerPost are now iterators (CommitPreIterator and CommitPostIterator). - Remove Commit.History() method. There are so many ways to iterate a commit history, depending of the use case. Now, instead of use the History() method, you must use CommitPreIterator or CommitPostIterator. - Move commitSorterer to references.go because is the only place that it is used, and it must not be used into another place. - Make References method private, it must only be used into blame logic. - Added a TODO into references method, where the sortCommits is used to remove it in a near future.
* plumbing/object: add WalkCommitHistoryPost funcDaniel Martí2017-03-271-7/+34
| | | | | | | | Also add a test. Make both the pre-order and post-order tests not sort commits, to actually test the order in which the commit history is walked. Fixes #223.
* move plumbing from top level package to plumbing (#183)Santiago M. Mola2016-12-141-0/+34
* 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.