diff options
author | Stephen Boyd <bebarino@gmail.com> | 2009-03-23 03:14:05 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-23 05:45:19 +0100 |
commit | 108dab2811701c20d6d6e8d9fe8af88e41d65d77 (patch) | |
tree | 7f421f58447ff79392778c433f061d7fcbb91f2a /log-tree.h | |
parent | format-patch: move get_patch_filename() into log-tree (diff) | |
download | git-108dab2811701c20d6d6e8d9fe8af88e41d65d77.tar.xz git-108dab2811701c20d6d6e8d9fe8af88e41d65d77.zip |
format-patch: --attach/inline uses filename instead of SHA1
Currently when format-patch is used with --attach or --inline the patch
attachment has the SHA1 of the commit for its filename. This replaces
the SHA1 with the filename used by format-patch when outputting to
files.
Fix tests relying on the SHA1 output and add a test showing how the
--suffix option affects the attachment filename output.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.h')
-rw-r--r-- | log-tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/log-tree.h b/log-tree.h index 78dc5be76f..20b5caf1aa 100644 --- a/log-tree.h +++ b/log-tree.h @@ -13,7 +13,7 @@ int log_tree_commit(struct rev_info *, struct commit *); int log_tree_opt_parse(struct rev_info *, const char **, int); void show_log(struct rev_info *opt); void show_decorations(struct rev_info *opt, struct commit *commit); -void log_write_email_headers(struct rev_info *opt, const char *name, +void log_write_email_headers(struct rev_info *opt, struct commit *commit, const char **subject_p, const char **extra_headers_p, int *need_8bit_cte_p); |