Skip to content

Conversation

@stefanhaller
Copy link
Collaborator

We removed prefilling the skipHook prefix in b102646 (#4374) with the intention of making it clearer that using the prefix in normal commits and typing w to skip hooks are now two independent features.

It turns out that some people liked it with prefilling the prefix and perceive it as a regression, so put it back in.

But only if we don't have a preserved message; this is an important use case, when you try to make a normal commit, the hook fails, and then you want to make the same commit with skipping the hook, but with the same message that you already typed.

Labeled as ignore-for-release because it reverts some of the behavior of #4374 which isn't released yet.

@stefanhaller stefanhaller added the ignore-for-release This will exclude the PR from release notes label Apr 3, 2025
@codacy-production
Copy link

codacy-production bot commented Apr 3, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for 39165491 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (3916549) Report Missing Report Missing Report Missing
Head commit (ced7090) 54288 47068 86.70%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#4456) 12 12 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

@stefanhaller stefanhaller force-pushed the fill-in-skipHookPrefix-again-when-pressing-w branch from 030b994 to 4ce3026 Compare April 8, 2025 14:37
Copy link
Owner

@jesseduffield jesseduffield left a comment

Choose a reason for hiding this comment

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

LGTM, tested it and it works as expected

We removed prefilling the skipHook prefix in b102646 with the intention of
making it clearer that using the prefix in normal commits and typing `w` to skip
hooks are now two independent features.

It turns out that some people liked it with prefilling the prefix and perceive
it as a regression, so put it back in.

But only if we don't have a preserved message; this is an important use case,
when you try to make a normal commit, the hook fails, and then you want to make
the same commit with skipping the hook, but with the same message that you
already typed.
@stefanhaller stefanhaller force-pushed the fill-in-skipHookPrefix-again-when-pressing-w branch from 4ce3026 to ced7090 Compare April 10, 2025 06:53
@stefanhaller stefanhaller enabled auto-merge April 10, 2025 06:53
@stefanhaller stefanhaller merged commit a24189b into master Apr 10, 2025
14 checks passed
@stefanhaller stefanhaller deleted the fill-in-skipHookPrefix-again-when-pressing-w branch April 10, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore-for-release This will exclude the PR from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants