di-sukharev / di-sukharev/opencommit

[Feature]: oco hook set for current repo only in .git/hooks

Open
#203 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.5k
Forks
445
Avg merge
18m
Merged PRs (30d)
2

Description

Description

i dont want it to be global, i just want current repo to be hooked

Suggested Solution

put it in cwd/.git/hooks/prepare... not ~/.git_hooks/prepare-commit-msg

Alternatives

No response

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the hook setup that currently targets ~/.git_hooks/prepare-commit-msg and trace how the current repository is identified. Update the behavior so the hook is placed in cwd/.git/hooks/prepare-commit-msg for only that repository, then verify that the global path is not modified.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript
Domain
cli, tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.