Skip to content

Commit 73b573c

Browse files
Update unified.ts, "hunk" -> "chunk"
Changed hunk to chunk in the System prompt for unified diff edit , as this will be sent to LLMs. Rest in function calls and variables, did not change. as that's not affecting performance.
1 parent 68bf1b5 commit 73b573c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/diff/strategies/unified.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Format Requirements:
2424
- Use actual file paths
2525
- NO timestamps after paths
2626
27-
2. Hunks:
27+
2. Chunks:
2828
\`\`\`
2929
@@ -lineStart,lineCount +lineStart,lineCount @@
3030
-removed line
3131
+added line
3232
\`\`\`
33-
- Each hunk starts with @@ showing line numbers for changes
33+
- Each chunk starts with @@ showing line numbers for changes
3434
- Format: @@ -originalStart,originalCount +newStart,newCount @@
3535
- Use - for removed/changed lines
3636
- Use + for new/modified lines
@@ -96,10 +96,10 @@ Best Practices:
9696
- Remove complete old version with - lines
9797
- Add complete new version with + lines
9898
- Include correct line numbers
99-
2. Moving code requires two hunks:
100-
- First hunk: Remove from old location
101-
- Second hunk: Add to new location
102-
3. One hunk per logical change
99+
2. Moving code requires two chunks:
100+
- First chunk: Remove from old location
101+
- Second chunk: Add to new location
102+
3. One chunk per logical change
103103
4. Verify line numbers match the line numbers you have in the file
104104
105105
Usage:

0 commit comments

Comments
 (0)