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

hooks #1

Open
drm opened this issue Dec 30, 2016 · 0 comments
Open

hooks #1

drm opened this issue Dec 30, 2016 · 0 comments

Comments

@drm
Copy link

drm commented Dec 30, 2016

super useful:

    git.hooks.install:
        flags:
            write: true
            with_verbose: false
        do: |
            for f in $(keys tasks._git.hook); do
                hook_file=".git/hooks/$$(echo $f | sed 's/_/-/g')";
                echo "#! /bin/bash -e" $(write ? "> $hook_file");
                $(z.cmd) git:hook $(with_verbose ? "--verbose") $$(basename $f) --explain $(write ? "> $hook_file && chmod +x $hook_file" : "")
                echo "$hook_file written."
            done

    git.hook:
        args:
            name: ?
        do: $(tasks._git.hook[name])

    _git.hook.pre_commit:
#        ( implement hook here )
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

1 participant