tj / tj/git-extras

Ability to customize commit messages in git-cp

Open
#1,252 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Shell
Stars
18.1k
Forks
1.2k
Avg merge
5d 17h
Merged PRs (30d)
1

Description

git-cp does not allow to associate commits with a specific GitHub/GitLab/.. issue. For example:

Copy a.txt into b.txt (#1252)
Restore a.txt (#1252)
Duplicate a.txt history into b.txt (#1252)

It might be useful for some teams. For example, we use the following syntax: #1252 Commit message. Here is a sample implementation for this scenario: git-cp

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

Start with the git-cp entry point and review the linked sample implementation to understand how commit messages are currently formed. Define how users would supply a customizable issue prefix or suffix, then verify that copied commits can include the requested issue reference without breaking existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, shell
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.