File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,29 @@ def product-version-config [product: string, version: string] {
4545}
4646
4747def "main" [] {
48+ print " Subcommands:"
49+ print " ./patchable.nu checkout --help - Check out a product version from its patches"
50+ print " ./patchable.nu export --help - Update a product's patches from its worktree"
51+ print " "
4852 print " Usage:"
49- print " patchable checkout [--help]"
53+ print " $ ./patchable.nu checkout druid 26.0.0"
54+ print " $ enter druid/patchable-work/worktree/26.0.0/"
55+ print " $ # do stuff"
56+ print " $ git commit"
57+ print " $ dexit"
58+ print " $ ./patchable.nu export druid 26.0.0"
59+ print " $ git status"
5060}
5161
62+ # Check out a patched source tree from its upstream sources with patches applied.
63+ #
64+ # If the source tree already exists it will be overwritten. Old commits can be recovered from the git reflog.
65+ #
66+ # A separate source tree is maintained for each product.
5267def "main checkout" [
53- product : string
54- version : string
55- -- force
68+ product : string # The name of the product (example: druid)
69+ version : string # The version of the product (example: 26.0.0)
70+ -- force # Overwrite existing checkouts somewhat more aggressively
5671] {
5772 let config = product-version-config $product $version
5873 let product_repo = (product-repo $product -- upstream=$config.upstream )
@@ -96,9 +111,10 @@ def "main checkout" [
96111 }
97112}
98113
114+ # Export the patches in the current source tree of a product.
99115def "main export" [
100- product : string
101- version : string
116+ product : string # The name of the product (example: druid)
117+ version : string # The version of the product (example: 26.0.0)
102118] {
103119 let config = product-version-config $product $version
104120 let product_repo = (product-repo $product -- upstream=$config.upstream )
You can’t perform that action at this time.
0 commit comments