Skip to content

Commit

Permalink
Merge branch 'ok/rebase-i-count-todo'
Browse files Browse the repository at this point in the history
* ok/rebase-i-count-todo:
  Show number of TODO items for interactive rebase
  • Loading branch information
Junio C Hamano committed Dec 22, 2014
2 parents aa9066f + 97f05f4 commit 3701aa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git-rebase--interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3701aa0

Please sign in to comment.