coccinelle release 0.2.5
[bpt/coccinelle.git] / tools / splitpatch.ml
index 4621f1d..68af129 100644 (file)
@@ -133,12 +133,12 @@ let read_configs template =
 
 let maintainer_command file =
   Printf.sprintf
-    "cd %s; scripts/get_maintainer.pl --separator , --nogit -f %s"
+    "cd %s; scripts/get_maintainer.pl --separator , --nogit --norolestats -f %s"
     !git_tree file
 
 let subsystem_command file =
   Printf.sprintf
-    "cd %s; scripts/get_maintainer.pl --nogit --subsystem -f %s | grep -v @"
+    "cd %s; scripts/get_maintainer.pl --nogit --subsystem --norolestats -f %s | grep -v @"
     !git_tree file
 
 let checkpatch_command file =
@@ -215,6 +215,7 @@ let split_patch i =
   let get_size l =
     match Str.split_delim (Str.regexp ",") l with
       [_;size] -> int_of_string size
+    | [_] -> 1
     | _ -> failwith ("bad size: "^l) in
   let rec read_diff_or_atat _ =
     let l = input_line i in