Commit Graph

414 Commits (e97499e1d31f20d19231ec7e5cda558eeffa7e28)

Author SHA1 Message Date
Junio C Hamano e97499e1d3 Add Meta/Reintegrate
In a workflow that uses topic branches heavily, you would need to keep
updating test integration branch(es) all the time.  If they are managed
like my 'next' by merging the tips of topics that have grown since the
last integration, it is not so difficult.  You only need to review output
from "git branch --no-merged next" to see if there are topics that can and
needs to be merged to 'next'.

But sometimes it is easier to rebuild a test integration branch from
scratch all the time, especially if you do not publish it for others to
build on.

I've been using this script for some time to rebuild jch and pu branches
in my workflow.  jch's tip is supposed to always match 'next', but it is
rebuilt from scratch on top of 'master' by merging the same topics that
are in 'next'.  You can use the same script in your work.

To use it, you give a commit range base..tip to the script, and you will
see a shell script that uses a series of 'git-merge'.  "base" is the more
stable branch that you rebuild your test integration branch on top (in my
case, 'master'), and "tip" is where the tip of the test integration branch
is from the last round (in my case, 'jch' or 'pu').

Then you can run the resulting script, fix conflicted merge and use
'git-commit', and then repeat until all the branches are re-integrated on
top of the base branch.

    $ Meta/Reintegrate master..jch >/var/tmp/redo-jch.sh
    $ cat /var/tmp/redo-jch.sh
    #!/bin/sh
    while read branch eh
    do
	    case "$eh" in
	    "") git merge "$branch" || break ;;
	    ?*) echo >&2 "Eh? $branch $eh"; break ;;
	    esac
    done <<EOF
    jc/blame
    js/notes
    ks/maint-mailinfo-folded~3
    tr/previous-branch
    EOF
    $ git checkout jch
    $ git reset --hard master
    $ /var/tmp/redo-jch.sh
    ... if there is conflict, resolve, "git commit" here ...
    $ /var/tmp/redo-jch.sh
    ... repeat until everything is applied.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-01-26 00:48:50 -08:00
Junio C Hamano d0fd6f06eb What's in/cooking updates 2009-01-24 20:37:50 -08:00
Junio C Hamano 84f76d066e Summary: use reflog 2009-01-23 10:50:03 -08:00
Junio C Hamano 67b8da7260 Doit: add -noinstall 2009-01-23 10:50:03 -08:00
Junio C Hamano 1469eaa3e3 V: pay attention to dirty versions 2009-01-23 10:41:41 -08:00
Junio C Hamano 6d8ad71377 Doit: allow private editions 2009-01-23 10:41:41 -08:00
Junio C Hamano 7cd55ea54f Make: threaded-delta-search should be safe by now 2009-01-23 10:40:07 -08:00
Junio C Hamano 6b3472e1c7 SE: no suppress-cc; use configuration 2009-01-23 10:39:44 -08:00
Junio C Hamano a618965ab4 What's cooking updates 2009-01-21 19:39:14 -08:00
Junio C Hamano 4d77538f69 What's cooking 2009-01-19 01:12:41 -08:00
Junio C Hamano 5c63e23689 What's in 2009-01-19 00:57:44 -08:00
Junio C Hamano 91f1ddd855 What's in/cooking updates 2009-01-14 00:12:04 -08:00
Junio C Hamano fd9c96c858 What's cooking issue #2 of Jan'09 2009-01-11 01:50:15 -08:00
Junio C Hamano bd142399d8 What's cooking 2009-01 issue #1 2009-01-05 22:31:52 -08:00
Junio C Hamano e518dea10c Last issue of What's in/cooking for 2008 2009-01-05 21:21:58 -08:00
Junio C Hamano 6670008134 Post 1.6.1 updates 2008-12-24 22:39:40 -08:00
Junio C Hamano cdd9a3e433 What's in/cooking 2008-12-21 04:16:55 -08:00
Junio C Hamano 7b798d8cc4 What's in/cooking 2008-12-14 00:20:03 -08:00
Junio C Hamano 8b2fe5f402 What's in/cooking updates 2008-12-02 22:55:44 -08:00
Junio C Hamano 9c36507110 What's in/cooking updates 2008-12-02 22:55:26 -08:00
Junio C Hamano 742d36744e What's in/cooking 2008-11-15 14:11:49 -08:00
Junio C Hamano 9f43e271de What's in/cooking 2008-11-12 18:00:32 -08:00
Junio C Hamano aea6d5b843 What's cooking #3 of Nov 2008 2008-11-09 14:58:39 -08:00
Junio C Hamano 56f393e9db Typofix: what's cooking 2008-11 #02 2008-11-09 10:58:13 -08:00
Junio C Hamano 2f2e70cbc1 What's cooking 2nd issue of Nov 2008 2008-11-05 17:04:36 -08:00
Junio C Hamano 059b420283 Replace logo in maintnotes html version 2008-11-05 17:04:17 -08:00
Junio C Hamano 55dd4b0bc0 WIP: slight updates to What's cooking script 2008-11-05 17:03:43 -08:00
Junio C Hamano 7497fdb569 TODO: purge old items 2008-11-05 17:02:48 -08:00
Junio C Hamano 2529c34a31 Doit: optionally test with /bin/dash 2008-11-05 17:02:24 -08:00
Junio C Hamano 1ce3916c2e What's in/cooking - the first issue in November 08 2008-11-02 13:30:49 -08:00
Junio C Hamano cfd1dae56c What's in/cooking 2008-10-22 22:37:35 -07:00
Junio C Hamano c31f002f3f What's in/cooking 2008-10-18 13:34:19 -07:00
Junio C Hamano c3c329a300 What's in/cooking updates 2008-10-14 00:21:31 -07:00
Shawn O. Pearce 4d7c02ce6c What's in and cooking 2008-10 #02 2008-10-12 14:24:19 -07:00
Shawn O. Pearce 22430cd286 What's in and cooking 2008-10 #01 2008-10-06 09:57:41 -07:00
Shawn O. Pearce 01a8a64a95 What's cooking 2008-09 #04 2008-09-29 11:45:20 -07:00
Junio C Hamano 572c1f1c62 What's in/cooking 2008-09-22 12:41:48 -07:00
Junio C Hamano c3d96120cb What's cooking 2008-09 #03 2008-09-19 13:55:07 -07:00
Junio C Hamano f3b63d7ee8 Additionally build JCH private edition 2008-09-18 20:12:40 -07:00
Junio C Hamano a1f4ea0861 What's cooking/in 2008 Sep #2 2008-09-18 20:12:10 -07:00
Junio C Hamano cce1400ada Pass ASCIIDOC8=YesPlease to Meta/Make and dodoc.sh as needed 2008-09-18 19:35:09 -07:00
Junio C Hamano 3af0e6709c Doit: build-test documentation, too. 2008-09-06 23:16:20 -07:00
Junio C Hamano 2ff35385b9 What's in and What's cooking (Sep '08, #1) 2008-09-06 20:44:31 -07:00
Junio C Hamano 93457cfa11 What's cooking update 2008-08-31 23:15:17 -07:00
Junio C Hamano 159dba1d8e What's in/cooking update 2008-08-27 20:02:31 -07:00
Junio C Hamano 95620b021f Avoid threaded delta 2008-08-27 19:00:50 -07:00
Junio C Hamano 5a3521008e What's in/cooking updates 2008-08-23 20:38:38 -07:00
Junio C Hamano 3d30c34c59 TODO updates 2008-08-20 17:32:24 -07:00
Junio C Hamano 3169eb477b Allow -loose building 2008-08-20 17:32:08 -07:00
Junio C Hamano b37977f337 Allow building "jc special" as well 2008-08-20 17:31:47 -07:00