git_checkout_options.file_open_flags

default is O_CREAT | O_TRUNC | O_WRONLY

struct git_checkout_options
int file_open_flags;

Meta