Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | *: Use CheckClose with named returns | Javi Fontan | 2018-03-27 | 5 | -7/+8 |
| | | | | | | | | Previously some close errors were losts. This is specially problematic in go-git as lots of work is done here like generating indexes and moving packfiles. Signed-off-by: Javi Fontan <jfontan@gmail.com> | ||||
* | add tests for NewCommitIterCTime and NewCommitIterBSF | Saeed Rasooli | 2018-03-06 | 1 | -0/+96 |
| | | | | Signed-off-by: Saeed Rasooli <saeed.gnu@gmail.com> | ||||
* | add LogOrder, LogOptions.Order, implement Order=LogOrderCommitterTime and ↵ | Saeed Rasooli | 2018-03-05 | 2 | -0/+203 |
| | | | | | | Order=LogOrderBSF Signed-off-by: Saeed Rasooli <saeed.gnu@gmail.com> | ||||
* | object: patch, test patch on submodules | Máximo Cuadros | 2017-12-07 | 1 | -0/+44 |
| | |||||
* | Ignore empty patches when calculating stats (fixes #654) | Alexandr Krylovskiy | 2017-12-04 | 1 | -0/+5 |
| | |||||
* | all: gofmt -s | ferhat elmas | 2017-11-30 | 4 | -4/+4 |
| | |||||
* | all: fixes for ineffective assign | ferhat elmas | 2017-11-26 | 1 | -0/+1 |
| | |||||
* | plumbing: object/{commit,tag}, encode method with sig optional | Sunny | 2017-11-24 | 2 | -11/+14 |
| | | | | | Adds Commit.encode() and Tag.encode() with optional `includeSig` parameter to include or exclude signature from the encoded object. | ||||
* | plumbing: object/tag, add signature verification | Sunny | 2017-11-24 | 2 | -0/+94 |
| | |||||
* | plumbing: object/tag, add PGPSignature support | Sunny | 2017-11-24 | 2 | -1/+69 |
| | |||||
* | test: plumbing/object fix Commit.Verify test | Sunny | 2017-11-24 | 1 | -2/+3 |
| | | | | | Test was failing because of the relative time zone attached to the commit. Adding a fixed location to the time fixes the issue. | ||||
* | Merge pull request #653 from darkowlzz/verify-commit | Máximo Cuadros | 2017-11-24 | 2 | -0/+95 |
|\ | | | | | plumbing: object, new Commit.Verify method | ||||
| * | test: plumbing.object, add test for Commit.Verify | Sunny | 2017-11-23 | 1 | -0/+65 |
| | | |||||
| * | plumbing: object, add Commit.Verify method | Sunny | 2017-11-23 | 1 | -0/+30 |
| | | | | | | | | | | Commit.Verify() performs PGP verification of a signed commit given an armored keyring. | ||||
* | | update to go-billy.v4 and go-git-fixtures.v3 | Máximo Cuadros | 2017-11-23 | 8 | -8/+8 |
| | | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | | plumbing/object: add test for finding tree entry | ferhat elmas | 2017-11-22 | 1 | -0/+37 |
| | | |||||
* | | plumbing/object: do not eat error on tree decode | ferhat elmas | 2017-11-21 | 1 | -2/+2 |
|/ | |||||
* | examples,plumbing,utils: typo fixes | ferhat elmas | 2017-11-20 | 2 | -2/+2 |
| | |||||
* | Merge pull request #534 from josharian/firstparent | Máximo Cuadros | 2017-11-20 | 2 | -0/+24 |
|\ | | | | | plumbing: object, commit.Parent() method | ||||
| * | plumbing: object, commit.Parent() method | Máximo Cuadros | 2017-11-20 | 2 | -6/+19 |
| | | | | | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
| * | plumbing/object: add Commit.FirstParent | Josh Bleecher Snyder | 2017-08-03 | 1 | -0/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | First parents are somewhat special in git. There's even a --first-parent flag to 'git log'. Add a helper method to look them up. This avoids boilerplate and spares the client from having to arrange for a handle to the Storer, which is stored in the unexported field Commit.s. | ||||
* | | Merge pull request #613 from darkowlzz/482-commit-stats | Máximo Cuadros | 2017-11-08 | 3 | -0/+167 |
|\ \ | | | | | | | Add Stats() to Commit | ||||
| * | | Add Stats() to Patch and fix diffstat output | Sunny | 2017-11-02 | 3 | -53/+130 |
| | | | |||||
| * | | Add Stats() to Commit | Sunny | 2017-11-02 | 2 | -0/+90 |
| | | | | | | | | | | | | Stats() is similar to `git show --stat <hash>`. | ||||
* | | | Updating reference to the git object model | Antonio Troina | 2017-11-07 | 1 | -1/+1 |
|/ / | |||||
* | | Add support for signed commits (#616) | Sunny | 2017-10-29 | 2 | -0/+69 |
| | | | | | | | | | | | | | | | | | | * Add support for signed commits This change adds `GPGSignature` field to `Commit` object. This is used to store the signature of the commit, if any. * Rename gpg to pgp | ||||
* | | plumbing: the commit walker can skip externally-seen commits | Jeremy Stribling | 2017-09-09 | 2 | -10/+40 |
| | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | plumbing: use `seen` map in tree walker | Jeremy Stribling | 2017-08-27 | 4 | -10/+42 |
| | | | | | | | | | | | | | | This helps avoids iterating down the same trees for every commit. For a big-ish repo with 35K objects (17K commits), this reduced the time for calling `revlist.Objects` during a push (with 0 hashes to ignore) from more than ten minutes to less than a minute. | ||||
* | | grammar correction | Zach Gershman | 2017-08-24 | 1 | -1/+1 |
|/ | | | *stopped instead of stop | ||||
* | repository: allow push from shallow repositories | Máximo Cuadros | 2017-07-19 | 1 | -23/+5 |
| | |||||
* | plumbing: object, allow ignore commits in commit walkers | Máximo Cuadros | 2017-07-18 | 2 | -16/+105 |
| | |||||
* | fix naming of NewCommit{Pre,Post}Iterator | Santiago M. Mola | 2017-06-13 | 2 | -6/+6 |
| | | | | | Use Iter suffix, just as all other iterators in the project. Use Preorder and Postorder to be more clear. | ||||
* | format/diff: unified diff encoder and public API | Antonio Jesus Navarro Perez | 2017-05-23 | 7 | -0/+316 |
| | | | | | | | | | - Added Patch interface - Added a Unified Diff encoder from Patches - Added Change method to generate Patches - Added Changes method to generate Patches - Added Tree method to generate Patches - Added Commit method to generate Patches | ||||
* | worktree: Commit, tests improvements | Máximo Cuadros | 2017-05-04 | 1 | -2/+2 |
| | |||||
* | plumbing: MemoryObject.Writer tracks his own size | Máximo Cuadros | 2017-05-04 | 4 | -30/+35 |
| | |||||
* | plumbing: object.Tree making public `tree` and `parents` | Máximo Cuadros | 2017-05-01 | 2 | -17/+19 |
| | |||||
* | object: avoid unreachable code | Santiago M. Mola | 2017-04-26 | 1 | -4/+1 |
| | |||||
* | fix format string issues as found by go vet | Santiago M. Mola | 2017-04-26 | 1 | -4/+5 |
| | |||||
* | worktree, reset implementation and status improvements | Máximo Cuadros | 2017-04-12 | 1 | -1/+1 |
| | |||||
* | merkletrie: filesystem and index speedup and documentation | Máximo Cuadros | 2017-04-11 | 1 | -18/+11 |
| | |||||
* | merge, Repository.Log | Máximo Cuadros | 2017-04-11 | 4 | -116/+138 |
|\ | |||||
| * | Add Repository.Log() method (fix #298) | Antonio Jesus Navarro Perez | 2017-04-11 | 4 | -116/+138 |
| | | | | | | | | | | | | | | | | | | | | - 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, public Tree.FindEntry and minor diff changes | Máximo Cuadros | 2017-04-11 | 4 | -8/+17 |
|/ | |||||
* | Set correct modes to change_adaptor tests | Antonio Jesus Navarro Perez | 2017-04-06 | 1 | -0/+6 |
| | |||||
* | object: fix Change.Files() method behavior (fix #317) | Antonio Jesus Navarro Perez | 2017-04-06 | 2 | -0/+56 |
| | | | | | - If 'from' or 'to' are tree entries that aren't files, Files() method will return nil instead of object not found error. - Added a test checking this using modules fixture. | ||||
* | Work around a Go bug when parsing timezones | Nick Thomas | 2017-03-30 | 1 | -1/+6 |
| | |||||
* | Merge pull request #314 from lupine/249-fix-bufio-buffer-full | Máximo Cuadros | 2017-03-28 | 4 | -2/+36 |
|\ | | | | | plumbing: Use ReadBytes() rather than ReadSlice() | ||||
| * | plumbing: Use ReadBytes() rather than ReadSlice() | Nick Thomas | 2017-03-27 | 4 | -2/+36 |
| | | |||||
* | | plumbing/object: add WalkCommitHistoryPost func | Daniel Martí | 2017-03-27 | 2 | -7/+59 |
|/ | | | | | | | | 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. | ||||
* | project: move imports from srcd.works to gopkg.in | Antonio Jesus Navarro Perez | 2017-03-07 | 20 | -63/+63 |
| | | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release. |