Skip to content

Commit 67e38b4

Browse files
claudeduyetbot
andcommitted
fix(commit): use -- separator in git diff HEAD to avoid ambiguous argument error
Co-Authored-By: duyetbot <duyetbot@users.noreply.github.com>
1 parent abc2e08 commit 67e38b4

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

commit/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "commit",
33
"description": "Create a Git commit with semantic commit message format and PR workflow with templates",
4-
"version": "1.3.0",
4+
"version": "1.3.1",
55
"author": {
66
"name": "duyet"
77
}

commit/commands/and-create-pr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Create a semantic commit and open a pull request for the changes.
1717
## Context
1818

1919
- Current Git status: !`git status`
20-
- Current Git diff (staged and unstaged changes): !`git diff HEAD`
20+
- Current Git diff (staged and unstaged changes): !`git diff HEAD --`
2121
- Current branch: !`git branch --show-current`
2222
- Default branch: !`git remote show origin | grep 'HEAD branch' | cut -d' ' -f5'
2323
- Recent commits: !`git log --oneline -5`

commit/commands/and-push.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: Create a git commit with semantic commit message format and push to
88
## Context
99

1010
- Current Git status: !`git status`
11-
- Current Git diff (staged and unstaged changes): !`git diff HEAD`
11+
- Current Git diff (staged and unstaged changes): !`git diff HEAD --`
1212
- Current branch: !`git branch --show-current`
1313
- Recent commits: !`git log --oneline -10`
1414

commit/commands/commit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: Create a git commit with semantic commit message format
88
## Context
99

1010
- Current Git status: !`git status`
11-
- Current Git diff (staged and unstaged changes): !`git diff HEAD`
11+
- Current Git diff (staged and unstaged changes): !`git diff HEAD --`
1212
- Current branch: !`git branch --show-current`
1313
- Recent commits: !`git log --oneline -10`
1414

0 commit comments

Comments
 (0)