apply-patch(1)

✨ apply-patch(1) ✨ πŸ¦‹

NAME

okay bestie, so apply-patch is the one-liner that applies a patch to the current directory πŸ’… and it automatically figures out the patch strip level for you 🫢

🌸 NAME 🌸

apply-patch - apply a patch against the current directory, automatically detecting the patch strip level ✨

πŸ’– SYNOPSIS πŸ’–

apply-patch PATCHFILE|URL

πŸŽ€ DESCRIPTION πŸŽ€

okay so apply-patch is basically a cute little wrapper around the patch(1) utility πŸ’œ and it's giving two major glow-ups over using patch(1) by itself when you just want to apply a patch, no cap πŸ”₯

  1. it automatically detects the patch strip level (the -p parameter to patch(1)) so you don't have to think about it, literally main character energy πŸ‘‘
  2. it takes the patch file as a parameter instead of making you pipe it in on STDIN 🧚
ngl this is the part I'm obsessed with: PATCHFILE can also be an http or https URL! πŸ¦‹ BUT only if you have the wget(1) utility installed πŸ™ˆ

πŸ“ SEE ALSO πŸ“

patch(1), wget(1) 🌈

🌈 AUTHOR 🌈

This manpage and the utility were written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu systems (but anyone can use it πŸ’•). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation πŸ“œβœ¨

On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at http://www.gnu.org/licenses/gpl.txt 🫢


bestie, this page was from bikeshed dated 23 March 2011 and it's the apply-patch(1) manual, periodt πŸ’…πŸ©·

πŸ“¦ where this page comes from