git-lfs/lfs
brian m. carlson 71647d7f93
lfs: add old hook content to the list of old hooks
Our hook code is designed to automatically replace old hooks that it
knows about with new ones.  However, in ed3decf7 ("use backticks around
commands in messages", 2022-01-26), we made a change to the hook and
accidentally forgot to include the old hook content.

Let's fix this by providing our old hook content, which contains a
template, and processing each of the corresponding old hooks to replace
the template.  This will cause unmodified hooks to be automatically
updated, just like we expect.
2022-02-15 17:47:36 +00:00
..
attribute.go avoid extra message format parsing where possible 2022-01-29 22:32:58 -08:00
config_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
config.go Set package version to v3 2021-09-02 20:41:08 +00:00
diff_index_scanner.go make additional message strings translatable 2022-01-29 22:36:19 -08:00
extension.go make additional message strings translatable 2022-01-29 22:36:19 -08:00
gitfilter_clean.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitfilter_smudge.go make additional message strings translatable 2022-01-29 22:36:19 -08:00
gitfilter.go commands,git,lfs: rename left/right RefUpdate vars 2022-02-06 21:32:27 -08:00
gitscanner_catfilebatch.go lfs: make strings translatable 2022-01-18 17:05:02 +00:00
gitscanner_catfilebatchcheck.go use backticks around commands in messages 2022-01-29 22:35:10 -08:00
gitscanner_catfilebatchcheckscanner_test.go lfs: teach gitscanner how to emit lockable files that aren't lfs objects 2017-02-16 16:52:40 -07:00
gitscanner_index.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitscanner_log.go use backticks around commands in messages 2022-01-29 22:35:10 -08:00
gitscanner_pointerscanner_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitscanner_refs.go lfs/gitscanner*.go: update scan function comments 2022-02-06 21:32:27 -08:00
gitscanner_remotes.go Set package version to v3 2021-09-02 20:41:08 +00:00
gitscanner_tree.go use backticks around commands in messages 2022-01-29 22:35:10 -08:00
gitscanner.go lfs/gitscanner*.go: update scan function comments 2022-02-06 21:32:27 -08:00
hook.go lfs: add old hook content to the list of old hooks 2022-02-15 17:47:36 +00:00
lfs_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
lfs.go Set package version to v3 2021-09-02 20:41:08 +00:00
pointer_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
pointer.go make additional message strings translatable 2022-01-29 22:36:19 -08:00
scanner_git_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
scanner_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
scanner.go Set package version to v3 2021-09-02 20:41:08 +00:00
util_generic.go Update formatting for Go 1.17 2021-08-17 20:24:58 +02:00
util_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
util.go make additional message strings translatable 2022-01-29 22:36:19 -08:00