[PATCH 2/3] format-patch: pick up branch description when no ref is specified

2013-01-01 Thread Nguyễn Thái Ngọc Duy
find_branch_name() fails to detect format-patch --cover-letter -3 where no command line arguments are given and HEAD is automatically added. Detect branch name in this case so we can pick up the branch's description in cover letter. Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com ---

Re: [PATCH 2/3] format-patch: pick up branch description when no ref is specified

2013-01-01 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: find_branch_name() fails to detect format-patch --cover-letter -3 where no command line arguments are given and HEAD is automatically added. Nicely spotted. That is not the only case that takes this codepath, though. $ git format-patch

Re: [PATCH 2/3] format-patch: pick up branch description when no ref is specified

2013-01-01 Thread Duy Nguyen
On Wed, Jan 2, 2013 at 3:38 AM, Junio C Hamano gits...@pobox.com wrote: Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: find_branch_name() fails to detect format-patch --cover-letter -3 where no command line arguments are given and HEAD is automatically added. Nicely spotted. That is not