bmizerany / vendor

Vendor copies go dependencies to ./vendor
52 stars 6 forks source link

log vendored commit ids to a file #7

Closed kr closed 8 years ago

kr commented 8 years ago

PTAL

kr commented 8 years ago

PTAL

bmizerany commented 8 years ago

Regarding our out-of-band conversation: I found a few ways we can get the vendor log into a commit message. They are:

Tell users to use git commit -F vendor-commit-message - This seems to be the simplest way but users have to remember to include the vendor log in their messages. They could also :r vendor-log today from vim or their editors equivalent when writing the commit message.

Install a .git/hooks/prepare-commit-msg hook - This would be ideal to use in combination with vendor-log because it can append the log automatically if ./vendor has been updated.

Thoughts?