liawzishen/claude-code-mods/tree/main/git-diff-timeline
이 mod 소개
Git Diff 타임라인을 프롬프트 위에 표시하는 Claude Code mod입니다. 브랜치의 커밋을 카드로 보여 주며(first parent이므로 병합된 pull request는 커밋 1개로 취급), 커밋을 클릭하면 변경 사항이 나타나고 두 번째 커밋을 클릭하면 둘을 비교하며 비교 중인 커밋 메시지는 타임라인 아래에 표시됩니다. Branches 탭은 pull request와 같은 방식(base...compare)으로 두 브랜치를 비교해 앞선 커밋과 뒤처진 커밋 및 분기된 위치를 보여 줍니다. GitHub 스타일 파일 보기에는 비교한 커밋과 변경된 각 파일의 diff를 나열하는 사이드 패널이 있습니다. 로컬 git만 읽으므로 GitHub, GitLab 또는 다른 원격 저장소에서도 작동합니다.
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add liawzishen/claude-code-mods claude plugin install git-diff-timeline
원문 / README
git-diff-timeline
A Claude Code mod that puts a Git Diff timeline above the prompt.
- History: a card of the branch's commits (first parent, so a merged pull request is one commit). Click a commit to see its changes; click a second commit to compare the two. The commit messages being compared show under the timeline, with merges named by their pull or merge request title.
- Branches: compare two branches the way a pull request would (
base...compare): commits ahead and behind, where they split, and what the compare branch adds. - Files changed: a side panel listing the compared commits and each changed file, with its diff.
It reads local git only, so it works with GitHub, GitLab or any other remote.
Install
Load the folder as a plugin directory, for every session, through the env block of ~/.claude/settings.json:
{
"env": {
"CLAUDE_CODE_PLUGIN_DIRS": "/path/to/git-diff-timeline",
"CLAUDE_CODE_PLUGIN_DIR_WATCH": "1"
}
}
Or for one session: claude --plugin-dir /path/to/git-diff-timeline.
/gitdiff opens the files view. The position option (band or pane) chooses between the strip above the prompt and a side pane.
Test
claude plugin test .
claude plugin validate .
동명의 다른 작품
- git-diff-timelineliawzishen · ★ 0
