patching: set commit index length to 12 when rewriting patches

This commit is contained in:
amazingfate
2023-12-29 16:03:26 +08:00
committed by Igor
parent 40b8751420
commit afc30e64eb

View File

@@ -805,6 +805,7 @@ def export_commit_as_patch(repo: git.Repo, commit: str):
'--zero-commit', # do not use the git revision, instead 000000...0000
'--stat=120', # 'wider' stat output; default is 80
'--stat-graph-width=10', # shorten the diffgraph graph part, it's too long
'--abbrev=12', # force index length to 12
"-1", "--stdout", commit
],
cwd=repo.working_tree_dir,