From 17442954599108721575e0f269fa0d66867d8cd8 Mon Sep 17 00:00:00 2001 From: Manoj Srivastava Date: Mon, 5 Oct 2009 00:22:47 -0500 Subject: [PATCH 1/1] [bug545548-srivasta]: Use a less confusing merge work-flow in the README While still minimizing unneeded merges between master and bug branches, this version of the document uses a less confusing command sequence. Also update the HTML page. Signed-off-by: Manoj Srivastava --- README.html | 44 ++++++++++++++++++++++++++++---------------- README.org | 38 +++++++++++++++++++++++++------------- 2 files changed, 53 insertions(+), 29 deletions(-) diff --git a/README.html b/README.html index 2da20e2..19608a2 100644 --- a/README.html +++ b/README.html @@ -13,7 +13,7 @@ lang="en" xml:lang="en"> Debian Policy - + @@ -198,14 +198,18 @@ git commit git checkout master git pull -# If there are changes in master that make the branch not apply cleanly: - : git checkout -b temp master; git merge <local-branch-name> -# If error, reset temp, merge master into local; else skip these three lines - : git reset --hard HEAD; - : git checkout <local-branch-name>; +git checkout master +git merge --no-commit <local-branch-name> +git reset --hard HEAD; +git checkout <local-branch-name>; + +# If there are changes in master that make the branch not apply cleanly, there +# should have been en error during the merge step above. If there was an +# error, merge the master branch into the local branch, fix the conflicts, and +# commit the new version of the local branch. : git merge master -# get rid of the temp branch: - : git branch -D temp +# Edit files to remove conflict + : git commit -s # Checkout the local branch, to create the patch to send to the policy git checkout <local-branch-name> @@ -491,12 +495,20 @@ git push origin bug12345-rra # update your local master branch git checkout master git pull -# If there are changes in master that make the branch not apply cleanly: -: git checkout -b temp master; git merge bug12345-rra -# If error; -: git reset --hard HEAD; -: git checkout bug12345-rra; git branch -D temp -: git merge master + +git checkout master +git merge --no-commit bug12345-rra +git reset --hard HEAD; + +# If there are changes in master that make the branch not apply cleanly, there +# should have been en error during the merge step above. If there was an +# error, merge the master branch into the local branch, fix the conflicts, and +# commit the new version of the local branch. + : git checkout bug12345-rra + : git merge master +# Edit files to remove conflict + : git commit -s + git checkout master git merge bug12345-rra # edit debian/changelog and upgrading-checklist.html @@ -671,8 +683,8 @@ reach one of the resolution states above.

Author: Manoj Srivastava And Russ Allbery <srivasta@debian.org>

-

Date: 2009-09-15 15:48:45 CDT

-

HTML generated by org-mode 6.30trans in emacs 23

+

Date: 2009-10-05 00:20:29 CDT

+

HTML generated by org-mode 6.31trans in emacs 23

diff --git a/README.org b/README.org index 8596396..4a7458c 100644 --- a/README.org +++ b/README.org @@ -70,14 +70,18 @@ git commit git checkout master git pull -# If there are changes in master that make the branch not apply cleanly: - : git checkout -b temp master; git merge -# If error, reset temp, merge master into local; else skip these three lines - : git reset --hard HEAD; - : git checkout ; +git checkout master +git merge --no-commit +git reset --hard HEAD; +git checkout ; + +# If there are changes in master that make the branch not apply cleanly, there +# should have been en error during the merge step above. If there was an +# error, merge the master branch into the local branch, fix the conflicts, and +# commit the new version of the local branch. : git merge master -# get rid of the temp branch: - : git branch -D temp +# Edit files to remove conflict + : git commit -s # Checkout the local branch, to create the patch to send to the policy git checkout @@ -235,12 +239,20 @@ git push origin bug12345-rra # update your local master branch git checkout master git pull -# If there are changes in master that make the branch not apply cleanly: -: git checkout -b temp master; git merge bug12345-rra -# If error; -: git reset --hard HEAD; -: git checkout bug12345-rra; git branch -D temp -: git merge master + +git checkout master +git merge --no-commit bug12345-rra +git reset --hard HEAD; + +# If there are changes in master that make the branch not apply cleanly, there +# should have been en error during the merge step above. If there was an +# error, merge the master branch into the local branch, fix the conflicts, and +# commit the new version of the local branch. + : git checkout bug12345-rra + : git merge master +# Edit files to remove conflict + : git commit -s + git checkout master git merge bug12345-rra # edit debian/changelog and upgrading-checklist.html -- 2.39.2