safe commit changing line extraction