X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit-maint-debrebase.7.pod;h=e5abe1773c604e4913f985468288283f91e37901;hp=b8f26400ab6b486bb5047a80a70d7a616a300aff;hb=516da6ccba126635bbb3f8a0eb4d863dc250ddbe;hpb=b043825debebbfe4d3f44b6c51712f787dd0bf11 diff --git a/dgit-maint-debrebase.7.pod b/dgit-maint-debrebase.7.pod index b8f26400..e5abe177 100644 --- a/dgit-maint-debrebase.7.pod +++ b/dgit-maint-debrebase.7.pod @@ -623,6 +623,62 @@ avoids introducing a new origin commit into your git history. (This origin commit would represent the most recent non-dgit upload of the package, but this should already be represented in your git history.) +=head2 Inspecting the history + +The git history made by git-debrebase can seem complicated. +Here are some suggestions for helpful invocations of gitk and git. +They can be adapted for other tools like tig(1), git-log(1), magit, etc. + +History of package in Debian, disregarding history from upstream: + +=over + + % gitk --first-parent + +In a laundered branch, the delta queue is at the top. + +=back + +History of the packaging, excluding the delta queue: + + % gitk :/debian :!/debian/patches + +Just the delta queue (i.e. Debian's changes to upstream): + + % gitk --first-parent -- :/ :!/debian + +Full history including old versions of the delta queue: + +=over + + % gitk --date-order + +The "Declare fast forward" commits you see have an older history +(usually, an older delta queue) as one parent, +and a newer history as the other. +--date-order makes gitk show the delta queues in the right order. + +=back + +Complete diff since the last upload: + +=over + + % git diff dgit/dgit/sid..HEAD -- :/ :!/debian/patches + +This includes changes to upstream files. + +=back + +Interdiff of delta queue since last upload, if you really want it: + + % git debrebase make-patches + % git diff dgit/dgit/sid..HEAD -- debian/patches + +And of course there is: + + % git debrebase status + =head2 Alternative ways to start a debrebase Above we started an interactive debrebase by invoking git-debrebase(1) @@ -661,6 +717,7 @@ git-rebase without a base argument will often start the rebase too early, and should be avoided. Run git-debrebase instead. +See also "ILLEGAL OPERATIONS" in git-debrebase(5). =head1 SEE ALSO