mirror of
https://github.com/git/git.git
synced 2024-11-01 06:47:52 +01:00
Merge branch 'ok/rebase-i-count-todo'
* ok/rebase-i-count-todo: Show number of TODO items for interactive rebase
This commit is contained in:
commit
3701aa093e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue