fix: make commit update detached HEAD#2276
Conversation
📝 WalkthroughWalkthroughThe pull request adds support for making commits in a detached HEAD state. The implementation detects when the repository is in detached HEAD mode and directly updates the HEAD reference instead of updating a branch pointer. A new test case validates this behavior. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Looks good |
|
🎉 This PR is included in version 1.36.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
Thanks for the fix. |
I'm fixing a bug or typo
This matches the git's behavior.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.