diff-generate
diff-generate¶
Create patches from local Git repository with provided REPO_PATH
You can add additional options and parameters, which will be passed to
the git format-patch command. With those options and arguments, you
can specify which commits to operate on.
-
A single commit,
<since>, specifies that commits leading to the tip of the current branch that are not in the history that leads to the<since>to be output. Example: 'HEAD~2'. Not supported with '--use-fanout'. -
Generic
<revision-range>expression means the commits in the specified range. Example: 'origin/main..main', or '--root HEAD', or '--user=joe --root HEAD'.
If not provided <since> or <revision-range>, a single patch for
the current commit on the current branch will be created ('HEAD').
To create patches for everything since the beginning of history
up until <commit>, use '--root <commit>' as extra options.
Usage:
console
$ diff-generate [OPTIONS] REPO_PATH
Arguments:
REPO_PATH: Path to git repository. [required]
Options:
--output-dir DIRECTORY: Where to save generated patches.--use-fanout / --no-use-fanout: Use fan-out when saving patches, saved as*.diff[default: no-use-fanout]--help: Show this message and exit.