ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 liawzishen

git-diff-timeline

Git Diff 타임라인을 프롬프트 위에 표시하는 Claude Code mod입니다. commit 기록 카드, 브랜치 비교, GitHub 스타일 파일 변경 보기를 제공하며 로컬 git만 읽으므로 어떤 remote에서도 작동합니다.

번역 완료

이 mod 소개

git-diff-timeline은 프롬프트 위에 Git diff 타임라인을 그리는 Claude Code 플러그인입니다. History 탭에는 브랜치의 commit 카드가 표시됩니다(first parent이므로 병합된 PR은 하나의 commit으로 계산). commit을 클릭해 변경 사항을 보거나 두 개를 클릭해 비교할 수 있으며, commit message는 타임라인 아래에 표시되고 병합은 pull/merge request 제목으로 이름을 붙입니다. Branches 탭은 pull request처럼 두 브랜치(base...compare)를 비교해 앞선 commit과 뒤처진 commit, 갈라진 위치, compare 브랜치가 추가한 내용을 보여 줍니다. 사이드 패널에는 비교한 commit과 변경된 각 파일의 diff가 표시됩니다. 로컬 git만 읽으므로 GitHub, GitLab 또는 다른 remote에서 작동합니다. ~/.claude/settings.json의 env block(CLAUDE_CODE_PLUGIN_DIRS 및 CLAUDE_CODE_PLUGIN_DIR_WATCH)으로 폴더를 플러그인 디렉터리로 불러오거나 claude --plugin-dir /path/to/git-diff-timeline으로 한 세션에만 불러올 수 있습니다. `/gitdiff는 파일 보기를 열고 position 옵션(band 또는 pane)은 프롬프트 위 strip과 사이드 창 중 하나를 선택합니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add liawzishen/git-diff-timeline
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 .

동명의 다른 작품

비슷한 프로젝트