gims 0.6.4 β 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/QUICK_REFERENCE.md +3 -2
- package/README.md +1 -1
- package/bin/gims.js +8 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.5] - 2025-10-20
|
|
4
|
+
|
|
5
|
+
### π§ Command Behavior Updated
|
|
6
|
+
- **`g a` (amend) default behavior changed**: Now keeps the original commit message by default (`--no-edit`)
|
|
7
|
+
- **New `--edit` flag**: Use `g a --edit` to generate a new AI commit message
|
|
8
|
+
- **Simpler workflow**: `g a` simply merges current changes into previous commit without editing the message
|
|
9
|
+
|
|
10
|
+
### π Documentation Updates
|
|
11
|
+
- Updated all documentation to reflect the new amend behavior
|
|
12
|
+
- Clarified that `g a` merges changes while keeping the original message
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
3
16
|
## [0.6.4] - 2025-10-19
|
|
4
17
|
|
|
5
18
|
### π§ Command Aliases Fixed
|
package/QUICK_REFERENCE.md
CHANGED
|
@@ -11,7 +11,7 @@ g o # Online - AI commit + push
|
|
|
11
11
|
g ls # List - Short commit history
|
|
12
12
|
g ll # Large List - Detailed commit history
|
|
13
13
|
g h # History - Alias for list
|
|
14
|
-
g a # Amend -
|
|
14
|
+
g a # Amend - Merge changes into previous commit (keeps message)
|
|
15
15
|
g u # Undo - Undo last commit
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -55,7 +55,8 @@ g h # Same as g ls
|
|
|
55
55
|
```bash
|
|
56
56
|
g sg --multiple # Get 3 AI suggestions
|
|
57
57
|
g p # Preview before committing
|
|
58
|
-
g a #
|
|
58
|
+
g a # Amend: merge changes to previous commit (keeps message)
|
|
59
|
+
g a --edit # Amend with new AI-generated message
|
|
59
60
|
g sync --rebase # Smart sync with rebase
|
|
60
61
|
g stash # Stash with AI description
|
|
61
62
|
```
|
package/README.md
CHANGED
package/bin/gims.js
CHANGED
|
@@ -311,7 +311,7 @@ program.command('help-quick').alias('q')
|
|
|
311
311
|
console.log(` ${color.cyan('g ls')} List - Short commit history`);
|
|
312
312
|
console.log(` ${color.cyan('g ll')} Large List - Detailed commit history`);
|
|
313
313
|
console.log(` ${color.cyan('g h')} History - Alias for list`);
|
|
314
|
-
console.log(` ${color.cyan('g a')} Amend -
|
|
314
|
+
console.log(` ${color.cyan('g a')} Amend - Merge changes to previous commit (keeps message)`);
|
|
315
315
|
console.log(` ${color.cyan('g u')} Undo - Undo last commit\n`);
|
|
316
316
|
|
|
317
317
|
console.log(color.bold('Quick Setup:'));
|
|
@@ -701,8 +701,8 @@ program.command('stash')
|
|
|
701
701
|
});
|
|
702
702
|
|
|
703
703
|
program.command('amend').alias('a')
|
|
704
|
-
.description('Stage all changes and amend last commit')
|
|
705
|
-
.option('--
|
|
704
|
+
.description('Stage all changes and amend last commit (keeps message)')
|
|
705
|
+
.option('--edit', 'Generate new AI commit message')
|
|
706
706
|
.action(async (cmdOptions) => {
|
|
707
707
|
await ensureRepo();
|
|
708
708
|
try {
|
|
@@ -721,10 +721,7 @@ program.command('amend').alias('a')
|
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
723
723
|
|
|
724
|
-
if (cmdOptions.
|
|
725
|
-
await git.raw(['commit', '--amend', '--no-edit']);
|
|
726
|
-
Progress.success('Amended last commit with staged changes');
|
|
727
|
-
} else {
|
|
724
|
+
if (cmdOptions.edit) {
|
|
728
725
|
// Generate new message for amend
|
|
729
726
|
Progress.start('π€ Generating updated commit message');
|
|
730
727
|
const newMessage = await generateCommitMessage(rawDiff, getOpts());
|
|
@@ -732,6 +729,10 @@ program.command('amend').alias('a')
|
|
|
732
729
|
|
|
733
730
|
await git.raw(['commit', '--amend', '-m', newMessage]);
|
|
734
731
|
Progress.success(`Amended commit: "${newMessage}"`);
|
|
732
|
+
} else {
|
|
733
|
+
// Default: Keep existing message (--no-edit)
|
|
734
|
+
await git.raw(['commit', '--amend', '--no-edit']);
|
|
735
|
+
Progress.success('Amended last commit with staged changes (kept original message)');
|
|
735
736
|
}
|
|
736
737
|
} catch (e) {
|
|
737
738
|
handleError('Amend error', e);
|