[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Auto-strip option for GNU patch
From: |
Aleksey Midenkov |
Subject: |
Auto-strip option for GNU patch |
Date: |
Sun, 4 Sep 2022 13:53:36 +0300 |
That would be a nice feature to auto-detect the value for --strip
option. I never used -p as a feature, rather as an nuisive need to
know the correct -p value. To implement this it is enough to know the
lowest strip level when the directory or patched file exists. There is
no need to do deep search as the simple guess works in 99% of the
cases. In case auto-strip fails patch should fallback to the default
behavior.
--
@midenok
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Auto-strip option for GNU patch,
Aleksey Midenkov <=