diff options
| author | Abraham Samuel Adekunle <abrahamadekunle50@gmail.com> | 2026-02-14 12:04:44 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-17 10:48:37 -0800 |
| commit | 57088095e90a940d232e36594c6fa761f283d35d (patch) | |
| tree | 840e788646f429f90e924ee486d32437ed556a76 /contrib/persistent-https | |
| parent | 06c81a1118a6c9a77505b0ae3092576fa4c01763 (diff) | |
| download | git-57088095e90a940d232e36594c6fa761f283d35d.tar.gz git-57088095e90a940d232e36594c6fa761f283d35d.zip | |
add-patch: modify patch_update_file() signature
The function `patch_update_file()` takes the add_p_state struct
pointer and the current `struct file_diff` pointer and returns an
int.
When using the `--no-auto-advance` flag, we want to be able to request
the next or previous file from the caller.
Modify the function signature to instead take the index of the
current `file_diff` and the `add_p_state` struct pointer so that we
can compute the `file_diff` from the index while also having
access to the file index. This will help us request the next or
previous file from the caller.
Signed-off-by: Abraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
