Commit efef9f5
committed
Fix version labeling in monorepos by adding --first-parent to git log
In monorepo setups using path filtering (tagPrefix), git log --merges
would hide merge commits due to "History Simplification" if the merge
result was TREESAME to the second parent.
Adding --first-parent ensures that merge commits on the release branch
that affect the specified path are correctly captured, allowing tagpr
to identify PR labels (major, minor, etc.) for correct versioning.1 parent 9d0f650 commit efef9f5
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
476 | 476 | | |
477 | | - | |
| 477 | + | |
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| |||
0 commit comments