Merge branch 'jc/diff-format-doc' into maint
[gitweb.git] / git-rebase--interactive.sh
index b64dd28acf86e0b3075a638ae3419fb3a79a1815..c6a4629cbc2b69d3e6dfabe5e124384fe7fe611c 100644 (file)
@@ -1031,9 +1031,11 @@ test -s "$todo" || echo noop >> "$todo"
 test -n "$autosquash" && rearrange_squash "$todo"
 test -n "$cmd" && add_exec_commands "$todo"
 
+todocount=$(git stripspace --strip-comments <"$todo" | wc -l)
+
 cat >>"$todo" <<EOF
 
-$comment_char Rebase $shortrevisions onto $shortonto
+$comment_char Rebase $shortrevisions onto $shortonto ($todocount TODO item(s))
 EOF
 append_todo_help
 git stripspace --comment-lines >>"$todo" <<\EOF