Skip to content

feat: add git COMMIT_EDITMSG mode - #5

Merged
bajrangCoder merged 2 commits into
Acode-Foundation:mainfrom
dikidjatar:feat/gitcommitmsg-mode
Jul 10, 2026
Merged

feat: add git COMMIT_EDITMSG mode#5
bajrangCoder merged 2 commits into
Acode-Foundation:mainfrom
dikidjatar:feat/gitcommitmsg-mode

Conversation

@dikidjatar

Copy link
Copy Markdown
Contributor

No description provided.


DiffZone { DiffBlock+ }

DiffBlock { DiffGitLine (DiffMetaLine | DiffContextLine)* }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DiffBlock never references Hunk, so real patch lines parse as recovery errors. npm run generate reports DiffHunkHeader, DiffAddedLine, DiffRemovedLine, and Hunk as unused.

Comment thread src/languages/gitcommitmsg/tokens.js Outdated
DiffContextLine,
} from "./parser.terms.js";

const COMMIT_LINE_WARM_LENGTH = 30;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subject lines start getting MessageWarn after only 30 chars, and MessageWarn is styled as tags.invalid. That makes ordinary commit subjects like feat: add git COMMIT_EDITMSG mode partially invalid even though they are well below the common 50/72 guideline.

@bajrangCoder
bajrangCoder merged commit e01638f into Acode-Foundation:main Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants