Hi, In the SchedMD/Slurm project there's a source file with two functions that have a very similar implementation with some slight variations, namely _eval_nodes_dfly() and _eval_nodes_topo(): https://github.com/SchedMD/slurm/blob/slurm-20.11/src/plugins/select/cons_tres/job_test.c#L1458 https://github.com/SchedMD/slurm/blob/slurm-20.11/src/plugins/select/cons_tres/job_test.c#L2099 Before this Slurm commit: https://github.com/SchedMD/slurm/commit/63e94c2ccbb62aea84cfb0b808761de2bb64e74c When I attempted to git am a patch clearly targeted for _eval_nodes_dfly(), the result shown by git show resulted in the modified code in _eval_nodes_topo() instead. A colleague also reported this is also happening with the 'patch' utility without git, we're not sure if they both share any common logic or library behind the scenes. I've attached a sequence of commands showing the contents of the patch and the result after applying. alex@polaris:~/t$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster alex@polaris:~/t$ git --version git version 2.29.2 alex@polaris:~/t$