fix(args): allow -o and -p together if they point to different files#653
fix(args): allow -o and -p together if they point to different files#653orhun merged 3 commits intoorhun:mainfrom
Conversation
|
Thanks for opening this pull request! Please check out our contributing guidelines! ⛰️ |
setting prepend and output together will ignore the prepend flag Signed-off-by: Anton Engelhardt <antoncengelhardt@icloud.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #653 +/- ##
==========================================
- Coverage 41.90% 41.65% -0.24%
==========================================
Files 15 15
Lines 1079 1083 +4
==========================================
- Hits 452 451 -1
- Misses 627 632 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
… arg Signed-off-by: Anton Engelhardt <antoncengelhardt@icloud.com>
|
@orhun i ticked that this is a breaking change. Not sure though. WDYT? |
|
Ah, I found an issue: #120 It turns out someone actually requested this feature in the past, so I'm a bit unsure about merging this :/ I think we can bring back the note in the |
|
Yeah, I get your point. In my opinion, output and prepend should work together, but only if the file paths are not equal. If the file paths are the same, it does not make sense to use both flags and an error should be shown. Do you agree? |
|
Actually yes, that sounds more reasonable! |
|
Any idea for the error message? |
|
Something along the lines of "Output files cannot be the same" maybe |
Signed-off-by: Anton Engelhardt <antoncengelhardt@icloud.com>
|
Awesome, thanks! |
|
Congrats on merging your first pull request! ⛰️ |
setting prepend and output together will ignore the prepend flag
Description
Motivation and Context
orhun/git-cliff-action#21 (comment)
How Has This Been Tested?
I build it locally and tested it with one of my rust projects
Screenshots / Logs (if applicable)
Types of Changes
not sure
Checklist: