Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] xbps-src: add a command show-diff #53950

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tornaria
Copy link
Contributor

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

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.
@classabbyamp classabbyamp added the xbps-src xbps-src related label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
xbps-src xbps-src related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants