Mysterious `applypatch' in any cygwin package?
Brian Inglis
Brian.Inglis@SystematicSW.ab.ca
Sun Feb 9 19:30:28 GMT 2025
On 2025-02-09 11:56, Eliot Moss via Cygwin wrote:
> On 2/10/2025 5:46 AM, Soren via Cygwin wrote:
>> Hello Cygwin community,
>>
>> I've got a small issue. Out there in the oosphere there is mention of a
>> tool called "applypatch", and I went looking for it in cygwin pkgs. Using
>> the invocation
>>
>> `cygcheck -f applypatch'
>>
>> I don't find any packages that supply "applypatch" or "applypatch.exe" but
>> now when I am writing this I recall seeing some connection to `git', I just
>> can't reproduce what I did to stumble across that.
>
> Try this command: git help apply
>
>> In addition to my question about "applypatch", I am wondering about
>> something else. I've got git version 2.45.1, and I am puzzled by the
>> existence of "git" in both /usr/bin and /usr/local/bin.
>>
>> $ type -ap git.exe
>> /usr/local/bin/git.exe
>> /usr/bin/git.exe
>
> Interesting. Because <your cygwin root>/bin is mounted on /usr/bin,
> /bin and /usr/bin can be expected to be the same, but on my system
> at least /usr/local/bin is different. You can use ls to see if they
> are in fact the same file:
>
> ls -li /usr/local/bin/git /usr/bin/git
Also:
$ cygcheck -p applypatch
Found 3 matches for applypatch
git-2.42.1-1 - git: Distributed version control system
git-2.43.0-1 - git: Distributed version control system
git-2.45.1-1 - git: Distributed version control system
$ l /usr/share/git*/**/*applypatch*
/usr/share/git-core/templates/hooks/applypatch-msg.sample
/usr/share/git-core/templates/hooks/pre-applypatch.sample
Run:
$ /usr/local/bin/git -v --build-options
$ /usr/bin/git -v --build-options
git version 2.45.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
$ ls -glo `which git`
-rwxr-xr-x 142 3744787 May 25 2024 /usr/bin/git
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut
-- Antoine de Saint-Exupéry
More information about the Cygwin
mailing list