Extends template based picking in git to allow repeated consecutive values with allow_same values option and use of template values with use_template_values option (undo doesn't work properly in this mode).