import pathlib, subprocess,sys
root=pathlib.Path(sys.argv[1]); root.mkdir(parents=True)
def git(*args): subprocess.run(['git','-C',str(root),*args],check=True,stdout=subprocess.DEVNULL)
git('init'); git('config','user.name','Review demo'); git('config','user.email','demo@example.com')
(root/'entry').write_text('old 1\nold 2\n'); git('add','entry'); git('commit','-m','Initial file')
(root/'entry').unlink(); (root/'entry').symlink_to('target')
