opencommit 1.1.28 → 1.1.30

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.
Files changed (2) hide show
  1. package/out/cli.cjs +4 -4
  2. package/package.json +1 -1
package/out/cli.cjs CHANGED
@@ -15763,7 +15763,7 @@ function G3(t, e2) {
15763
15763
  // package.json
15764
15764
  var package_default = {
15765
15765
  name: "opencommit",
15766
- version: "1.1.27",
15766
+ version: "1.1.29",
15767
15767
  description: "GPT CLI to auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
15768
15768
  keywords: [
15769
15769
  "git",
@@ -21206,12 +21206,12 @@ var prepareCommitMessageHook = async () => {
21206
21206
  return;
21207
21207
  const stagedFiles = await getStagedFiles();
21208
21208
  const changedFiles = await getChangedFiles();
21209
- if (!stagedFiles && changedFiles)
21210
- await gitAdd({ files: changedFiles });
21211
- else {
21209
+ if (!stagedFiles && !changedFiles) {
21212
21210
  ce("No changes detected, write some code and run `oc` again");
21213
21211
  process.exit(1);
21214
21212
  }
21213
+ if (!stagedFiles && changedFiles)
21214
+ await gitAdd({ files: changedFiles });
21215
21215
  const staged = await getStagedFiles();
21216
21216
  if (!staged)
21217
21217
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencommit",
3
- "version": "1.1.28",
3
+ "version": "1.1.30",
4
4
  "description": "GPT CLI to auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
5
5
  "keywords": [
6
6
  "git",