Merge branch 'mh/fast-import-raise-default-depth'
authorJunio C Hamano <gitster@pobox.com>
Thu, 22 Jun 2017 21:15:23 +0000 (14:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Jun 2017 21:15:23 +0000 (14:15 -0700)
"fast-import" uses a default pack chain depth that is consistent
with other parts of the system.

* mh/fast-import-raise-default-depth:
fast-import: increase the default pack depth to 50

1  2 
fast-import.c
diff --combined fast-import.c
index 9a22fc92c0d029cf2a1362ea846f75f59978e870,05c73858b00b21a3ce2887c0573abc5d186e796a..fc2b22033b0f5748adbc173b6099fa7347bb9088
@@@ -280,7 -280,7 +280,7 @@@ struct recent_command 
  };
  
  /* Configured limits on output */
- static unsigned long max_depth = 10;
+ static unsigned long max_depth = 50;
  static off_t max_packsize;
  static int unpack_limit = 100;
  static int force_update;
@@@ -3285,7 -3285,9 +3285,7 @@@ static void option_export_pack_edges(co
  {
        if (pack_edges)
                fclose(pack_edges);
 -      pack_edges = fopen(edges, "a");
 -      if (!pack_edges)
 -              die_errno("Cannot open '%s'", edges);
 +      pack_edges = xfopen(edges, "a");
  }
  
  static int parse_one_option(const char *option)