genpatch-git – generate patches from git history of a downstream project, containing only changed files of the original project.
Synopsis
genpatch-git
[-d]
ORIGDIR
genpatch-git --help|--version
genpatch-git --help|--version
Description
genpatch-git
works in specific area: when the changes of some project are tracked in git, and not entire original project is loaded into repository,
but only changed files. For example, if you change file src/lib.c,
you commit original version, change it, and commit the changes.
That could be done to reduce time and size of downstream git repo, if original project is large, and intended changes are small.
genpatch-git generates plain patches from such type of repo, as the command git-format-patch(1) would do for plain git history.
The program must be launched within your git repo. Argument ORIGDIR must contain the directory with full sources of original project. That is the etalon to generate patches against.
The resulting patchset is stored in directory ./genpatch/ in the root of git repo.
Options
- -d
- Do not remove temporary directory.
- --version
- Print version and exit with 0 code.
- --help
- Print short help description and exit with 0 code.
See also
git-format-patch(1)