Re: [PATCH 2/6] status: say when the push branch was rebased cleanly
- From
- Aniket Gupta <aniketgupta3001@gmail.com>
- Date
- Nov 20, 2026, 19:02 UTC
- Message-ID
- <20261120190246.79249-1-aniketgupta3001@gmail.com>
- In-Reply-To
- <dc0efefa0ef02a04f211cf7e24a8b6855f36e12f.1791270504.git.gitgitgadget@gmail.com>
Hi Harald,
Thanks for working on this.
> + if (num_same) > + strvec_push(&argv, "--cherry-mark");
This makes git status slower when the branches have diverged as every commit on both sides now needs a patch id. With status.compareBranches = @{upstream} @{push} and 3000 commits on both side the status goes from 25ms to 150ms. With 10000, it goes from 60ms to 500ms. And with only @{upstream} it stays the same.
Would it make sense to count without --cherry-mark first and only run the patch id pass when the two counts are small?