Re: [PATCH v2 2/3] branch: give a more helpful message on redundant arguments

2013-01-27 Thread Jonathan Nieder
Nguyễn Thái Ngọc Duy wrote: --- a/builtin/branch.c +++ b/builtin/branch.c @@ -852,14 +852,14 @@ int cmd_branch(int argc, const char **argv, const char *prefix) const char *branch_name; struct strbuf branch_ref = STRBUF_INIT; - if (detached) -

[PATCH v2 2/3] branch: give a more helpful message on redundant arguments

2013-01-25 Thread Nguyễn Thái Ngọc Duy
While at there, do not stop user from editing a branch description when the unrelated HEAD is detached. --- builtin/branch.c | 12 ++-- t/t3200-branch.sh | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/builtin/branch.c b/builtin/branch.c index 50fcacc..ca61c5b