1import subprocess 2def stage_file(filename): 3 return subprocess.call(["git", "add", "-A", filename])