diff options
author | Quang-Minh Nguyen <qmnguyen@gitlab.com> | 2023-03-08 17:23:11 +0300 |
---|---|---|
committer | Quang-Minh Nguyen <qmnguyen@gitlab.com> | 2023-03-15 13:06:33 +0300 |
commit | 1b7787e9967951aa86db507cab60bc96d0953250 (patch) | |
tree | 24db85f69eed76e96e90344c3d8afba789232b24 /VERSION | |
parent | d4c090d0100aed63563add9e92645bccb5c9b399 (diff) |
Add multiple finalizers support to internal/command
When spawning a command, we support adding a finalizer option via
`command.WithFinalizer`. Originally, there is only one finalizer. To
prepare for trace2 integration, Git command factory needs to find a way
to hook to when after a command finishes. Finalizer is a good way to
achieve this purpose. Unfortunately, it's not easy to create a wrapper
function then trigger the pre-existing finalizer if any. So, expanding
this option to support multiple finalizers is a good approach.
This commit also adds context to the function signature of finalizer.
Diffstat (limited to 'VERSION')
0 files changed, 0 insertions, 0 deletions