]> asedeno.scripts.mit.edu Git - git.git/blobdiff - merge-index.c
Merge branch 'master' of git://repo.or.cz/git-gui
[git.git] / merge-index.c
index a9c8cc1f93a815a9b8226394e6f035a016fedbdb..7027d7865971646f178690a150246d9bc4d674c0 100644 (file)
@@ -1,10 +1,6 @@
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <signal.h>
-
 #include "cache.h"
 
-static const char *pgm = NULL;
+static const char *pgm;
 static const char *arguments[8];
 static int one_shot, quiet;
 static int err;
@@ -64,7 +60,7 @@ static int merge_entry(int pos, const char *path)
                        break;
                found++;
                strcpy(hexbuf[stage], sha1_to_hex(ce->sha1));
-               sprintf(ownbuf[stage], "%o", ntohl(ce->ce_mode) & (~S_IFMT));
+               sprintf(ownbuf[stage], "%o", ntohl(ce->ce_mode));
                arguments[stage] = hexbuf[stage];
                arguments[stage + 4] = ownbuf[stage];
        } while (++pos < active_nr);