From: Jeff King Date: Mon, 21 May 2012 23:10:32 +0000 (-0400) Subject: format-patch: refactor get_patch_filename X-Git-Tag: v1.7.11-rc1~15^2~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a21c2f94fb6e74ebddb5c78cf6b5f68983646530?hp=a21c2f94fb6e74ebddb5c78cf6b5f68983646530 format-patch: refactor get_patch_filename The get_patch_filename function expects a commit argument and uses it to get the sanitized subject line when making a patch filename. However, we also want to use this same function for the cover letter, which does not have a commit object. The current solution is to create a fake commit with the subject "cover letter". Instead, let's make the get_patch_filename interface more flexibile, and allow passing a direct subject. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---