branch: error code with --edit-description
commit8f241151656053e3ae130e9e0025b9cf71ccc3ce
authorRubén Justo <rjusto@gmail.com>
Tue, 25 Oct 2022 22:57:18 +0000 (26 00:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2022 17:52:37 +0000 (26 10:52 -0700)
tree87b8fd8798a6076d9a1c92cacace5a5074696a49
parentdb29e6bbaed156ae9025ff0474fd788e58230367
branch: error code with --edit-description

Since c2d17ba3db0d (branch --edit-description: protect against mistyped
branch name, 2012-02-05) we return -1 on error editing the branch
description.

Let's change to 1, which follows the established convention and it is
better for portability reasons.

Signed-off-by: Rubén Justo <rjusto@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
t/t3200-branch.sh