]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-update-index.c
Now that cache.h needs strbuf.h, remove useless includes.
[git.git] / builtin-update-index.c
index a7a4574f2bff2a7db4a1c25aa4a514ad99760381..1091f1b26f0c19930ccf8b615d1c0eeeaf586f47 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright (C) Linus Torvalds, 2005
  */
 #include "cache.h"
-#include "strbuf.h"
 #include "quote.h"
 #include "cache-tree.h"
 #include "tree-walk.h"
@@ -303,7 +302,7 @@ static void update_one(const char *path, const char *prefix, int prefix_length)
 static void read_index_info(int line_termination)
 {
        struct strbuf buf;
-       strbuf_init(&buf);
+       strbuf_init(&buf, 0);
        while (1) {
                char *ptr, *tab;
                char *path_name;
@@ -716,7 +715,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
        }
        if (read_from_stdin) {
                struct strbuf buf;
-               strbuf_init(&buf);
+               strbuf_init(&buf, 0);
                while (1) {
                        char *path_name;
                        const char *p;