Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | diff: treat binary patches with no data specialethomson/diff-read-empty-binary | Edward Thomson | 2016-09-05 | 1 | -12/+33 |
| | | | | | | When creating and printing diffs, deal with binary deltas that have binary data specially, versus diffs that have a binary file but lack the actual binary data. | ||||
* | Teach `git_patch_from_diff` about parsed diffsethomson/patch_from_diff | Edward Thomson | 2016-08-24 | 1 | -0/+15 |
| | | | | | Ensure that `git_patch_from_diff` can return the patch for parsed diffs, not just generate a patch for a generated diff. | ||||
* | git_diff_file: move `id_abbrev`ethomson/diff_file | Edward Thomson | 2016-08-03 | 1 | -3/+3 |
| | | | | | Move `id_abbrev` to a more reasonable place where it packs more nicely (before anybody starts using it). | ||||
* | apply: check allocation properly | Edward Thomson | 2016-07-24 | 1 | -1/+1 |
| | |||||
* | patch: show copy information for identical copies | Edward Thomson | 2016-06-25 | 1 | -0/+16 |
| | | | | | | | When showing copy information because we are duplicating contents, for example, when performing a `diff --find-copies-harder -M100 -B100`, then show copy from/to lines in a patch, and do not show context. Ensure that we can also parse such patches. | ||||
* | patch::parse: handle patches with no hunks | Edward Thomson | 2016-06-25 | 1 | -1/+3 |
| | | | | | Patches may have no hunks when there's no modifications (for example, in a rename). Handle them. | ||||
* | patch: zero id and abbrev length for empty files | Edward Thomson | 2016-05-26 | 1 | -8/+20 |
| | |||||
* | patch: identify non-binary patches as `NOT_BINARY` | Edward Thomson | 2016-05-26 | 1 | -4/+3 |
| | |||||
* | introduce `git_diff_from_buffer` to parse diffs | Edward Thomson | 2016-05-26 | 1 | -32/+43 |
| | | | | Parse diff files into a `git_diff` structure. | ||||
* | patch: differentiate not found and invalid patches | Edward Thomson | 2016-05-26 | 1 | -1/+2 |
| | |||||
* | git_patch_parse_ctx: refcount the context | Edward Thomson | 2016-05-26 | 1 | -87/+144 |
| | |||||
* | parse: introduce parse_ctx_contains_s | Edward Thomson | 2016-05-26 | 1 | -18/+25 |
| | |||||
* | patch: `git_patch_from_patchfile` -> `git_patch_from_buffer` | Edward Thomson | 2016-05-26 | 1 | -1/+1 |
| | |||||
* | patch: provide static string `advance_expected` | Edward Thomson | 2016-05-26 | 1 | -10/+13 |
| | |||||
* | patch parse: dup the patch from the callers | Edward Thomson | 2016-05-26 | 1 | -5/+22 |
| | |||||
* | patch parsing: squash some memory leaks | Edward Thomson | 2016-05-26 | 1 | -0/+7 |
| | |||||
* | patch: drop some warnings | Edward Thomson | 2016-05-26 | 1 | -2/+2 |
| | |||||
* | Introduce git_patch_options, handle prefixes | Edward Thomson | 2016-05-26 | 1 | -112/+163 |
| | | | | | Handle prefixes (in terms of number of path components) for patch parsing. | ||||
* | patch printing: include rename information | Edward Thomson | 2016-05-26 | 1 | -2/+2 |
| | |||||
* | patch_parse: don't set new mode when deleted | Edward Thomson | 2016-05-26 | 1 | -4/+4 |
| | |||||
* | patch_parse: use names from `diff --git` header | Edward Thomson | 2016-05-26 | 1 | -17/+44 |
| | | | | | | When a text file is added or deleted, use the file names from the `diff --git` header instead of the `---` or `+++` lines. This is for compatibility with git. | ||||
* | patch_parse: set binary flag | Edward Thomson | 2016-05-26 | 1 | -0/+1 |
| | | | | | We may have parsed binary data, set the `SHOW_BINARY` flag which indicates that we have actually computed a binary diff. | ||||
* | patch: when parsing, set nfiles correctly in delta | Edward Thomson | 2016-05-26 | 1 | -0/+3 |
| | |||||
* | diff: include oid length in deltas | Edward Thomson | 2016-05-26 | 1 | -8/+4 |
| | | | | | | Now that `git_diff_delta` data can be produced by reading patch file data, which may have an abbreviated oid, allow consumers to know that the id is abbreviated. | ||||
* | patch parse: unset path prefix | Edward Thomson | 2016-05-26 | 1 | -0/+4 |
| | |||||
* | patch: use delta's old_file/new_file members | Edward Thomson | 2016-05-26 | 1 | -39/+26 |
| | | | | | No need to replicate the old_file/new_file members, or plumb them strangely up. | ||||
* | patch: abstract patches into diff'ed and parsed | Edward Thomson | 2016-05-26 | 1 | -0/+920 |
Patches can now come from a variety of sources - either internally generated (from diffing two commits) or as the results of parsing some external data. |