(self, with_message=None, preproc=True)
| 874 | self.commit_before_message.append(self.repo.get_head_commit_sha()) |
| 875 | |
| 876 | def run(self, with_message=None, preproc=True): |
| 877 | try: |
| 878 | if with_message: |
| 879 | self.io.user_input(with_message) |
| 880 | self.run_one(with_message, preproc) |
| 881 | return self.partial_response_content |
| 882 | while True: |
| 883 | try: |
| 884 | if not self.io.placeholder: |
| 885 | self.copy_context() |
| 886 | user_message = self.get_input() |
| 887 | self.run_one(user_message, preproc) |
| 888 | self.show_undo_hint() |
| 889 | except KeyboardInterrupt: |
| 890 | self.keyboard_interrupt() |
| 891 | except EOFError: |
| 892 | return |
| 893 | |
| 894 | def copy_context(self): |
| 895 | if self.auto_copy_context: |
no test coverage detected