Copies one of two git message preparation templates
Arguments
- path
The path directory of your package (with a
.gitfolder inside)- method
One of the following (see details for more info):
github,jira,github-start,github-end,jira-start,jira-end. Thegithubversions looks for numeric starts to a branch name, and then either appends the branch number to the beginning of the message with an octothorp (e.g., 123-branch appends "#123 ") or at the end, wrapped in parenthesis. Thejiraversion looks for the alphanumeric code value of a ticket and appends that with square brackets (e.g., ABC-123 appends "[ABC-123] ") to the start or the end. Appending to the end is the default functionality gotgithubbut appending to the start is the default forjira.- overwrite
If
TRUE, overwrites the.git/hooks/prepare-commit-msgfile, if it exists (passed tofs::file_copy)