bash: support 'git notes' and its subcommands