Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/server/src/git/Layers/GitCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ export const makeGitCore = Effect.fn("makeGitCore")(function* (options?: {
runGitStdoutWithOptions(
"GitCore.readRangeContext.log",
cwd,
["log", "--oneline", range],
["log", "--oneline", "--cherry-pick", "--right-only", range],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

--cherry-pick --right-only requires triple-dot range notation

High Severity

The --cherry-pick and --right-only flags are silently ignored because the range variable uses double-dot notation (baseBranch..HEAD). These flags require triple-dot symmetric difference notation (baseBranch...HEAD) to work — Git needs to see commits from both sides simultaneously to identify patch-id equivalents. With double-dot, the intended filtering of already-merged commits simply doesn't happen. The git log command needs its own triple-dot range, separate from the git diff commands which correctly use double-dot.

Additional Locations (1)
Fix in Cursor Fix in Web

{
maxOutputBytes: RANGE_COMMIT_SUMMARY_MAX_OUTPUT_BYTES,
truncateOutputAtMaxBytes: true,
Expand Down
Loading