Skip to content

pr-507/HebaWaly/delete_branch_hint-v1

…nch before deleting

When a user attempts to delete a checked out branch, an error message is
displayed saying: "error: Cannot delete branch checked out at ". This patch
suggests displaying a hint after the error message advising the user to
checkout another branch first using "git checkout ".

Heba Waly (1):
  branch: advise the user to checkout a different branch before deleting

 builtin/branch.c  | 2 ++
 t/t3200-branch.sh | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

base-commit: 0a76bd7381ec0dbb7c43776eb6d1ac906bca29e6

Submitted-As: https://lore.kernel.org/git/pull.507.git.1577933387.gitgitgadget@gmail.com
Assets 2