Skip to content

red-hat-storage/subpatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 

Repository files navigation

subpatch

Generate .patch files from a submodule.

Prototype tool that could eventually get incorporated into rdopkg (see softwarefactory-project/rdopkg#16)

Usage:

git checkout ceph-7.0-rhel-patches
subpatch <git range>

Example: To check the entire -patches branch for submodule changes downstream:

subpatch v18.2.0..ceph-7.0-rhel-patches

Example: Check one single -patches branch change:

subpatch 7eb4203~..7eb4203

This will generate .patch files and print some code for you to paste into your RPM .spec file.

To add the new .patch file to dist-git, commit it directly like a normal text file:

git add s3select.patch

TODO

  • Do the .spec file manipulations
  • Incorporate into rdopkg
  • Handle more than one submodule change at a time
  • Handle submodules within submodules?

About

Generate .patch files from a Git submodule

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages