Martin Ågren <martin.agren@xxxxxxxxx> writes: > As the commit message of 04a3dfb8b5 ("worktree.c: check whether branch > is bisected in another worktree", 2016-04-22) indicates, the function > `is_worktree_being_bisected()` is based on the older function > `is_worktree_being_rebased()`. This heritage can also be seen in the > name of the variable where we store our return value: It was never > adapted while copy-editing and remains as `found_rebase`. > > Rename the variable to make clear that we're looking for a bisect(ion), > nothing else. How bad is this copy and paste? Is it a possibility to make a single helper function and these existing two a thin wrapper around the helper that passes customization between bisect and rebase?