summaryrefslogtreecommitdiff
path: root/git/diff.py
Commit message (Collapse)AuthorAgeFilesLines
* fixed lint errorCesar Velazquez2023-01-301-1/+1
|
* Enable user to override default diff -M argCesar Velazquez2023-01-301-1/+4
|
* Ignore empty info in diff lineDave Wapstra2022-09-271-0/+3
|
* Fix bug where colons in paths raise a `ValueError` on `diff()` calls.Malcolm Langfield2022-09-121-1/+4
| | | | | | | | | | | | | | | | | This commit introduces a potential fix for #1490 and #1483, in which an `invalid literal for int() with base 10: 'n'` exception was raised within a diff operation. Within `_handle_diff_line()`, we split the output of `git diff-tree` on colons (`:` characters), under the assumption that there are no colons within the paths of the files being diffed. On POSIX systems this is not a valid assumption. The fix is to split on `\x00:`, since a null character always precedes the colons we actually need to split on. A test already existed for this case (`test_diff_file_with_colon()`), but it was marked as skipped. * Split on `\x00:` instead of `:` in `_handle_diff_line()`. * Unskip `test_diff_file_with_colon()`.
* reformat according to 'black' configuration file.Sebastian Thiel2022-05-181-52/+13
|
* Run everything through 'black'Sebastian Thiel2022-05-181-129/+248
| | | | | That way people who use it won't be deterred, while it unifies style everywhere.
* Revert "Use NUL character to extract meta and path from git diff"Sebastian Thiel2022-01-071-3/+3
| | | | This reverts commit 01f09888208341876d1480bd22dc8f4107c100f1.
* Use NUL character to extract meta and path from git diffNHanser2022-01-071-3/+3
| | | Use NUL character instead of semicolon to extract meta and path. Avoid errors in during git diff when dealing with filenames containing semicolons
* increase mypy strictness (warn unused ignored and warn unreachable)Yobmod2021-08-021-2/+2
|
* replace some TBDs wiht runtime typesYobmod2021-07-311-2/+3
|
* Replace all Typeguard with cast, revert update to typing-extensions==3.10.0Yobmod2021-07-241-7/+7
|
* Change remaining type comments to py3.6+ typesYobmod2021-07-191-3/+3
|
* Make types in refs compatible with previousYobmod2021-07-191-1/+1
|
* Improve IndexFile_process_diff_args() to get checks to rerunYobmod2021-07-091-4/+4
|
* Make IndexFile and Diffable .diff() types agreeYobmod2021-07-091-1/+2
|
* Rmv Diffable assert, add Remoote.url propertyYobmod2021-07-091-2/+0
|
* Improve Diffable method typingYobmod2021-07-091-16/+16
|
* Try to distinguation git.diff module from diff.Diff.diff and ↵Yobmod2021-07-091-13/+13
| | | | diff.Daffable.diff()
* Make has_repo protocol runtime checkable and use in DiffableYobmod2021-07-091-3/+5
|
* Make diff.DiffIndex generic List['Diff']Yobmod2021-07-061-12/+16
|
* Add 'U' to change_levels (should pass)Yobmod2021-07-061-2/+2
|
* Check change_levels (should fail)Yobmod2021-07-061-2/+2
|
* Readd submodule.base.py typesYobmod2021-07-061-2/+3
|
* Readd typeguard to Diff.pyYobmod2021-07-061-2/+9
|
* Rmv diff typeguardYobmod2021-07-061-18/+10
|
* Rmv submodule types2Yobmod2021-07-061-2/+2
|
* Fix for mrepo2Yobmod2021-07-061-1/+1
|
* Fix Literal TypeguardsYobmod2021-07-061-1/+1
|
* Improve types of diff.pyYobmod2021-07-061-4/+6
|
* Improve types of diff.pyYobmod2021-07-061-6/+14
|
* Add types to objects.base.pyYobmod2021-05-181-2/+2
|
* Add remaining types to IndexFile ._preprocess_add_items() to .diff()Yobmod2021-05-161-2/+2
|
* Add types to cmd.py Gityobmod2021-05-131-4/+6
|
* flake8 fixesyobmod2021-05-081-2/+1
|
* add initial types to remote.pyyobmod2021-05-031-61/+65
|
* add types to git.compat and git.diffyobmod2021-03-021-48/+66
|
* Fix handle_diff_line for -z option.Martin Liska2021-01-061-49/+49
|
* try fixing up test fixtures and implementationSebastian Thiel2021-01-061-2/+2
|
* Add '-z' on top of '--raw' to avoid path name manglingSebastian Thiel2021-01-061-1/+2
| | | | | | | Authored based on https://github.com/gitpython-developers/GitPython/issues/1099#issuecomment-754606044 Fixes #1099
* change decode type and add replace flagDavide Spadini2020-11-101-1/+1
|
* Remove checks for Python 2 and/or 3Harmon2020-02-081-10/+2
|
* Remove and replace compat.binary_typeHarmon2020-02-081-5/+4
|
* Merge branch 'fix/deepsource-issues' of https://github.com/imkaka/GitPython ↵Sebastian Thiel2019-10-291-4/+6
|\ | | | | | | into imkaka-fix/deepsource-issues
| * Merge branch 'master' into fix/deepsource-issuesAnil Khatri2019-10-231-10/+33
| |\
| * | fix Loop variable used outside the loopAnil Khatri2019-10-231-4/+6
| | |
* | | Check if submodule exists before referencingtanaga92019-10-281-1/+2
| |/ |/|
* | Fix #852 by tweaking regex to handle -R option to git diffJJ Graham2019-10-221-1/+1
| |
* | Initial stab at fixing diffs involving submodule changesJJ Graham2019-10-211-0/+8
| |
* | Satisfying flake8JJ Graham2019-10-191-2/+2
| |
* | Updating variable name to more accurately reflect contentsJJ Graham2019-10-191-3/+3
| |