Skip to content

Package Guidelines

Applying git patches

Git patches should be applied in prepare(). Since the build system doesn't have a committer configured and we generally try to avoid changing the git history because that distorts the input for a later pkgver() call, we apply patches without committing:

  • Use git apply to apply a git patch without creating a commit
  • In case of a git checkout use git cherry-pick --no-commit to backport a commit without creating a commit.