Re: [PATCH] branch: give better message when no names specified for rename

2013-03-31 Thread Junio C Hamano
Jonathon Mah m...@jonathonmah.com writes: Signed-off-by: Jonathon Mah m...@jonathonmah.com --- The previous message was incorrect when not enough arguments were specified: $ git branch -m fatal: too many branches for a rename operation I changed to branch name required

Re: [PATCH] branch: give better message when no names specified for rename

2013-03-31 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: Jonathon Mah m...@jonathonmah.com writes: Signed-off-by: Jonathon Mah m...@jonathonmah.com --- The previous message was incorrect when not enough arguments were specified: $ git branch -m fatal: too many branches for a rename

[PATCH] branch: give better message when no names specified for rename

2013-03-30 Thread Jonathon Mah
Signed-off-by: Jonathon Mah m...@jonathonmah.com --- The previous message was incorrect when not enough arguments were specified: $ git branch -m fatal: too many branches for a rename operation I changed to branch name required instead of new branch name required in the hope that

Re: [PATCH] branch: give better message when no names specified for rename

2013-03-30 Thread Duy Nguyen
On Sun, Mar 31, 2013 at 8:27 AM, Jonathon Mah m...@jonathonmah.com wrote: - if (argc == 1) + if (!argc) + die(_(branch name required)); + else if (argc == 1) rename_branch(head, argv[0], rename 1);