mirror of
https://github.com/armbian/build.git
synced 2026-01-06 09:58:46 -08:00
patching: set commit index length to 12 when rewriting patches
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user