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

[PATCH 3/5] Adjust git-merge-recursive.py for the new tool names.

From
Fredrik Kuivinen <freku045@student.liu.se>
Date
Sep 13, 2005, 21:40 UTC
Message-ID
<20050913214047.GD10953@c165.ib.student.liu.se>
In-Reply-To
<20050913213730.GA10953@c165.ib.student.liu.se>
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
---
 git-merge-recursive.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
c8d10db0a5380fc52681255b78433390b357c4d0
diff --git a/git-merge-recursive.py b/git-merge-recursive.py
--- a/git-merge-recursive.py
+++ b/git-merge-recursive.py
@@ -41,7 +41,7 @@ def merge(h1, h2, branch1Name, branch2Na
     if callDepth == 0:
         if len(ca) > 1:
             runProgram(['git-read-tree', h1.tree()])
-            runProgram(['git-update-cache', '-q', '--refresh'])
+            runProgram(['git-update-index', '-q', '--refresh'])
         # Use the original index if we only have one common ancestor
         
         cleanCache = False
@@ -205,14 +205,14 @@ def processEntry(entry, branch1Name, bra
                 assert(False)
 
         if updateWd and updateCache:
-            runProgram(['git-update-cache', '--add', '--', path])
+            runProgram(['git-update-index', '--add', '--', path])
         elif updateCache:
-            runProgram(['git-update-cache', '--add', '--cacheinfo',
+            runProgram(['git-update-index', '--add', '--cacheinfo',
                         '0%o' % mode, sha, path])
 
     def removeFile(clean, path):
         if cleanCache or (not cleanCache and clean):
-            runProgram(['git-update-cache', '--force-remove', '--', path])
+            runProgram(['git-update-index', '--force-remove', '--', path])
 
         if not cleanCache and clean:
             try:
Previous: Fredrik KuivinenNext: Fredrik Kuivinen
Message 4 of 6 in “More recursive merge updates”
  1. 0/5 More recursive merge updatesFredrik Kuivinen, Sep 13, 2005
  2. 1/5 Be more like the 'resolve' strategy.Fredrik Kuivinen, Sep 13, 2005
  3. 2/5 Don't output 'Automatic merge failed, ...'Fredrik Kuivinen, Sep 13, 2005
  4. 3/5 Adjust git-merge-recursive.py for the new tool names.Fredrik Kuivinen, Sep 13, 2005
  5. 4/5 Use a temporary index file when we merge the common ancestors.Fredrik Kuivinen, Sep 13, 2005
  6. 5/5 Use the 'die' function where it is appropriate.Fredrik Kuivinen, Sep 13, 2005

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.