GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support post-checkout · Issue #1120 · pre-commit/pre-commit

Support post-checkout #1120

New issue
Copy link
New issue
Copy link
Closed
#1339
Closed
Support post-checkout#1120
#1339
Copy link
Labels
feature

Description

@domenkozar
domenkozar
opened on Aug 16, 2019
Issue body actions

I know this goes beyond the original intention (and the name), but it would be really useful to be able to use same pre-commit hooks for different git hooks.

We need to run some validation before checking out. The alternative is to use https://github.com/sds/overcommit, but I'd prefer for pre-commit to get better.

Reacted by Léo, LaFa777, Ammar Najjar, Matthieu Guilbert, Emma Vareilles, Sébastien Douche, Ruslan Kuprieiev and Lorenz Walthert

Activity

  1. asottile
    added
    feature
    on Aug 16, 2019
  2. asottile commented on Aug 16, 2019

    @asottile
    asottile
    on Aug 16, 2019
    Member
    More actions

    sure! there's already a few other git hooks supported and it shouldn't be too much work to add another one -- would you like to take a stab at it? here's where prepare-commit-msg was added for example: #1004

    given the others are currently file-based there might need to be some design aspects to this particular hook since post-checkout doesn't really operate on files

  3. asottile
    closed this as completedin #1339on Feb 23, 2020
  4. asottile commented on Mar 14, 2020

    @asottile
    asottile
    on Mar 14, 2020
    Member
    More actions

    oh right -- this got released as part of 2.2.0 -- thanks again for the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.