summaryrefslogtreecommitdiff
path: root/tests/libgit2/diff/diffiter.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-04-25 10:48:33 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-05-08 15:06:41 +0100
commit43db928895fa85e4ee104dc8757275400d5acc2a (patch)
tree2213fdcc6b6ef4bff9cd7df7f02ccb8a212c7d4d /tests/libgit2/diff/diffiter.c
parent19ccab005ed2a65ddcd3f50a2a09214a5849871d (diff)
downloadlibgit2-43db928895fa85e4ee104dc8757275400d5acc2a.tar.gz
grafts: make `from_file` be `open_or_refresh`
The semantics of `from_file` are weird - it looks like a function that just opens a file, but it actually inspects the pointer, which is unexpected and could make things very crashy. Make an `open` function that just does an open, and move the magic to `open_or_refresh` whose name better indicates that it may do weird stuff.
Diffstat (limited to 'tests/libgit2/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions