File size: 309 Bytes
fb03795
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys
import os

file_path = sys.argv[1]
with open(file_path, 'r') as f:
    lines = f.readlines()

with open(file_path, 'w') as f:
    for line in lines:
        if '20bf7f03' in line and line.startswith('pick'):
            f.write(line.replace('pick', 'edit'))
        else:
            f.write(line)