On Mi, 12 Jun 2024, Ernie Rael wrote:
> I use "hg-git" so that may contribute to what I'm seeing.
>
> But I've tried this on a few files and only this one file has an issue.
>
> I mad a tiny change to test_vim9_func.vim, and when I diff I get
>
> $ hg diff | head -5
> diff --git a/src/testdir/test_vim9_func.vim
> b/src/testdir/test_vim9_func.vim
> index
>
> d07bbfba70705d5d371e25907ebb6f9f3ba4cb69..cb75bad01b8374ece9f84f6ac084a65eb8615490
> GIT binary patch
> literal 107940
> zc%1FM{d?Os(kOa=_FsW2XG^J397%TKL~oOBn#A3nZIeAsy6t@&zj`Q%wpmN0mZWTX
>
> I tried this both on a local clone of the main vim repo and a clone of my
> fork of the vim repo.
>
> I don't know git (and am not interested in learning it, quite the opposite).
>
> If anyone can provide some insight on why I'm seeing "*GIT binary patch*"
> for this one file...
This is probably because of the ASCI NUL characters in the
Test_invalid_redir() function, which cause git/hg to detect this file as
non-ascii and therefore creates this binary patch. In git, one could
mark it as text, but not sure if a patch would then still work if it
affects those characters. On the other hand, I would hope, that git/hg
is hopefully fine importing such a binary patch.
Thanks,
Christian
--
Q: How many Harvard MBA's does it take to screw in a light bulb?
A: Just one. He grasps it firmly and the universe revolves around him.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/ZmnHOC48XAuEPcU2%40256bit.org.