public inbox for gcc-cvs-wwwdocs@sourceware.org
help / color / mirror / Atom feed
* gcc-wwwdocs branch master updated. b9024cd93b5a5aa7de629232e0631c1fbdac4544
@ 2020-01-24 15:08 rearnsha
  0 siblings, 0 replies; only message in thread
From: rearnsha @ 2020-01-24 15:08 UTC (permalink / raw)
  To: gcc-cvs-wwwdocs

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gcc-wwwdocs".

The branch, master has been updated
       via  b9024cd93b5a5aa7de629232e0631c1fbdac4544 (commit)
      from  182ab16b43b0b40b985e0678891b29debef2c9a2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b9024cd93b5a5aa7de629232e0631c1fbdac4544
Author: Richard Earnshaw <rearnsha@arm.com>
Date:   Fri Jan 24 15:07:28 2020 +0000

    gitwrite: tweaks for the change in the personal branch support
    
    As described in
    https://gcc.gnu.org/ml/gcc-patches/2020-01/msg01660.html I've had to
    change the personal branch space configuration slightly to avoid
    problems with ambiguous refs.  This patch updates wwwdocs to reflect
    that change.  It also adds documentation for the new
    contrib/git-add-user-branch.sh script.

diff --git a/htdocs/gitwrite.html b/htdocs/gitwrite.html
index c0fe852..55667a2 100644
--- a/htdocs/gitwrite.html
+++ b/htdocs/gitwrite.html
@@ -424,25 +424,17 @@ some aliases that might be useful when developing GCC.  The script will
     settings configured by the script will still be useful.</li>
 </ul>
 
-<p>If you have multiple clones of the gcc repository you can fetch
+<p>If you have personal branches pushed to the gcc repository you can fetch
 updates from your personal space by running
-  <code>git fetch me</code>
-(or whatever personal prefix you've chosen).  You can also push an
-already existing branch using <code>git push me me/branch</code>.
-Beware that if you have more than one personal branch set up locally,
-simply typing <code>git push me</code> will potentially push all such
-personal branches.  Use --dry-run to check that what will be pushed is
-what you intend.</p>
-
-<p>To create a new personal branch, the following sequence of steps can be
-used:</p>
-<blockquote><pre>
-  git push me &lt;start-ref&gt;:refs/users/&lt;userid&gt;/heads/&lt;topic&gt;
-  git fetch me
-  git checkout -b me/&lt;topic&gt; remotes/me/&lt;topic&gt;
-</pre></blockquote>
-<p>If you've used a different personal prefix to 'me' then use that
-  in the sequence described above.</p>
+<code>git fetch users/me</code> (or whatever personal prefix you've
+chosen).  You can also push an already existing branch using <code>git
+push users/me me/branch</code>.  Beware that if you have more than one
+personal branch set up locally, simply typing <code>git push
+users/me</code> will potentially push all personal branches based on
+that remote.  Use --dry-run to check that what will be pushed is what
+you intend.  The script <code>contrib/git-add-user-branch.sh</code>
+can be used to create a new personal branch which can be pushed and
+pulled from the <i>users/me</i> remote.</p>
 
 <p>The script also defines a few useful aliases that can be used with the
 repository:</p>
@@ -523,6 +515,28 @@ This will create the branch both locally and on the server, but will not
 check the branch out locally.  You can do that afterwards with
 <code>git checkout</code> or <code>git worktree</code>.
 
+<h3>contrib/git-add-user-branch.sh</h3>
+
+<p>before this script can be used, your personal space access should be
+  set up by running <code>contrib/gcc-git-cusomization.sh</code>.</p>
+
+<p>The script takes two arguments, the name of the new branch to create
+  and a <i>ref</i> to create it from.  The personal prefix for the new
+  branch is optional and will be automatically added if omitted.  For example,
+  if your personal prefix is the default (me), then running:</p>
+
+<blockquote><pre>
+    contrib/git-add-user-branch.sh topic master
+</pre></blockquote>
+
+<p>will set up a branch called <code>topic</code> on the server and a
+  local branch called <code>me/topic</code> that tracks it.  The banch
+  can then be pushed using:</p>
+
+<blockquote><pre>
+    git push users/me me/topic
+</pre></blockquote>
+
 <hr />
 <h2 id="account">Tips&amp;Tricks around your account</h2>
 

-----------------------------------------------------------------------

Summary of changes:
 htdocs/gitwrite.html | 50 ++++++++++++++++++++++++++++++++------------------
 1 file changed, 32 insertions(+), 18 deletions(-)


hooks/post-receive
-- 
gcc-wwwdocs


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-24 15:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-24 15:08 gcc-wwwdocs branch master updated. b9024cd93b5a5aa7de629232e0631c1fbdac4544 rearnsha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).