aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/diff
Commit message (Collapse)AuthorAgeFilesLines
* diff: Allow srcPrefix and dstPrefix to be configured (#265)Andrew Nelson2021-03-112-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 nextTom Payne2020-05-172-37/+64
|
* plumbing: diff, refresh internalsTom Payne2020-05-011-216/+166
|
* plumbing: diff, don't emit unnecessary resetsTom Payne2020-04-303-22/+24
|
* plumbing: color, make package externalTom Payne2020-04-292-2/+2
|
* plumbing: diff, fix coloring of hunk contextTom Payne2020-04-292-15/+51
|
* plumbing: diff, Add initial colored output support. Fixes #33.Tom Payne2020-04-263-10/+206
|
* *: migration from gopkg to go modulesMáximo Cuadros2020-03-103-5/+5
|
* format: diff, Handle no newline at end of file. Fixes #936Stuart Jansen2019-10-132-30/+83
| | | | Signed-off-by: Stuart Jansen <sjansen@buscaluz.org>
* plumbing/format: simplify codeChristian Muehlhaeuser2019-07-291-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 formatAntonio Jesus Navarro Perez2018-09-072-2/+43
| | | | Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
* add test for crashing diffMechiel Lukkien2018-02-161-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-chunkMechiel Lukkien2018-02-141-2/+6
| | | | Signed-off-by: Mechiel Lukkien <mechiel@ueber.net>
* format: diff, remove error when two files are empty, submodules are simply ↵Máximo Cuadros2017-12-072-5/+2
| | | | | | ignored Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* format/diff: unified diff encoder and public APIAntonio Jesus Navarro Perez2017-05-233-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