From 625ef9cc461653073175be47c4b6a2a9e25c13d1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 19 Aug 2018 23:38:09 +0100 Subject: [PATCH] git-debrebase: convert-from-*: leave debrebase-last refs To hint to everyone that this is now a gdr branch. This will make dgit push use gdr make-patches, for example. Signed-off-by: Ian Jackson --- debian/changelog | 2 ++ git-debrebase | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 3ac55a0b..058ce000 100644 --- a/debian/changelog +++ b/debian/changelog @@ -21,6 +21,8 @@ dgit (6.7~) unstable; urgency=medium enabled only with special command line option. * git-debrebase: Check in convert-from-* whether ffq-prev or debrebase-last indicate that we are already in gdr format. + * git-debrebase: convert-from-*: leave debrebase-last refs to + hint to everyone that this is now a gdr branch. -- diff --git a/git-debrebase b/git-debrebase index af195830..9d0bda0b 100755 --- a/git-debrebase +++ b/git-debrebase @@ -2421,12 +2421,14 @@ sub begin_convert_from () { snag 'already-converted', "ahead of debrebase-last, this is already managed by git-debrebase!" if $gdrlast_obj && is_fast_fwd $gdrlast_obj, $head; - return ($head, undef); + return ($head, { LastRef => $gdrlast, LastObj => $gdrlast_obj }); } sub complete_convert_from ($$$$) { my ($old_head, $new_head, $gi, $mrest) = @_; ffq_check $new_head; + record_gdrlast $gi->{LastRef}, $new_head, $gi->{LastObj} + if $gi->{LastRef}; snags_maybe_bail(); update_head_checkout $old_head, $new_head, $mrest; } -- 2.30.2