From 1c1b1794d142a1a5385775576e276d8a500d9aae Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 19 Feb 2018 01:13:50 +0000 Subject: git-debrebase(1): document convert-from-gbp Signed-off-by: Ian Jackson --- git-debrebase | 1 - git-debrebase.1.pod | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/git-debrebase b/git-debrebase index 2520d52..fc60a76 100755 --- a/git-debrebase +++ b/git-debrebase @@ -25,7 +25,6 @@ # git-debrebase [] launder-v0 # prints breakwater tip etc. # git-debrebase [] downstream-rebase-launder-v0 # experimental # -# git-debrebase [] convert-from-gbp [] # git-debrebase [] convert-to-gbp # problems / outstanding questions: diff --git a/git-debrebase.1.pod b/git-debrebase.1.pod index ce442da..40c8081 100644 --- a/git-debrebase.1.pod +++ b/git-debrebase.1.pod @@ -155,6 +155,38 @@ that its command line syntax is optimal. We may want to introduce an incompatible replacement syntax under the name C. +=item git-debrebase convert-from-gbp [] + +Cnnverts a gbp patches-unapplied branch +(not a gbp pq patch queue branch) +into a git-debrebase interchange branch. + +This is done by generating a new anchor merge, +converting the quilt patches as a delta queue, +and dropping the patches from the tree. + +The upstream commitish should correspond to +the gbp upstream branch. +It is a problem if it is not an ancestor of HEAD, +or if the history between the upstream and HEAD +contains commits which make changes to upstream files. + +It is also a problem if the specified upstream +has a debian/ subdirectory. +This check exists to detect certain likely user errors, +but if this situation is true and expected, +forcing it is fine. + +The result is a well-formed git-debrebase interchange branch. +The result is also fast-forward from the gbp branch. + +Note that it is dangerous not to know whether you are +dealing with a gbp patches-unappled branch containing quilt patches, +or a git-debrebase interchange branch. +At worst, +using the wrong tool for the branch format might result in +a dropped patch queue! + =back =head1 UNDERLYING AND SUPPLEMENTARY OPERATIONS -- cgit v1.2.3