commit 210c2321a3810880ec21d1c0f1ae41b5c0f4acc1 from: Stefan Sperling date: Tue Nov 01 08:41:13 2022 UTC do not hint at empty temporary diff files in the log message buffer ok op@ commit - 4ba5cca9fcd43c92643d303d9fade96556bfbe00 commit + 210c2321a3810880ec21d1c0f1ae41b5c0f4acc1 blob - f9a63056f68c10fe8374e38153081755932c1e97 blob + b40f67cf87889e4cd271c0870db2a357160443ad --- lib/worktree.c +++ lib/worktree.c @@ -6222,7 +6222,8 @@ got_worktree_commit(struct got_object_id **new_commit_ } err = commit_worktree(new_commit_id, &commitable_paths, - head_commit_id, NULL, worktree, author, committer, diff_path, + head_commit_id, NULL, worktree, author, committer, + (diff_path && cc_arg.diff_header_shown) ? diff_path : NULL, commit_msg_cb, commit_arg, status_cb, status_arg, repo); if (err) goto done;