diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2022-01-26 13:05:46 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-26 12:08:53 -0800 |
commit | 6ae8086161d81a707ff36dfdc07f57e4f473e0fd (patch) | |
tree | c8ae915a87b20a34794f3a56e4d496af46c8d35e /transport-internal.h | |
parent | rebase: cleanup reset_head() calls (diff) | |
download | tgif-6ae8086161d81a707ff36dfdc07f57e4f473e0fd.tar.xz |
reset_head(): take struct rebase_head_opts
This function takes a confusingly large number of parameters which
makes it difficult to remember which order to pass them in. The
following commits will add a couple more parameters which makes the
problem worse. To address this change the function to take a struct of
options. Using a struct means that it is no longer necessary to
remember which order to pass the parameters in and anyone reading the
code can easily see which value is passed to each parameter.
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-internal.h')
0 files changed, 0 insertions, 0 deletions