Hi Junio, On Fri, 2 Oct 2020, Junio C Hamano wrote: > Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: > > > Subject: [PATCH 3/3] fixup??? reftable: rest of library > > > > Avoid using `getopt()`: it might be POSIX, but Git's audience is much > > larger than POSIX. MSVC, for example, does not support `getopt()`. > > Either that, or we could use parse-options(). I do not care either > way, as this seems to be purely for debugging? I actually wanted to use `parse_options()`, but due to the way `reftable/` insists on being completely separate from `libgit.a`, it is not really trivial, as `#include "parse-options.h"` fails (because `git-compat-util.h` was not included, and IIRC including _that_ resulted in more compile errors, at which stage I opted for a more minimal solution). So yeah, I would strongly expect `reftable/` to become considerably simpler once it starts using `libgit.a`'s goodies. Ciao, Dscho