{"id":15294691,"url":"https://github.com/yanick/git-vaudeville","last_synced_at":"2026-02-03T11:05:25.824Z","repository":{"id":36050219,"uuid":"221089985","full_name":"yanick/git-vaudeville","owner":"yanick","description":"Git Hook management system","archived":false,"fork":false,"pushed_at":"2022-05-29T07:22:07.000Z","size":66,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T14:11:53.225Z","etag":null,"topics":["git","hooks"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yanick.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-11T23:39:21.000Z","updated_at":"2020-03-13T01:52:55.000Z","dependencies_parsed_at":"2022-09-01T08:11:34.488Z","dependency_job_id":null,"html_url":"https://github.com/yanick/git-vaudeville","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/yanick/git-vaudeville","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanick%2Fgit-vaudeville","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanick%2Fgit-vaudeville/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanick%2Fgit-vaudeville/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanick%2Fgit-vaudeville/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanick","download_url":"https://codeload.github.com/yanick/git-vaudeville/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanick%2Fgit-vaudeville/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29043790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","hooks"],"created_at":"2024-09-30T17:06:04.880Z","updated_at":"2026-02-03T11:05:25.807Z","avatar_url":"https://github.com/yanick.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git-Vaudeville\n\n`git-vaudeville` is a simple git hook management system. It is\nlanguage-agnostic, and allows to have global and per-project hooks.\n\n## Installation\n\n    npm install -g git-vaudeville\n\n## Usage\n\nTo unleash the power of `git-vaudeville`, first you need\nto enable it on a given repository:\n\n```\n$ cd ~/work/my-repo\n$ git-vaudeville install\n```\n\nThe install will create shims for `vaudeville` in `.git/hooks` (if scripts\nalready exist there, they will be safely moved to a timestamped backup\nsubdirectory). It will also create a `.git/hooks/vaudeville` directory\nwith subdirectories for each type of git hook.\n\nThen you may drop scripts in either those local `vaudeville` directories,\nor in the global `~/git/vaudeville/_hook-type_` directory. Those scripts can\nbe written in any language, as long as they are executable, it's all :100:.\n\nYou can get a summary of the hooks that are active for\na given repository via `git vaudeville info`:\n\n```\n$ git vaudeville info\nVaudeville directories\n - /home/yanick/git-vaudeville\n - ./.git/hooks/vaudeville\npre-commit\n - foo\n    .git/hooks/vaudeville\npre-push\n - do-not-push.fish\n    ~/git-vaudeville - don't push if string 'DO NOT PUSH' is present\n```\n\nAnd... that's it. Now vaudeville will call all the pertinent\nscripts for each phase.\n\n## Commands\n\n### `git vaudeville info`\n\nProvides a report of the directories `vaudeville` looks at\nfor hook scripts, as well as all the hooks it found.\n\nIf a script contains a line beginning with `ABSTRACT:`, it\nis used as its description in the listing.\n\n### `git vaudeville install`\n\nInstalls the vaudeville shims locally in the current repository.\nIf scripts already exist in `.git/hooks`, they are safely\ncopied in a timestamped subdirectories.\n\nThe installation also creates `.git/hooks/vaudeville` and its\nsubdirectories.\n\n### `git vaudeville run \u003cphase\u003e`\n\nRuns all the hooks for a given `phase`.\nTypically you won't run it manually, but can be useful for testing /\ndebugging.\n\nBear in mind that most hooks expect to get information via `stdin`. I.e.,\nyou'll likely have to call it like so:\n\n```\n$ echo \"dummy HEAD dummy HEAD^\" | git vaudeville run pre-push\n\n# or\n\n$ git vaudeville run pre-push --stdin \"dummy HEAD dummy HEAD^\"\n```\n\n### `git vaudeville help`\n\nPrints the list of commands.\n\n## Configuration\n\n### Vaudeville directories\n\nBy default Vaudeville looks for hooks in the global directory `~/git/vaudeville` and\nthe local directory `./.git/hooks/vaudevilles`. This can be customized via the\ngit configuration key `vaudeville.dirs`. For example, to use\n`~/git/vaudeville` (for global hooks), `./.git/hooks/vaudeville` (for local\nprivate hooks), and `./git-hooks` (for public local hooks):\n\n```\n$ git config --global vaudeville.dirs ~/git/vaudeville,./.git/hooks/vaudeville,./git-hooks\n```\n\n## Custom hook phases\n\nIt's totally possible to add custom hook phases by adding subdirectories of\nscripts in the vaudeville directories.\n\nFor example, I have a command `git-integrate` that merges work back\nto a main branch after running a bunch of checks:\n\n```\n#!/usr/bin/env fish\n\nset -l branch $argv[1]\n\nif test -z $branch\n    set branch master\nend\n\ngit vaudeville run integrate ( git rev-parse HEAD) $branch\n\nand git checkout $branch\n\nand git merge --no-ff -\n```\n\n## Alternatives\n\n- [git-hooks](https://github.com/icefox/git-hooks). (although\n  you might want to use Sweth's [maintained\n  fork](https://github.com/sweth/git-hooks)) Shell-based, very\n  close to vaudeville. Main difference is `git-hooks` wants the\n  hooks to live in the repo (under `./git-hooks`), whereas\n  `vaudeville` hides them under `.git/hooks/vaudeville`.\n\n## Thanks\n\nMad props go to Gizmo Mathboy to have come up with the name\n[Vaudeville](https://twitter.com/gizmomathboy/status/1174495897532715008).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanick%2Fgit-vaudeville","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanick%2Fgit-vaudeville","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanick%2Fgit-vaudeville/lists"}