In case 'git cherry-pick -s commit' failed, the user had to use 'git
commit -s' (i.e. state the -s option again), which is easy to forget
about. Instead, write the signed-off-by line early, so plain 'git
commit' will have the same result.
Also update 'git commit -s', so that in case there is
Miklos Vajna vmik...@suse.cz writes:
+void append_signoff(struct strbuf *msgbuf, int ignore_footer)
+{
+ struct strbuf sob = STRBUF_INIT;
+ int i;
+
+ strbuf_addstr(sob, sign_off_header);
+ strbuf_addstr(sob, fmt_name(getenv(GIT_COMMITTER_NAME),
+
2 matches
Mail list logo