Is it possible to furnish a single commit with something akin to a pull-completion-handler?
Consider the situation:
-
I make some dramatic changes to some “meta-structures” in the repository. By “meta” I mean things that can’t be committed, but are elementary to the project.
-
Everyone who pulls that commit will have to perform a certain migration, otherwise the project won’t build. In my case, the migration would probably “just” consist of some script.
I want to automate the script-running part, in that it should happen after that specific commit has been pulled (i.e. merged into the local repository).
Thus post-merge hooks would not be the correct place, since they would be run every time.
Of course, one solution would be to have some flag didPerformMigration
.