From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Closed]: [RFC] xbps-src: add a command `show-diff`
Date: Sat, 07 Jun 2025 21:07:10 +0200 [thread overview]
Message-ID: <20250607190710.2B3632ED92@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-53950@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 876 bytes --]
There's a closed pull request on the void-packages repository
[RFC] xbps-src: add a command `show-diff`
https://github.com/void-linux/void-packages/pull/53950
Description:
Usage: ./xbps-src show-diff PKG
Shows differences between the original sources and $wrksrc, in the form
of a patch that can be used for the template.
Note this ignores new files.
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Alternatives
One alternative suggested in irc is to use unpatch from
https://leahneukirchen.org/dotfiles/bin/unpatch
Save the original files as .orig, then run
- `unpatch -g -p3 masterdir-*/builddir/pkg-ver`
With vim, one can use `:set patchmode=.orig`
Two more suggestions from irc related to this:
- `alias xpatch="nvim -c 'set patchmode=.orig'"`
- `autocmd BufNewFile,BufRead masterdir-*/builddir/* setlocal patchmode=.orig`
prev parent reply other threads:[~2025-06-07 19:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-12 22:34 [PR PATCH] [RFC] xbps-src: add a command `show-diff` tornaria
2025-01-15 12:48 ` sgn
2025-04-16 2:08 ` github-actions
2025-04-16 13:56 ` tornaria
2025-06-07 19:07 ` tornaria [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250607190710.2B3632ED92@inbox.vuxu.org \
--to=tornaria@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).