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

[PATCH 3/5] merge-tree: lose unused "resolve_directories"

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 26, 2012, 23:03 UTC
Message-ID
<1356563020-13919-4-git-send-email-gitster@pobox.com>
In-Reply-To
<1356563020-13919-1-git-send-email-gitster@pobox.com>
This option is always set; simplify.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 builtin/merge-tree.c | 3 ---
 1 file changed, 3 deletions(-)
diff --git a/builtin/merge-tree.c b/builtin/merge-tree.c
index b61d811..95de162 100644
--- a/builtin/merge-tree.c
+++ b/builtin/merge-tree.c
@@ -6,7 +6,6 @@
 #include "merge-blobs.h"
 
 static const char merge_tree_usage[] = "git merge-tree <base-tree> <branch1> <branch2>";
-static int resolve_directories = 1;
 
 struct merge_list {
 	struct merge_list *next;
@@ -198,8 +197,6 @@ static int unresolved_directory(const struct traverse_info *info, struct name_en
 	struct tree_desc t[3];
 	void *buf0, *buf1, *buf2;
 
-	if (!resolve_directories)
-		return 0;
 	p = n;
 	if (!p->mode) {
 		p++;
-- 
1.8.1.rc3.356.g686f81c
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 6 in “merge-tree fix-ups”
  1. 0/5 merge-tree fix-upsJunio C Hamano, Dec 26, 2012
  2. 1/5 Which merge_file() function do you mean?Junio C Hamano, Dec 26, 2012
  3. 2/5 merge-tree: lose unused "flags" from merge_listJunio C Hamano, Dec 26, 2012
  4. 3/5 merge-tree: lose unused "resolve_directories"Junio C Hamano, Dec 26, 2012
  5. 4/5 merge-tree: add comments to clarify what these functions are doingJunio C Hamano, Dec 26, 2012
  6. 5/5 merge-tree: fix d/f conflictsJunio C Hamano, Dec 26, 2012

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.