Skip to content

Commit 046a661

Browse files
committed
update diffIndexGenerate.ts
1 parent 4bd93fb commit 046a661

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cli/diffIndexGenerate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Check Git changes and generate a commit message.
1212
1313
Options:
1414
--cached Use only staged changes (equivalent to git --cached).
15+
If the flag is omitted, then the standard \`git status\` logic is followed:
16+
look for staged changes and use them, otherwise use unstaged changes.
1517
--help, -h Show this help and exit.`;
1618

1719
const DIFF_FLAGS = [

0 commit comments

Comments
 (0)