exec-staged 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/stage.js CHANGED
@@ -90,7 +90,7 @@ export class Stage {
90
90
  this.head = this.git(['rev-parse', 'HEAD']);
91
91
  this.gitDir = this.git(['rev-parse', '--absolute-git-dir']);
92
92
  this.patchPath = path.resolve(this.gitDir, 'patch.diff');
93
- this.git(['status', '--porcelain'])
93
+ this.git(['status', '--porcelain', '--no-renames'])
94
94
  .split('\n')
95
95
  .filter((f) => f.length)
96
96
  .forEach((f) => (this.status[f.slice(3)] = f.slice(0, 2)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exec-staged",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Run commands against the current git index",
5
5
  "keywords": [
6
6
  "git",
package/src/lib/stage.ts CHANGED
@@ -118,7 +118,7 @@ export class Stage {
118
118
  this.gitDir = this.git(['rev-parse', '--absolute-git-dir']);
119
119
  this.patchPath = path.resolve(this.gitDir, 'patch.diff');
120
120
 
121
- this.git(['status', '--porcelain'])
121
+ this.git(['status', '--porcelain', '--no-renames'])
122
122
  .split('\n')
123
123
  .filter((f) => f.length)
124
124
  .forEach((f) => (this.status[f.slice(3)] = f.slice(0, 2)));