Re: [PATCH 0/3] Make orphaned commit checks configurable
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 10, 2026, 22:29 UTC
- Message-ID
- <xmqq1p8spbg5.fsf@gitster.g>
- In-Reply-To
- <pull.2264.git.1794337920.gitgitgadget@gmail.com>
"Wyatt Holden via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 5 quoted lines
> When leaving a detached HEAD, git checkout and git switch > call orphaned_commit_warning() to warn about commits that are not reachable > from any existing ref or the destination HEAD. This requires enumerating > refs and walking commit history, which can be expensive in large > repositories.
I found some design choices made in 1/3 questionable but overall the series is coherently done and very easy to understand _why_ it wants to do what it does. Nice work.