Skip to content

Added selected state to file hunk management for improved selection handling#538

Open
stijnpotters1 wants to merge 1 commit into
masterfrom
fix/new-empty-files-commit
Open

Added selected state to file hunk management for improved selection handling#538
stijnpotters1 wants to merge 1 commit into
masterfrom
fix/new-empty-files-commit

Conversation

@stijnpotters1
Copy link
Copy Markdown
Contributor

Previously it was not able to make a commit with 0 hunks (code blocks) so it was not possible to push empty files for example. Now it is fixed.
image
image
image

@stijnpotters1 stijnpotters1 self-assigned this Jun 2, 2026
@stijnpotters1 stijnpotters1 linked an issue Jun 2, 2026 that may be closed by this pull request
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 2, 2026

} else if (selectedCount > 0) {
checkboxIndeterminate = true
}
} else if (hunkState && hunkState.totalHunks === 0 && hunkState.selected) {
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.

It might be nice to encapsulate this statement for better readability.

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.

Unversioned git file checks not enabling commit button

2 participants