mbox series

[0/2] branch: improve error log on branch not found by checking remotes refs

Message ID pull.1476.git.git.1679478126.gitgitgadget@gmail.com (mailing list archive)
Headers show
Series branch: improve error log on branch not found by checking remotes refs | expand

Message

John Cai via GitGitGadget March 22, 2023, 9:42 a.m. UTC
when failing to delete a branch with git branch -d <branch> because of
branch not found, try to find a remote refs matching <branch> and if so add
an hint: Did you forget --remote? to the error message

ctmbl (2):
  branch: improve error log on branch not found by checking remotes refs
  Fix mem leak in branch.c due to not-free newly added virtual_name
    variable

 builtin/branch.c | 29 ++++++++++++++++++++++++-----
 1 file changed, 24 insertions(+), 5 deletions(-)


base-commit: 950264636c68591989456e3ba0a5442f93152c1a
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1476%2Fctmbl%2Fbranch%2Fdeletion%2Fimprove-error-msg-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1476/ctmbl/branch/deletion/improve-error-msg-v1
Pull-Request: https://github.com/git/git/pull/1476