You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/plus/ai/prompts.ts
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -394,10 +394,11 @@ Your task is to group the hunks in unified_diff into a set of commits, ordered i
394
394
395
395
1. Only organize the hunks themselves, not individual lines within hunks.
396
396
2. Group hunks into logical units that make sense together and can be applied atomically.
397
-
3. Ensure each commit is self-contained and only depends on commits that come before it in the new history.
398
-
4. Write meaningful commit messages that accurately describe the changes in each commit.
399
-
5. Provide a detailed explanation of the changes in each commit.
400
-
6. Make sure the new commit history is easy to review and understand.
397
+
3. Use each hunk only once. Use all hunks.
398
+
4. Ensure each commit is self-contained and only depends on commits that come before it in the new history.
399
+
5. Write meaningful commit messages that accurately describe the changes in each commit.
400
+
6. Provide a detailed explanation of the changes in each commit.
401
+
7. Make sure the new commit history is easy to review and understand.
401
402
402
403
Output your new commit history as a JSON array. Each commit in the array should be an object representing a grouping of hunks forming that commit, with the following properties:
403
404
- "message": A string containing the commit message.
@@ -428,5 +429,7 @@ Remember to base your organization of commits solely on the provided unified_dif
428
429
429
430
\${instructions}
430
431
431
-
Now, proceed with your analysis and organization of the commits. Output only the JSON array containing the commits, and nothing else.`,
432
+
Now, proceed with your analysis and organization of the commits. Output only the JSON array containing the commits, and nothing else.
433
+
Do not include any preceeding or succeeding text or markup, such as "Here are the commits:" or "Here is a valid JSON array of commits:".
0 commit comments