Fix MR operations for detached heads
Description This fixes a problem with detached heads, where glab tries to find a branch even though an MR ID was given and a branch is not necessary to execute the command.
(also fixes a minor documentation issue I found while trying to setup things to get started)
Related Issue I can't reopen the issue #735 (closed) but as stated there, it was not fixed with the latest release Resolves #735 (closed)
How Has This Been Tested?
Manually executing glab mr diff
with an ID on a git setup with a detached head
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms)