Ease your vendor branch management worries with Piston, a tool to copy vendor / upstream code to your own repository, while preserving your local patches.
Use the info subcommand to obtain a YAML representation of the information Piston keeps of a single directory.