Skip to content

Commit f7cd36e

Browse files
committed
making sure that git accepts files with capitalization
1 parent 68d3e9c commit f7cd36e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/formatter.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ getFiles('../', (err, res) => {
3333

3434
if (file !== decamelize(file)) {
3535
console.log(`The file ${chalk.red(file)} was successfuly changed to ${chalk.green(decamelize(file))}`);
36+
37+
// Change file on git history
38+
// https://stackoverflow.com/a/16071375/7602110
39+
shell(`git mv --force ${file} ${decamelize(file)}`);
3640
}
3741

3842
// Replace for convention .h for .hpp

0 commit comments

Comments
 (0)