From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9679 invoked by alias); 13 Jan 2020 13:55:36 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 9671 invoked by uid 89); 13 Jan 2020 13:55:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1914, H*i:sk:9cffe92, H*MI:sk:9cffe92, H*f:sk:9cffe92 X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.110.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Jan 2020 13:55:35 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D64581045 for ; Mon, 13 Jan 2020 05:55:33 -0800 (PST) Received: from [192.168.1.19] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7C4063F68E; Mon, 13 Jan 2020 05:55:33 -0800 (PST) Subject: Re: Some local customization enhancements when using git From: "Richard Earnshaw (lists)" To: "gcc-patches@gcc.gnu.org" References: <54834f12-32b1-492f-fb9e-b2c74df23167@arm.com> <95dfd77a-3361-545e-8b86-01078304ae29@arm.com> <9cffe927-2ac8-ad21-db59-2c3d0f5f3a10@arm.com> Message-ID: <7b2be047-2449-69e8-498b-d53bc17175ba@arm.com> Date: Mon, 13 Jan 2020 16:03:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <9cffe927-2ac8-ad21-db59-2c3d0f5f3a10@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2020-01/txt/msg00721.txt.bz2 On 13/01/2020 13:44, Richard Earnshaw (lists) wrote: > On 10/01/2020 14:26, Richard Earnshaw (lists) wrote: >> On 10/01/2020 13:23, Richard Earnshaw (lists) wrote: >>> This patch is intended to help with folks setting up a git work >>> environment for use with GCC following the transition to git.  It >>> currently does a couple of things. >>> >>> 1) Add an alias 'svn-rev' to git so that you can look up a legacy >>> commit by its svn revision number.  This enables you to type >>> git svn-rev 1234 >>> and git will show the commit log entry relating to SVN r1234. >>> >>> 2) Sets up tracking information for the user's private name area in >>> the git repo.  It tries to figure out some sensible answers to the >>> data it needs, but allows the user to override the values.  It then >>> creates the fetch and push entries that are needed for tracking the >>> extra refs. This implements one part of the recommendations that I've >>> proposed in svnwrite.html for dealing with private branches. >>> >>> It should be possible to run the script more than once and for it to >>> DTRT.  If you change your answers the configuration should be >>> correctly updated. >>> >>> 2020-01-10  Richard Earnshaw  >>> >>>      * gcc-git-customization: New file. >>> >> >> Updated to add better support for diff-ing .md files. >> >> R. > > A couple more tweaks to this file and I've now checked it in. > > 1) Added the ability to select the prefix for the personal namespace. > This will be cached. If you change it, then the push operations will be > updated (but any local branches you will have to rename if you want them > to continue working afterwards). > 2) Removed the + from the added push spec. > And one more tweak I forgot to mention: 3) an optional 'r' can now be used in front of an svn revision number in 'git svn-rev'. > R. >