diff options
| author | Matt Hunter <m@lfurio.us> | 2026-05-09 09:02:01 -0400 |
|---|---|---|
| committer | Matt Hunter <m@lfurio.us> | 2026-05-10 04:47:01 -0400 |
| commit | ed7d2c87a983c5a7b555d7b8ef50919571195ef6 (patch) | |
| tree | aed8090a696c5f5a73ea4afb04db519ec904e3e9 /git-radar | |
| parent | 3d00004d7f60e2c64f3ee17d0beede8afc1b2254 (diff) | |
| download | git-sonar-ed7d2c87a983c5a7b555d7b8ef50919571195ef6.tar.gz git-sonar-ed7d2c87a983c5a7b555d7b8ef50919571195ef6.zip | |
precheck: Improve rebase detection
REBASE_HEAD will sometimes be left behind in .git after an interactive
rebase concludes (if the last step completed was a squash or edit, for
instance). Likewise, it may be missing _during_ a rebase, such as when
paused on a break command.
Instead, use the presence of the rebase-merge or rebase-apply
directories as the "rebase in progress" signal. Note still that
rebase-apply will exist during git-am as well.
These two directories are utilized by the two rebase implementation
backends, so we shouldn't normally expect to see them both at the same
time.
Signed-off-by: Matt Hunter <m@lfurio.us>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
