Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | diff: Allow srcPrefix and dstPrefix to be configured (#265) | Andrew Nelson | 2021-03-11 | 2 | -6/+53 |
| | | | | | | | | | * diff: Allow srcPrefix and dstPrefix to be configured The default behavior here remains the same, but this change does allow consumers of the UnifiedEncoder to set their own path prefixes which will override the defaults of a/ and b/. * Add unit test for src/dstPrefix in encoder | ||||
* | plumbing: diff, reset color at end of line rather than at beginning of next | Tom Payne | 2020-05-17 | 2 | -37/+64 |
| | |||||
* | plumbing: diff, refresh internals | Tom Payne | 2020-05-01 | 1 | -216/+166 |
| | |||||
* | plumbing: diff, don't emit unnecessary resets | Tom Payne | 2020-04-30 | 3 | -22/+24 |
| | |||||
* | plumbing: color, make package external | Tom Payne | 2020-04-29 | 2 | -2/+2 |
| | |||||
* | plumbing: diff, fix coloring of hunk context | Tom Payne | 2020-04-29 | 2 | -15/+51 |
| | |||||
* | plumbing: diff, Add initial colored output support. Fixes #33. | Tom Payne | 2020-04-26 | 3 | -10/+206 |
| | |||||
* | *: migration from gopkg to go modules | Máximo Cuadros | 2020-03-10 | 3 | -5/+5 |
| | |||||
* | format: diff, Handle no newline at end of file. Fixes #936 | Stuart Jansen | 2019-10-13 | 2 | -30/+83 |
| | | | | Signed-off-by: Stuart Jansen <sjansen@buscaluz.org> | ||||
* | plumbing/format: simplify code | Christian Muehlhaeuser | 2019-07-29 | 1 | -1/+1 |
| | | | | | | | Just a bit easier to read, in my opinion. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit 91d314ce8f13eff06fd4af8b869cee5a3e2ab014) | ||||
* | Fix fatal corrupt patch in unified diff format | Antonio Jesus Navarro Perez | 2018-09-07 | 2 | -2/+43 |
| | | | | Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com> | ||||
* | add test for crashing diff | Mechiel Lukkien | 2018-02-16 | 1 | -0/+37 |
| | | | | | | | this reuses an existing patch, setting context to 6 triggers the bug, becuase of a 5-line trailing equals chunk. Signed-off-by: Mechiel Lukkien <mechiel@ueber.net> | ||||
* | fix crash when generating a unified diff with a small ending equal-chunk | Mechiel Lukkien | 2018-02-14 | 1 | -2/+6 |
| | | | | Signed-off-by: Mechiel Lukkien <mechiel@ueber.net> | ||||
* | format: diff, remove error when two files are empty, submodules are simply ↵ | Máximo Cuadros | 2017-12-07 | 2 | -5/+2 |
| | | | | | | ignored Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | format/diff: unified diff encoder and public API | Antonio Jesus Navarro Perez | 2017-05-23 | 3 | -0/+1242 |
- 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 |