def flush_git_rm_files():
if git_rm_files:
try:
subprocess.run(["git", "rm", "-f", *git_rm_files], stdout=subprocess.PIPE, stderr=subprocess.PIPE).check_returncode()
except subprocess.CalledProcessError:
pass
# clean up
for path in git_rm_files:
try:
os.unlink(path)
except FileNotFoundError:
pass
git_rm_files.clear()
# @subcommand
# def noop():
# "Do-nothing command. Used for blurb smoke-testing."
# pass
评论列表
文章目录