Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make has_repo protocol runtime checkable and use in Diffable | Yobmod | 2021-07-09 | 1 | -3/+5 |
| | |||||
* | Make diff.DiffIndex generic List['Diff'] | Yobmod | 2021-07-06 | 1 | -12/+16 |
| | |||||
* | Add 'U' to change_levels (should pass) | Yobmod | 2021-07-06 | 1 | -2/+2 |
| | |||||
* | Check change_levels (should fail) | Yobmod | 2021-07-06 | 1 | -2/+2 |
| | |||||
* | Readd submodule.base.py types | Yobmod | 2021-07-06 | 1 | -2/+3 |
| | |||||
* | Readd typeguard to Diff.py | Yobmod | 2021-07-06 | 1 | -2/+9 |
| | |||||
* | Rmv diff typeguard | Yobmod | 2021-07-06 | 1 | -18/+10 |
| | |||||
* | Rmv submodule types2 | Yobmod | 2021-07-06 | 1 | -2/+2 |
| | |||||
* | Fix for mrepo2 | Yobmod | 2021-07-06 | 1 | -1/+1 |
| | |||||
* | Fix Literal Typeguards | Yobmod | 2021-07-06 | 1 | -1/+1 |
| | |||||
* | Improve types of diff.py | Yobmod | 2021-07-06 | 1 | -4/+6 |
| | |||||
* | Improve types of diff.py | Yobmod | 2021-07-06 | 1 | -6/+14 |
| | |||||
* | Add types to objects.base.py | Yobmod | 2021-05-18 | 1 | -2/+2 |
| | |||||
* | Add remaining types to IndexFile ._preprocess_add_items() to .diff() | Yobmod | 2021-05-16 | 1 | -2/+2 |
| | |||||
* | Add types to cmd.py Git | yobmod | 2021-05-13 | 1 | -4/+6 |
| | |||||
* | flake8 fixes | yobmod | 2021-05-08 | 1 | -2/+1 |
| | |||||
* | add initial types to remote.py | yobmod | 2021-05-03 | 1 | -61/+65 |
| | |||||
* | add types to git.compat and git.diff | yobmod | 2021-03-02 | 1 | -48/+66 |
| | |||||
* | Fix handle_diff_line for -z option. | Martin Liska | 2021-01-06 | 1 | -49/+49 |
| | |||||
* | try fixing up test fixtures and implementation | Sebastian Thiel | 2021-01-06 | 1 | -2/+2 |
| | |||||
* | Add '-z' on top of '--raw' to avoid path name mangling | Sebastian Thiel | 2021-01-06 | 1 | -1/+2 |
| | | | | | | | Authored based on https://github.com/gitpython-developers/GitPython/issues/1099#issuecomment-754606044 Fixes #1099 | ||||
* | change decode type and add replace flag | Davide Spadini | 2020-11-10 | 1 | -1/+1 |
| | |||||
* | Remove checks for Python 2 and/or 3 | Harmon | 2020-02-08 | 1 | -10/+2 |
| | |||||
* | Remove and replace compat.binary_type | Harmon | 2020-02-08 | 1 | -5/+4 |
| | |||||
* | Merge branch 'fix/deepsource-issues' of https://github.com/imkaka/GitPython ↵ | Sebastian Thiel | 2019-10-29 | 1 | -4/+6 |
|\ | | | | | | | into imkaka-fix/deepsource-issues | ||||
| * | Merge branch 'master' into fix/deepsource-issues | Anil Khatri | 2019-10-23 | 1 | -10/+33 |
| |\ | |||||
| * | | fix Loop variable used outside the loop | Anil Khatri | 2019-10-23 | 1 | -4/+6 |
| | | | |||||
* | | | Check if submodule exists before referencing | tanaga9 | 2019-10-28 | 1 | -1/+2 |
| |/ |/| | |||||
* | | Fix #852 by tweaking regex to handle -R option to git diff | JJ Graham | 2019-10-22 | 1 | -1/+1 |
| | | |||||
* | | Initial stab at fixing diffs involving submodule changes | JJ Graham | 2019-10-21 | 1 | -0/+8 |
| | | |||||
* | | Satisfying flake8 | JJ Graham | 2019-10-19 | 1 | -2/+2 |
| | | |||||
* | | Updating variable name to more accurately reflect contents | JJ Graham | 2019-10-19 | 1 | -3/+3 |
| | | |||||
* | | Fixed new test for copied files | JJ Graham | 2019-10-19 | 1 | -2/+4 |
| | | |||||
* | | Adding diff support for copied files, still working on test | JJ Graham | 2019-10-19 | 1 | -8/+21 |
|/ | |||||
* | Fixed error in documentation | Syoc | 2019-01-12 | 1 | -1/+0 |
| | | | | | | The renamed_file function contains the following which ends up on readthedocs: :note: This property is deprecated, please use ``renamed_file`` instead. Removed the line | ||||
* | Add change in type support | Aurélien Matouillot | 2018-05-19 | 1 | -3/+9 |
| | |||||
* | Get correcly rename change_type. | Aurélien Matouillot | 2018-05-19 | 1 | -6/+14 |
| | | | | Also store the rename score | ||||
* | Rewrite unnecessary dict/list/tuple calls as literals | Hugo | 2018-03-18 | 1 | -2/+2 |
| | |||||
* | RF: primarily flake8 lints + minor RF to reduce duplication in PATHEXT | Yaroslav Halchenko | 2017-11-27 | 1 | -7/+7 |
| | | | | | I did keep some "bare" except with catch all Exception: , while tried to disable flake8 complaints where clearly all exceptions are to be catched | ||||
* | Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵ | Sebastian Thiel | 2016-10-22 | 1 | -7/+6 |
|\ | | | | | | | ankostis-cygwin | ||||
| * | src: reduce needless deps to `gitdb.util` | Kostis Anagnostopoulos | 2016-10-16 | 1 | -7/+6 |
| | | |||||
* | | Fix some typos | Santiago Castro | 2016-10-20 | 1 | -7/+7 |
|/ | |||||
* | Proc, #519: Rework error-exc msgs & log thread-pumps errors | Kostis Anagnostopoulos | 2016-09-28 | 1 | -2/+2 |
| | | | | | + No WindowsError exception. + Add `test_exc.py` for unicode issues. + Single-arg for decoding-streams in pump-func. | ||||
* | io, dif: #519: FIX DIFF freeze when reading from GIL | Kostis Anagnostopoulos | 2016-09-28 | 1 | -11/+21 |
| | | | | | | | | | | | | | | | + CAUSE: In Windows, Diffs freeze while reading Popen streams, probably buffers smaller; good-thin(TM) in this case because reading a Popen-proc from the launching-thread freezes GIL. The alternative to use `proc.communicate()` also relies on big buffers. + SOLUTION: Use `cmd.handle_process_output()` to consume Diff-proc streams. + Retroffited `handle_process_output()` code to support also byte-streams, both Threading(Windows) and Select/Poll (Posix) paths updated. - TODO: Unfortunately, `Diff._index_from_patch_format()` still slurps input; need to re-phrase header-regexes linewise to resolve it. | ||||
* | fix(diff): use explicit change-type if possible | Sebastian Thiel | 2016-07-23 | 1 | -5/+9 |
| | | | | | | | | | | That way, we do not have to figure the change type out by examining the diff object. It's implemented in a way that should yield more desireable results as we keep the change-type that git is providing us with. Fixes #493 | ||||
* | Store raw path bytes in Diff instanceskeep-raw-bytes-on-diffs | Vincent Driessen | 2016-06-14 | 1 | -17/+41 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the following fields on Diff instances were assumed to be passed in as unicode strings: - `a_path` - `b_path` - `rename_from` - `rename_to` However, since Git natively records paths as bytes, these may potentially not have a valid unicode representation. This patch changes the Diff instance to instead take the following equivalent fields that should be raw bytes instead: - `a_rawpath` - `b_rawpath` - `raw_rename_from` - `raw_rename_to` NOTE ON BACKWARD COMPATIBILITY: The original `a_path`, `b_path`, etc. fields are still available as properties (rather than slots). These properties now dynamically decode the raw bytes into a unicode string (performing the potentially destructive operation of replacing invalid unicode chars by "�"'s). This means that all code using Diffs should remain backward compatible. The only exception is when people would manually construct Diff instances by calling the constructor directly, in which case they should now pass in bytes rather than unicode strings. See also the discussion on https://github.com/gitpython-developers/GitPython/pull/467 | ||||
* | Don't choke on (legitimately) invalidly encoded Unicode pathsfix-dont-choke-on-invalid-unicode-paths | Vincent Driessen | 2016-06-06 | 1 | -4/+4 |
| | |||||
* | Fix bug in diff parser outputfix-octal-escaped-path-parser-bug | Vincent Driessen | 2016-05-30 | 1 | -2/+15 |
| | | | | | | | | | | | | The diff --patch parser was missing some edge case where Git would encode non-ASCII chars in path names as octals, but these weren't decoded properly. \360\237\222\251.txt Decoded via utf-8, that will return: 💩.txt | ||||
* | Deprecate Diffable.rename for .renamed_file | Sebastian Thiel | 2016-05-19 | 1 | -1/+10 |
| | | | | Fixes #426 | ||||
* | Python 3 compat fixes | Vincent Driessen | 2016-04-20 | 1 | -1/+4 |
| | | | | Specifically "string_escape" does not exist as an encoding anymore. |