Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 38f7219

Browse files
committed
Dont include deleted files
1 parent 8711269 commit 38f7219

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.1
1+
0.1.2

configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -ex
22

3-
VERSION="0.1.1"
3+
VERSION="0.1.2"
44
GIT_PRE_COMMIT_HOOK=".git/hooks/pre-commit"
55
COMMITTER_YML="committer.yml"
66
COMMITTER_LOCATION="/usr/local/bin/committer"

core/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type TaskResult struct {
2626

2727
var shouldStage = (os.Getenv("COMMITTER_SKIP_STAGE") == "")
2828

29-
var changedFiles, _ = exec.Command("git", "diff", "--cached", "--name-only").Output()
29+
var changedFiles, _ = exec.Command("git", "diff", "--diff-filter=ACMRTUXB", "--cached", "--name-only").Output()
3030
var changedFilesList = strings.Split(string(changedFiles), "\n")
3131

3232
func (task Task) relevantChangedFiles(changedFilesList []string) []string {

0 commit comments

Comments
 (0)