* Re: GCC Rust git branch
[not found] ` <alpine.DEB.2.22.394.2105241618020.247381@digraph.polyomino.org.uk>
@ 2022-06-08 12:36 ` Thomas Schwinge
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Schwinge @ 2022-06-08 12:36 UTC (permalink / raw)
To: Joseph Myers, Philip Herron, gcc-rust, gcc, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 2268 bytes --]
Hi!
This is about GCC/Rust, <https://rust-gcc.github.io/>, now also having a
presence in GCC upstream Git sources; see also
<https://github.com/Rust-GCC/gccrs/issues/143> "GCC Git Branch".
On 2021-05-24T16:24:38+0000, Joseph Myers <joseph@codesourcery.com> wrote:
> On Mon, 24 May 2021, Philip Herron wrote:
>
>> remote: error: hook declined to update refs/heads/gccrs
>
> refs/heads/gccrs doesn't match the branch naming conventions as documented
> at https://gcc.gnu.org/git.html (where you'd use refs/heads/devel/* for
> shared development branches), so if you hadn't had commit message
> formatting issues, the push would have been rejected for bad branch naming
> as well.
>
>> The commit message here is poorly formatted. To move forward, should I
>> rebase the tree to fix this commit and force push to rewrite the
>> history? Or is there a way to relax the rule for a new branch? Any
>> advice would be welcome.
>
> If the community desires to relax the checks in a particular case, the way
> to do it would probably be to set hooks.no-precommit-check, naming the
> agreed branch name, temporarily in refs/meta/config:project.config, then
> revert that project.config change afterwards. See
> https://github.com/AdaCore/git-hooks for the detailed documentation of
> hook configuration.
Thanks. I've thus pushed to refs/meta/config branch
commit 15e03be6fc6406e41c75ff95a9de449663fc9f0e "Enable
'no-precommit-check' for GCC/Rust development branches, 'devel/rust/*'",
see attached.
I've further pushed to gcc-wwwdocs
commit 325020ef06c714fbfd508d57e3f0bda272470464
"Document Git branch devel/rust/master", see attached.
I've also set up GCC Bugzilla:
- Add new component *rust*:
<https://gcc.gnu.org/bugzilla/editcomponents.cgi?action=edit&product=gcc&component=rust>.
- Add new version *rust/master*:
<https://gcc.gnu.org/bugzilla/editversions.cgi?action=edit&product=gcc&version=rust%2Fmaster>.
Grüße
Thomas
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Enable-no-precommit-check-for-GCC-Rust-development-b.patch --]
[-- Type: text/x-diff, Size: 931 bytes --]
From 15e03be6fc6406e41c75ff95a9de449663fc9f0e Mon Sep 17 00:00:00 2001
From: Thomas Schwinge <thomas@codesourcery.com>
Date: Wed, 8 Jun 2022 12:00:04 +0200
Subject: [PATCH] Enable 'no-precommit-check' for GCC/Rust development
branches, 'devel/rust/*'
---
project.config | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/project.config b/project.config
index b7bdaf30b9e..5905fe26272 100644
--- a/project.config
+++ b/project.config
@@ -87,3 +87,9 @@
# Custom email formatter. This inserts GCC monotonically
# increasing commit ids in the commit emails.
commit-email-formatter = /git/gcc.git/hooks-bin/commit_email_formatter
+
+ # For GCC/Rust development that happens outside of GCC proper,
+ # <https://rust-gcc.github.io/>, the Git commit messages
+ # don't always adhere to standard GCC style; see
+ # <https://github.com/Rust-GCC/gccrs/issues/143>.
+ no-precommit-check = refs/heads/devel/rust/.*
--
2.35.1
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0001-Document-Git-branch-devel-rust-master.patch --]
[-- Type: text/x-diff, Size: 940 bytes --]
From 325020ef06c714fbfd508d57e3f0bda272470464 Mon Sep 17 00:00:00 2001
From: Thomas Schwinge <thomas@codesourcery.com>
Date: Wed, 8 Jun 2022 14:21:06 +0200
Subject: [PATCH] Document Git branch devel/rust/master
---
htdocs/git.html | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/htdocs/git.html b/htdocs/git.html
index 5fbd98bf..f9acea54 100644
--- a/htdocs/git.html
+++ b/htdocs/git.html
@@ -349,6 +349,12 @@ in Git.</p>
implementation of Fortran coarrays. It is maintained by
<a href="mailto:koenigni@gcc.gnu.org">Nicolas König</a>.</dd>
+ <dt><a href="https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;a=shortlog;h=refs/heads/devel/rust/master">devel/rust/master</a></dt>
+ <dd>
+ This branch is for development of
+ <a href="https://gcc.gnu.org/wiki/RustFrontEnd">Rust programming language
+ support in GCC</a>.
+ </dd>
</dl>
<h3 id="distrobranches">Distribution Branches</h3>
--
2.35.1
^ permalink raw reply [flat|nested] 2+ messages in thread