From: Long 76 Date: Tue, 28 Jul 2026 15:28:55 GMT Subject: Re: REBASE_HEAD still exists after success end rebase Message-ID: In-Reply-To: <9ee7b916-a9ce-4300-baf4-b24d0a52fe46@mail.ru> + phillip.wood@dunelm.org.uk 28.07.2026 18:27, Long 76 пишет: >> I made a very short-lived effort to look into why this "bug" was >> happening.  I say "bug" in quotes, because I'm not even sure if it is >> even problematic behavior. > > I think this is a bug because git create similar HEADs if you made merge > or cherry-pick. I don't have problems with them. > > Plus by git rebase docs on official site flag '--show-current-patch': > --- > Show the current patch in an interactive rebase or when rebase is > stopped because of conflicts. This is the equivalent of git show > REBASE_HEAD. > --- > For me it means that return patch only if rebase in progress - not > aborted/not complete/have conflicts > >> I solved my need at the time (detecting a rebase in progress) by >> checking for the existence of either of the 'rebase-merge' or >> 'rebase-apply' directories in $GIT_DIR. > > Thanks for advice! I don't knew it.