Skip to content
Permalink
Browse files
fix: include renames when getting list of staged files
  • Loading branch information
iiroj authored and okonet committed Aug 25, 2019
1 parent c9424ad commit 2243a839ccc9781a37c290e6c7d3e03bfb76b857
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/getStagedFiles.js
@@ -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

0 comments on commit 2243a83

Please sign in to comment.