The options parameter in both git_stash_apply and git_stash_pop can be NULL. They should be flagged as such in the documentation.