diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2024-08-29 22:57:35 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2024-08-29 22:57:35 +0200 |
| commit | b2a4da4df27048c271cb341a6b4b60658d0469a1 (patch) | |
| tree | 41614ae09a64dc52c52d2d668fe559770ca980af /docs/magit-section.org | |
| parent | c339b97e3244f00f69364680965f8cc7e1ff41fe (diff) | |
magit-insert-recent-commits: Only use explicit range with --graph
Since [1: 55a61d15e8] we use an explicit range "HEAD~<N>..HEAD" in
addition to "-n<N>", for a massive speedup when using "--graph".
When not using "--graph", then that actually results in a (smaller)
slowdown, so stop doing it in that case.
When `core.commitGraph' is enabled (the default) and an up-to-date
commit-graph file exists (it usually does not), then we could always
omit the range, but it wouldn't make much of a difference in that case.
core.commitGraph=false -n10 0.557
core.commitGraph=false HEAD~10..HEAD 1.613
core.commitGraph=false -n10 HEAD~10..HEAD 1.569
core.commitGraph=false --graph -n10 63.776
core.commitGraph=false --graph HEAD~10..HEAD 1.555
core.commitGraph=false --graph -n10 HEAD~10..HEAD 1.500
core.commitGraph=true -n10 0.545
core.commitGraph=true HEAD~10..HEAD 0.688
core.commitGraph=true -n10 HEAD~10..HEAD 0.630
core.commitGraph=true --graph -n10 0.542
core.commitGraph=true --graph HEAD~10..HEAD 0.598
core.commitGraph=true --graph -n10 HEAD~10..HEAD 0.491
Also see #5075.
1: 2015-09-07 55a61d15e85fe46409e512cc60815e61b4843066
avoid `git log --graph' inefficiency
Diffstat (limited to 'docs/magit-section.org')
0 files changed, 0 insertions, 0 deletions
