Re: Issue with git add

From: Alexander Leidinger <Alexander_at_Leidinger.net>
Date: Wed, 18 Sep 2024 15:37:21 UTC
Am 2024-09-18 16:29, schrieb Philip Paeps:
> On 2024-09-18 22:00:56 (+0800), Alexander Leidinger wrote:
>> git add doesn't add files. And I don't see them in git status:
>> ---snip---
>> Mittwoch, 18. September 2024, 15:03:11
>> {0} <FreeBSD 15.0-CURRENT> [commit:~/FreeBSD/GIT/ports]
>> (256) netchild@ttypts/2 % export LC_ALL=C
>> 
>> Wednesday, 18. September 2024, 15:03:18
>> {0} <FreeBSD 15.0-CURRENT> [commit:~/FreeBSD/GIT/ports]
>> (257) netchild@ttypts/2 % git apply 
>> /tmp/0001-www-lua-resty-session3-new-port-sticking-to-version-.patch
> 
> 
> This creates a commit.

 From the man-page: "This command applies the patch but does not create a 
commit."

But now that you told it, I tried "git am" first, and I was seeing the 
same behavior was puzzled, and tried git apply. And "git am "seems to 
create commits, but it doesn't tell so in the description, only the man 
page of git-apply tells this.

Deleting the directory + git status confirms that it is committed, "git 
commit --amend" too. Pft. Ok, PEBCAK + man-page problem. Problem solved.

Thanks,
Alexander.

-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF