git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/5] stash: remove merge-recursive.h include

From
Elijah Newren via GitGitGadget <gitgitgadget@gmail.com>
Date
Mar 16, 2025, 06:58 UTC
Message-ID
<d5611e8d666520d174c3839c10d55484657bb1b7.1742108339.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.1882.git.1742108339.gitgitgadget@gmail.com>
From: Elijah Newren <newren@gmail.com>

stash was modified to use merge_ort_nonrecursive() instead of merge_recursive_generic() back in commit 874cf2a60444 (stash: apply stash using 'merge_ort_nonrecursive()', 2022-05-10). That makes the inclusion of merge-recursive.h unnecessary. In preparation for the removal of merge-recursive.h, remove the unnecessary include.

Signed-off-by: Elijah Newren <newren@gmail.com>
---
 builtin/stash.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/builtin/stash.c b/builtin/stash.c
index dbaa999cf17..cfbd92852a6 100644
--- a/builtin/stash.c
+++ b/builtin/stash.c
@@ -13,7 +13,6 @@
 #include "lockfile.h"
 #include "cache-tree.h"
 #include "unpack-trees.h"
-#include "merge-recursive.h"
 #include "merge-ort-wrappers.h"
 #include "strvec.h"
 #include "run-command.h"
-- 
gitgitgadget
Previous: Elijah Newren via GitGitGadgetNext: Elijah Newren via GitGitGadget
Message 2 of 6 in “Miscellaneous fixups preparing for the removal of merge-recursive”
  1. 0/5 Miscellaneous fixups preparing for the removal of merge-recursiveElijah Newren via GitGitGadget, Mar 16, 2025
  2. 1/5 stash: remove merge-recursive.h includeElijah Newren via GitGitGadget, Mar 16, 2025
  3. 2/5 t6423: fix a comment that accidentally reversed two commitsElijah Newren via GitGitGadget, Mar 16, 2025
  4. 3/5 t7615: be more explicit about diff algorithm usedElijah Newren via GitGitGadget, Mar 16, 2025
  5. 4/5 merge-ort: fix accidental strset<->strintmapElijah Newren via GitGitGadget, Mar 16, 2025
  6. 5/5 merge-ort: remove extraneous word in commentElijah Newren via GitGitGadget, Mar 16, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.