-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring #5
Comments
So, let's do it this way:
That way, apps:create is still VCS-agnostic, but it still believes in the idea of a VCS. The kind of odd side-effect this can have is that receiving a Git pack will initialize a repo for every type of version-control Plushu plugin installed. I don't think that's necessarily a bad thing (it just means you'll get weird asymmetric behavior if you don't have a similar initializing plugin installed for other version-control systems' reception methods). |
This hook layout, where |
blocked on #6, plushu/plushu#20 |
Also, this is kind of blocked by plushu/plushu-apps#2, since it's designed for a world with |
Although |
Let's go:
|
Also, a quick description of why this plugin should be renamed However, now that that functionality has been factored out into the reasonable |
You know, I mentioned when writing up the guidelines for A little part of me feels easy at stepping into the same namespace used by the existing Git hooks, but I think it's unlikely that Git would implement a hook called |
Plus, I have to admit, it just feels distinctly more clear. |
So, the further steps:
|
Bam. |
This is being revisited by #9: the I'm actually a little confused. How are apps being created now, in the git-receive-init case? I think they're not actually being explicitly created, just implicitly created when the git-update-hook in git-apps gets called. And now I'm considering if apps should be naturally tied to repos, or if creating apps should just be separated altogether unless something like a plushu-create-apps-with-repos plugin is installed. |
Ideally, all this plugin would handle would be the creating of repos on pushing a nonexistent repo. A main
git
plugin would handle the hooks and git-shell handoff, and another plugin/command likeapps:create
would be able to create hooked Git repos as well.(The plugin should then be renamed to something like
git-receive-init
, and would not be included in Plusku.)What this needs:
commands
needs to be replaced with ordered sourcing, so git-receive-init can perform theinit
beforegit-shell
handles it.git-init
needs to be a hook, so it can be called by receive-init and apps:create.The text was updated successfully, but these errors were encountered: