From f7cd36e56b99c724fb68871da74eda1152e49d73 Mon Sep 17 00:00:00 2001 From: Abraham Hernandez Date: Thu, 21 Feb 2019 02:42:39 -0500 Subject: [PATCH] making sure that git accepts files with capitalization --- scripts/formatter.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/formatter.js b/scripts/formatter.js index 77b4e514..f058e806 100644 --- a/scripts/formatter.js +++ b/scripts/formatter.js @@ -33,6 +33,10 @@ getFiles('../', (err, res) => { if (file !== decamelize(file)) { console.log(`The file ${chalk.red(file)} was successfuly changed to ${chalk.green(decamelize(file))}`); + + // Change file on git history + // https://stackoverflow.com/a/16071375/7602110 + shell(`git mv --force ${file} ${decamelize(file)}`); } // Replace for convention .h for .hpp