From 2243a839ccc9781a37c290e6c7d3e03bfb76b857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iiro=20J=C3=A4ppinen?= Date: Sun, 25 Aug 2019 16:04:10 +0300 Subject: [PATCH] fix: include renames when getting list of staged files --- src/getStagedFiles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/getStagedFiles.js b/src/getStagedFiles.js index e9904524d..1a7b81e1b 100644 --- a/src/getStagedFiles.js +++ b/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