Skip to content
  • Duy Nguyen's avatar
    switch: imply --detach when HEAD is already detached · 27d9120b
    Duy Nguyen authored
    --detach provides a safeguard against detached head mode, which is scary
    for new people. But HEAD is already detached, having to type --detach
    every time you switch does not really add any value. You already know
    how to handle that mode. Relax it in this case and behave more like
    git-checkout.
    27d9120b