Skip to content

Commit cbf8161

Browse files
authored
Merge pull request #29 from masaru-iritani/master
Replace `git whatchanged` with `git log --raw`
2 parents 26fb42a + c88ad46 commit cbf8161

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git-restore-mtime

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ class Git:
318318

319319
def log(self, merge=False, first_parent=False, commit_time=False,
320320
reverse_order=False, paths: list = None):
321-
cmd = 'whatchanged --pretty={}'.format('%ct' if commit_time else '%at')
321+
cmd = 'log --raw --pretty={}'.format('%ct' if commit_time else '%at')
322322
if merge: cmd += ' -m'
323323
if first_parent: cmd += ' --first-parent'
324324
if reverse_order: cmd += ' --reverse'

0 commit comments

Comments
 (0)