]> git.proxmox.com Git - libgit2.git/commit
patch_generate: remove duplicated logic
authorPatrick Steinhardt <ps@pks.im>
Tue, 14 Mar 2017 09:01:56 +0000 (10:01 +0100)
committerPatrick Steinhardt <ps@pks.im>
Tue, 14 Mar 2017 11:04:04 +0000 (12:04 +0100)
commit41019152a03815be27139764ceed05fd5a0e4b58
tree09c6dc78a8ea30b092d4ea365858d5e97d76e8ec
parent53454be87f9b14f5df79a5917ce3986590438748
patch_generate: remove duplicated logic

Under the existing logic, we try to load patch contents differently,
depending on whether the patch files stem from the working directory or
not. But actually, the executed code paths are completely equal to each
other -- so we were always the code despite the condition.

Remove the condition altogether and conflate both code paths.
src/patch_generate.c