got-read-patch: use imsg_get_fd(), move FILE handling in main
commitcfcfb026c8c94bb60b400f6b21b89bce7b698873
authorOmar Polo <op@omarpolo.com>
Wed, 17 Jan 2024 10:11:05 +0000 (17 10:11 +0000)
committerOmar Polo <op@omarpolo.com>
Wed, 17 Jan 2024 10:11:05 +0000 (17 10:11 +0000)
treedc13df11fce7bd2d120a8cc6d3134ad48d5c20ac
parent510b45554017ce0a907a5c11a24266600eab5783
got-read-patch: use imsg_get_fd(), move FILE handling in main

also improves the error message in case of no fd was passed.

ok stsp@
libexec/got-read-patch/got-read-patch.c