hunkify 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/lib/hunkify/anthropic_api.rb +14 -1
- data/lib/hunkify/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ba6dab53be5bab36d05e9535bc0590a858638840987a0a3c9ee37253279c1fa
|
|
4
|
+
data.tar.gz: 30d6ac6b5f76e1ec04d04d2815f733c9bd514393d9cbe5823b0670107a0bf875
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea9993ade4e70d1fa2a2d88a3ce3cc0769209685bc54102a286601768c15f31e8706dccc5e1f61fa919b4bf886421df2ba7940e7a8277a494e9d2e2a93d65f29
|
|
7
|
+
data.tar.gz: 07c1b7fdff6146ff9425921b46cc0ba8ae004dd4faa94a54688dd0b16169be61d574aea71b4ef7b0c5d749684e721612eaf6f003530e571895022ef1d0233967
|
|
@@ -17,7 +17,20 @@ module Hunkify
|
|
|
17
17
|
- One commit = one unique intent (feat, fix, refactor, style, etc.)
|
|
18
18
|
- Hunks in different files CAN belong to the same commit if they serve the same intent
|
|
19
19
|
- Hunks in the SAME file can belong to DIFFERENT commits if they are semantically distinct
|
|
20
|
-
-
|
|
20
|
+
- STRONGLY prefer fine-grained, atomic commits over large bundled ones.
|
|
21
|
+
When in doubt, SPLIT rather than merge.
|
|
22
|
+
- Heuristics to split:
|
|
23
|
+
* Different modules/components/features → different commits
|
|
24
|
+
* Core logic vs. tests → different commits (one feat commit + one test commit)
|
|
25
|
+
* Core logic vs. docs → different commits
|
|
26
|
+
* Core logic vs. config/build files → different commits
|
|
27
|
+
* Unrelated fixes bundled with a feature → separate them
|
|
28
|
+
* Each file introducing a new, independent capability usually deserves
|
|
29
|
+
its own commit
|
|
30
|
+
- Only bundle hunks together when they genuinely cannot be reviewed or
|
|
31
|
+
reverted independently.
|
|
32
|
+
- Err on the side of MORE commits. A PR with 8 small focused commits is
|
|
33
|
+
better than one with 3 large ones.
|
|
21
34
|
|
|
22
35
|
RESPONSE FORMAT (strict JSON, no surrounding text):
|
|
23
36
|
{
|
data/lib/hunkify/version.rb
CHANGED