summaryrefslogtreecommitdiff
path: root/log-tree.h
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2009-03-23 02:14:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-23 04:33:04 (GMT)
commit6df514af9dfb44f104baa9b581e91de22af89b8d (patch)
treeaa0ba70807f8dbe7803fa3b9ace2cd01391c6efa /log-tree.h
parent46d164b0cd1d5d254047d7573c53e368e42bf5e5 (diff)
downloadgit-6df514af9dfb44f104baa9b581e91de22af89b8d.zip
git-6df514af9dfb44f104baa9b581e91de22af89b8d.tar.gz
git-6df514af9dfb44f104baa9b581e91de22af89b8d.tar.bz2
format-patch: construct patch filename in one function
reopen_stdout() usually takes the oneline subject of a commit, appends the patch suffix, prepends the output directory (if any) and then reopens stdout as the resulting file. Now the patch filename (the oneline subject and the patch suffix) is created in get_patch_filename() and passed to reopen_stdout() which prepends the output directory and reopens stdout as that file. The original function to get the oneline description, get_oneline_for_filename(), has been renamed to get_patch_filename() to reflect its new functionality. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.h')
0 files changed, 0 insertions, 0 deletions