scripts/changelog/git.py (3 lines of code) (raw):

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