Skip to content
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

Add pre/post hooks or git support #7

Open
thomasf opened this issue Dec 19, 2014 · 8 comments
Open

Add pre/post hooks or git support #7

thomasf opened this issue Dec 19, 2014 · 8 comments

Comments

@thomasf
Copy link

thomasf commented Dec 19, 2014

I keep my packages/ dirs in local git repos for each emacs installation I use to be able to go back for troubleshooting or quickly backing out of temporarily broken packages.

Would be great to combine that with this mode in some way.

@rranelli
Copy link
Owner

pre and post update hooks are probably straightforward to implement.

Do you think those would be enough for your use case ?

@thomasf
Copy link
Author

thomasf commented Dec 19, 2014

Yeah.,. really don't add them if no one else wants them, if no one else wants this I can just use advices.

@rranelli
Copy link
Owner

Alright. I will leave this open in the case someone finds the same need.

@andyleejordan
Copy link

This could be useful for me too. I have Git sub-modules for some packages where I'm tracking development versions, so I'd totally use this to auto-update them too.

@rranelli
Copy link
Owner

rranelli commented May 7, 2015

Ok, I will the before-update and after-update hooks when I find some time ;)

@andyleejordan
Copy link

Haha, sounds good :D

@rranelli
Copy link
Owner

Alright, done in 2e91e78 and 1c33c04.

@thomasf @andschwa Could you guys check if these are enough ?

Thanks !

@andyleejordan
Copy link

@rranelli This works perfectly for me with some way over-engineered Lisp to update my submodule(s, I thought I had more and wrote it to handle a list of them):

(add-hook 'auto-package-update-after-hook
      (lambda ()
        (--each '(("magit" "git pull upstream next"))
          (async-shell-command
           (concat "cd " (f-expand (f-join "lisp" (car it)) user-emacs-directory)
               " && " (cadr it))))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants