From 434f0b4a290d2f92ddc79df5f057c74b93dd973b Mon Sep 17 00:00:00 2001 From: "ityaozm@gmail.com" Date: Wed, 3 Jan 2024 11:07:36 +0800 Subject: [PATCH] fix(CommitCommand): add newLine(3) before and after confirming commit message - Add newLine(3) before and after confirming commit message to improve readability - Update the `git diff` output in the question for clarity --- app/Commands/CommitCommand.php | 4 ++-- tests/Fixtures/repository | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Commands/CommitCommand.php b/app/Commands/CommitCommand.php index 2a9eca2..0659854 100644 --- a/app/Commands/CommitCommand.php +++ b/app/Commands/CommitCommand.php @@ -102,7 +102,7 @@ function ($attempts) use ($cachedDiff): string { ); }, 'generating...'); - $this->newLine(); + $this->newLine(2); $this->task('2. Confirming commit message', function () use (&$message): void { $this->newLine(); @@ -131,7 +131,7 @@ function ($attempts) use ($cachedDiff): string { }); }, 'confirming...'); - $this->newLine(); + $this->newLine(2); $this->task('3. Committing message', function () use ($message): void { $this->newLine(); tap($this->createProcess($this->getCommitCommand($message)), function (Process $process): void { diff --git a/tests/Fixtures/repository b/tests/Fixtures/repository index 8828cba..9fa07b5 160000 --- a/tests/Fixtures/repository +++ b/tests/Fixtures/repository @@ -1 +1 @@ -Subproject commit 8828cbacbc2d141440bf3457d0feacfa8582b77f +Subproject commit 9fa07b5ce7c4c16dc6a693cac427db28a2d3e50f