Skip to content

Restore astextplain passthrough #628

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

Merged
merged 5 commits into from
Jun 23, 2025

Conversation

dscho
Copy link
Member

@dscho dscho commented Jun 23, 2025

This PR is identical to #626 except it also merges the current main and then updates the checksums and pkgver as required. I would have don that in #626 but the write permission for maintainers on the PR branch was explicitly disabled, so I couldn't.

ClaudioHoffmann and others added 2 commits June 21, 2025 21:35
The fix for git-for-windows/git#5641 broke
diffs for plaintext DOC and DOT files:

    $ echo Test > test.doc
    $ git add test.doc
    $ git diff --cached
    E: unsupported filetype test.doc

Since `file` correctly identifies the mimetype of such files as
`text/plain`, this can be fixed by simply covering this case and
printing the file content as it was done previously.

Signed-off-by: Claudio Hoffmann <c.hoffmann@dev-threads.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
dscho added 3 commits June 23, 2025 08:55
In 48e2403 (git-extra: ignore generated changes for the sake of
`pkgver`, 2025-03-05) I tried to address the fact that the commit that
updates `pkgver` in `PKGBUILD` necessarily touches the `git-extra/`
subdirectory, yet should not be considered for the package version.

What I failed to address is the rare case when `HEAD` is not the same as
`$rev`, i.e. when the last commit that touched the `git-extra/`
directory` is not at the tip of the branch.

Let's accommodate for that, too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho force-pushed the restore-astextplain-passthrough branch from b8f89bf to ea851d9 Compare June 23, 2025 06:56
@dscho
Copy link
Member Author

dscho commented Jun 23, 2025

/deploy git-extra

The i686/x86_64 and the arm64 workflow runs were started.

@dscho dscho merged commit de185b3 into git-for-windows:main Jun 23, 2025
9 checks passed
@dscho dscho deleted the restore-astextplain-passthrough branch June 23, 2025 07:09
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.

2 participants