Skip to content

Commit 8ddae87

Browse files
committed
Add --follow to find data across file renames
1 parent d2e48a8 commit 8ddae87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function unifiedInferGitMeta(options = {}) {
4747
// eslint-disable-next-line complexity
4848
return async (_, file) => {
4949
const {stdout} = await promisify(exec)(
50-
'git log --all --format="%aN,%aE,\\"%cD\\"" "' + file.path + '"',
50+
'git log --all --follow --format="%aN,%aE,\\"%cD\\"" "' + file.path + '"',
5151
{cwd: file.cwd}
5252
)
5353

0 commit comments

Comments
 (0)