Skip to content

Commit

Permalink
Dont include deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilmat committed Sep 7, 2017
1 parent 8711269 commit 38f7219
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2
2 changes: 1 addition & 1 deletion configure.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex

VERSION="0.1.1"
VERSION="0.1.2"
GIT_PRE_COMMIT_HOOK=".git/hooks/pre-commit"
COMMITTER_YML="committer.yml"
COMMITTER_LOCATION="/usr/local/bin/committer"
Expand Down
2 changes: 1 addition & 1 deletion core/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type TaskResult struct {

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

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

func (task Task) relevantChangedFiles(changedFilesList []string) []string {
Expand Down

0 comments on commit 38f7219

Please sign in to comment.