From fed4821da3ab8ee2823bfe8a742b6afcf0723f53 Mon Sep 17 00:00:00 2001 From: kp2pml30 Date: Wed, 21 Aug 2024 11:33:39 +0400 Subject: [PATCH] remove numbers from patches themselves --- git-third-party | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-third-party b/git-third-party index 25f8058..1823477 100755 --- a/git-third-party +++ b/git-third-party @@ -126,7 +126,7 @@ def save(args: list[str]) -> None: patches_dir.joinpath(str(i)).unlink() patches_dir.mkdir(parents=True, exist_ok=True) target_dir = top_dir.joinpath(*name.split('/')) - subprocess.run(['git', 'format-patch', f'{conf["commit"]}..HEAD', '--numbered-files', '-o', patches_dir], check=True, cwd=target_dir) + subprocess.run(['git', 'format-patch', f'{conf["commit"]}..HEAD', '--no-numbered', '--numbered-files', '-o', patches_dir], check=True, cwd=target_dir) new_patches = subprocess.run(['git', 'rev-list', '--count', f'{conf["commit"]}..HEAD'], check=True, cwd=target_dir, text=True, capture_output=True) conf['patches'] = int(new_patches.stdout.strip())