commit - 4ba5cca9fcd43c92643d303d9fade96556bfbe00
commit + 210c2321a3810880ec21d1c0f1ae41b5c0f4acc1
blob - f9a63056f68c10fe8374e38153081755932c1e97
blob + b40f67cf87889e4cd271c0870db2a357160443ad
--- lib/worktree.c
+++ lib/worktree.c
}
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;