branch: add edit_description() helper
commitc10388c7dc89ec4f8a6c1f7b1fd15d70e8ee0f07
authorJeff King <peff@peff.net>
Thu, 20 Apr 2017 21:08:41 +0000 (20 17:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Apr 2017 04:03:13 +0000 (20 21:03 -0700)
tree0d17204876a3c8bb39f67a59350636c7326df1ac
parentf5d284f6df5413f1fcdf2c92bbf0e8523298c483
branch: add edit_description() helper

Rather than have a variable with a short name that is fed to
git_path(), let's add a helper function that returns the
full path. This avoids the dangerous git_path() function.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c