Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Apr 2022 22:25:08 -0500
From:      Kyle Evans <kevans@freebsd.org>
To:        freebsd-arch@freebsd.org
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>,  ports-list freebsd <freebsd-ports@freebsd.org>
Subject:   [RFC] patch's default backup behavior
Message-ID:  <CACNAnaGTZSGKP=FKT1deAjJ0W=Q5Ezqf0ZinC2ydDzUksk%2BFtw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello!

FreeBSD's patch follows historical patch(1) behavior w.r.t. backups,
where a backup is created for every file patched.

I'd like to test the waters on switching this to the GNU behavior,
which feels a whole lot more reasonable. Notably, they'll only create
backup files if a mismatch was detected (presumably this means either
a hunk needed fuzz or a hunk outright failed). This yields far fewer
backup files in the ideal scenario (context entirely matches), while
still leaving backup files when it's sensible (base file changed and
we might want to regenerate the patch).

Thoughts / comments / concerns? Cross-posted this to a couple of
different lists to try and hit the largest number of stakeholders in
patch(1) behavior.

Thanks,

Kyle Evans



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaGTZSGKP=FKT1deAjJ0W=Q5Ezqf0ZinC2ydDzUksk%2BFtw>