Skip to content

Commit

Permalink
making sure that git accepts files with capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
abranhe committed Feb 21, 2019
1 parent 68d3e9c commit f7cd36e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7cd36e

Please sign in to comment.