Skip to content

Commit c4f88c0

Browse files
author
ando
authored
Merge pull request #55 from iamando/develop
feature: use desciptive checkin for message to check in includes
2 parents 06b1ea8 + 29d8b12 commit c4f88c0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/utils/commiter.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ export const commiter = async () => {
5454
if (stderrStatus) throw new CliError(`An error occured: ${stderrStatus}`)
5555

5656
if (
57-
stdoutStatus.includes('Changes not staged for commit') ||
58-
stdoutStatus.includes('Untracked files')
57+
stdoutStatus.includes('no changes added to commit') ||
58+
stdoutStatus.includes(
59+
'nothing added to commit but untracked files present'
60+
)
5961
) {
60-
const type = stdoutStatus.includes('Changes not staged for commit')
62+
const type = stdoutStatus.includes('no changes added to commit')
6163
? 'modified'
6264
: 'untracked'
6365
const addStagedFiles = await confirm({

0 commit comments

Comments
 (0)