wiggle icon indicating copy to clipboard operation
wiggle copied to clipboard

wiggle: cannot load file 'null' - No such file or director

Open dmikushin opened this issue 2 years ago • 2 comments

When I'm trying to wiggle a git patch removing a file, I get the following error:

% wiggle -r -p1 0001-Removing-Boost-based-SSL-backend-replacing-it-with-C.patch
wiggle: bad unified patch at line 33
wiggle: file 1 missing
wiggle: cannot load file 'null' - No such file or directory
wiggle: cannot load file 'null' - No such file or directory

Clearly, the reason is this section in the patch:

diff --git a/include/tgbot/net/BoostHttpOnlySslClient.h b/include/tgbot/net/BoostHttpOnlySslClient.h
deleted file mode 100644
index dbe0c96..0000000
--- a/include/tgbot/net/BoostHttpOnlySslClient.h
+++ /dev/null

So far, this problem has not been raised by anyone. I'm filling an issue to get it more visibility. Is there an existing guideline to cope with this error?

dmikushin avatar Nov 12 '21 18:11 dmikushin

What would you want wiggle to do in this case?

neilbrown avatar Nov 13 '21 06:11 neilbrown

I've expected wiggle behavior be identical to "git am" or "git apply": the file in --- shall be deleted.

I'm not an expert, sorry if I'm expecting something unrelated.

dmikushin avatar Nov 13 '21 10:11 dmikushin