diff --git a/libimagstorestdhook/src/vcs/git/action.rs b/libimagstorestdhook/src/vcs/git/action.rs index fbfa3fe4..d179dbda 100644 --- a/libimagstorestdhook/src/vcs/git/action.rs +++ b/libimagstorestdhook/src/vcs/git/action.rs @@ -19,6 +19,15 @@ impl StoreAction { StoreAction::Delete => "DELETE", } } + + pub fn as_commit_message(&self) -> &str { + match *self { + StoreAction::Create => "Create", + StoreAction::Retrieve => "Retrieve", + StoreAction::Update => "Update", + StoreAction::Delete => "Delete", + } + } } impl Display for StoreAction {