Skip to content

Conversation

@dscho
Copy link
Member

@dscho dscho commented Nov 5, 2025

Over the years, a lot of the functionality in that monster of a Unix shell script has been moved and/or reimplemented elsewhere. It's time to clean up.

dscho added 9 commits November 3, 2025 10:05
It has been removed from Git for Windows, and even before that, it was
unsupported for several years.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
We used to upgrade packages using a single command, but that did not
integrate well with GitHub Actions. Therefore we now have the system
where the `monitor-components.yml` workflow monitors for new versions,
opening new tickets if there are, the `/open pr` commands can be used in
those tickets to open Pull Requests in MINGW-packages, MSYS2-packages or
build-extra, and the `/add release-note` command can then update the
release notes.

Therefore we do not need that old shell function anymore.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This function was used to prepare the release notes and the announcement
mail in the Azure Pipelines in which Git for Windows was released.

However, nowadays this task is performed elsewhere, specifically
https://github.com/git-for-windows/git-for-windows-automation/blob/main/update-scripts/tag-git.sh

For that reason, we do not need to carry this function anymore.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This logic was used in Azure Pipelines to finalize the release notes
before releasing new Git for Windows versions.

These days, that job is performed elsewhere, specifically in
https://github.com/git-for-windows/git-for-windows-automation/blob/56d8604016d6/update-scripts/tag-git.sh#L55-L62

So let's retire that function (and some support functions, too).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
These packages are no longer built using `please.sh`, but using scripts
contained in
https://github.com/git-for-windows/git-for-windows-automation.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The Coverity stuff now lives in upstream Git's `coverity.yml` workflow.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This was used in the release process that has migrated completely to
git-for-windows-automation, and in the Coverity stuff (which has moved
to upstream Git anyway).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The process to upstream `mingw-w64-git` to the MSYS2 project will have
to be done very, very differently now.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho requested review from mjcheetham and rimrul November 5, 2025 10:53
@dscho dscho self-assigned this Nov 5, 2025
@dscho
Copy link
Member Author

dscho commented Nov 11, 2025

@rimrul @mjcheetham gentle ping? I know this is a large diff...

Copy link
Member

@rimrul rimrul left a comment

Choose a reason for hiding this comment

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

We should probably keep sign_files(). Other than that, there are some cases where functions are delete before their callers, but that probably doesn't matter.

require mingw-w64-i686-asciidoctor
}

pkg_build () {
Copy link
Member

Choose a reason for hiding this comment

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

0e9b91e keeps build_and_copy_artifacts() (4ab642f later drops build_and_copy_artifacts()), which is a caller of pkg_build().

}

# require <metapackage> <telltale>
require () {
Copy link
Member

Choose a reason for hiding this comment

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

0e9b91e keeps tag_git() (48908de later drops tag_git()) and render_release_notes_and_mail() (444f5a8 later drops render_release_notes_and_mail()), which are callers of require().

}

# set_package <package>
set_package () {
Copy link
Member

Choose a reason for hiding this comment

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

0e9b91e keeps finalize() (7f760e8 later drops finalize()) and build_and_copy_artifacts() (4ab642f later drops build_and_copy_artifacts()), which are callers of set_package().

done
}

process_keep_despite_upgrade () { # [--keep] <sdk-path>
Copy link
Member

Choose a reason for hiding this comment

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

0e9b91e keeps pkg_install() (4ab642f later drops pkg_install()), which is a caller of process_keep_despite_upgrade().

test t = "$independent_shell"
}

prepare_keep_despite_upgrade () { # <sdk-path>
Copy link
Member

Choose a reason for hiding this comment

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

0e9b91e keeps pkg_install() (4ab642f later drops pkg_install()), which is a caller of prepare_keep_despite_upgrade().

die "Could not update 32-bit SDK's release notes\n"
}

sign_files () {
Copy link
Member

Choose a reason for hiding this comment

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

release_sdk() is a remaining caller of sign_files().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants