Skip to content

Commit

Permalink
fix: include renames when getting list of staged files
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj authored and okonet committed Aug 25, 2019
1 parent c9424ad commit 2243a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getStagedFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const execGit = require('./execGit')

module.exports = async function getStagedFiles(options) {
try {
const lines = await execGit(['diff', '--staged', '--diff-filter=ACM', '--name-only'], options)
const lines = await execGit(['diff', '--staged', '--diff-filter=ACMR', '--name-only'], options)
return lines ? lines.split('\n') : []
} catch (error) {
return null
Expand Down

0 comments on commit 2243a83

Please sign in to comment.