[PATCH 0/1] [Outreachy] [RFC] branch: advise the user to checkout a different branch before deleting
- From
Heba Waly via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Jan 2, 2020, 02:49 UTC
- Message-ID
- <pull.507.git.1577933387.gitgitgadget@gmail.com>
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 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-507%2FHebaWaly%2Fdelete_branch_hint-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-507/HebaWaly/delete_branch_hint-v1 Pull-Request: https://github.com/gitgitgadget/git/pull/507
-- gitgitgadget