@@ -11,7 +11,7 @@ static char const * const builtin_commit_graph_usage[] = {
1111 N_ ("git commit-graph verify [--object-dir <objdir>] [--shallow] [--[no-]progress]" ),
1212 N_ ("git commit-graph write [--object-dir <objdir>] "
1313 "[--split[=<strategy>]] "
14- "[--input=<reachable|stdin-packs|stdin-commits|append|none >] "
14+ "[--input=<reachable|stdin-packs|stdin-commits|append>] "
1515 "[--[no-]progress] <split options>" ),
1616 NULL
1717};
@@ -24,7 +24,7 @@ static const char * const builtin_commit_graph_verify_usage[] = {
2424static const char * const builtin_commit_graph_write_usage [] = {
2525 N_ ("git commit-graph write [--object-dir <objdir>] "
2626 "[--split[=<strategy>]] "
27- "[--input=<reachable|stdin-packs|stdin-commits|append|none >] "
27+ "[--input=<reachable|stdin-packs|stdin-commits|append>] "
2828 "[--[no-]progress] <split options>" ),
2929 NULL
3030};
@@ -33,8 +33,7 @@ enum commit_graph_input {
3333 COMMIT_GRAPH_INPUT_REACHABLE = (1 << 1 ),
3434 COMMIT_GRAPH_INPUT_STDIN_PACKS = (1 << 2 ),
3535 COMMIT_GRAPH_INPUT_STDIN_COMMITS = (1 << 3 ),
36- COMMIT_GRAPH_INPUT_APPEND = (1 << 4 ),
37- COMMIT_GRAPH_INPUT_NONE = (1 << 5 )
36+ COMMIT_GRAPH_INPUT_APPEND = (1 << 4 )
3837};
3938
4039static struct opts_commit_graph {
@@ -84,8 +83,6 @@ static int option_parse_input(const struct option *opt, const char *arg,
8483 * to |= COMMIT_GRAPH_INPUT_STDIN_COMMITS ;
8584 else if (!strcmp (arg , "append" ))
8685 * to |= COMMIT_GRAPH_INPUT_APPEND ;
87- else if (!strcmp (arg , "none" ))
88- * to |= (COMMIT_GRAPH_INPUT_APPEND | COMMIT_GRAPH_INPUT_NONE );
8986 else
9087 die (_ ("unrecognized --input source, %s" ), arg );
9188 return 0 ;
@@ -231,8 +228,6 @@ static int graph_write(int argc, const char **argv)
231228 opts .obj_dir = get_object_directory ();
232229 if (opts .input & COMMIT_GRAPH_INPUT_APPEND )
233230 flags |= COMMIT_GRAPH_WRITE_APPEND ;
234- if (opts .input & COMMIT_GRAPH_INPUT_NONE )
235- flags |= COMMIT_GRAPH_WRITE_NO_INPUT ;
236231 if (opts .split )
237232 flags |= COMMIT_GRAPH_WRITE_SPLIT ;
238233 if (opts .progress )
0 commit comments