Name |
Last commit
|
Last update |
---|---|---|
.. | ||
parse.c | ||
patch_common.h | ||
print.c |
When parsing a patch from a buffer, we let the patch lines point into the original buffer. While this is efficient use of resources, this also ties the lifetime of the parsed patch to the parsed buffer. As this behaviour is not documented anywhere in our API it is very surprising to its users. Untie the lifetime by duplicating the lines into the parsed patch. Add a test that verifies that lifetimes are indeed independent of each other.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
parse.c | Loading commit data... | |
patch_common.h | Loading commit data... | |
print.c | Loading commit data... |