-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
chore(ci): tweak merge script to have less conflicts and output to be more readable #10452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,4 +6,10 @@ | |
|
|
||
| app-k9mail/build.gradle.kts merge=merge_gradle | ||
| app-thunderbird/build.gradle.kts merge=merge_gradle | ||
| app-k9mail/src/main/res/raw/changelog_master.xml merge=ours | ||
|
|
||
| app-k9mail/src/main/res/raw/changelog_master.xml merge=merge_changelog | ||
| app-thunderbird/src/release/res/raw/changelog_master.xml | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm sorry, I missed something here and I think I sent you down the wrong path. For the following 3 files, we want to keep ours in all cases. app-thunderbird/src/release/res/raw/changelog_master.xml merge=ours |
||
|
|
||
| app-metadata/com.fsck.k9/*/changelogs/** merge=merge_changelog | ||
| app-metadata/net.thunderbird.android.beta/*/changelogs/** merge=merge_changelog | ||
| app-metadata/net.thunderbird.android/*/changelogs/** merge=merge_changelog | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, sorry I missed this. We don't want to merge anything in the above 3 changelogs directories. These directories contain release notes for releases from the current branch. (They are supposed to, at least, but that's probably not the case anymore due to previous merges.) The file names are based on the versionCode, and there's potential that the versionCode could overlap between beta and release. So what we really want to do here is exclude any changes to these directories in the merge. Or at least use merge=ours. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # This merge driver exists to override the -Xtheirs CLI option used when merging | ||
| # two trees together (e.g. main -> beta). | ||
|
|
||
| A="$1" # File A (ours) | ||
| O="$2" # Common ancestor | ||
| B="$3" # File B (theirs) | ||
|
|
||
| git merge-file -- "$A" "$O" "$B" |
Uh oh!
There was an error while loading. Please reload this page.