git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Thomas Schwinge <thomas@schwinge.name>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] README: Sketch out what tg rename OLD NEW would do.
Date: Sun, 28 Feb 2010 11:13:20 +0100	[thread overview]
Message-ID: <20100228101320.GA13987@pengutronix.de> (raw)
In-Reply-To: <1267310389-11984-1-git-send-email-thomas@schwinge.name>

Hello Thomas,

On Sat, Feb 27, 2010 at 11:39:49PM +0100, Thomas Schwinge wrote:
> ... as proposed by me and acknowledged by David Bremner and Uwe Kleine-König on
> 2010-01-27 in #topgit (freenode).
> ---
>  README |   17 ++++++++++++++++-
>  1 files changed, 16 insertions(+), 1 deletions(-)
> 
> diff --git a/README b/README
> index 495c70b..eab6fcd 100644
> --- a/README
> +++ b/README
> @@ -486,7 +486,22 @@ tg push
>  	repository.  By default the remote gets all dependencies
>  	(both tgish and non-tgish) and bases pushed to.
>  
> -TODO: tg rename
> +tg rename
> +~~~~~~~~~
> +	There is no such command yet, but here's a receipe what ``tg rename OLD
> +	NEW'' would do:
> +
> +	  - Have a clean state before beginning.
- assert NEW doesn't already exist?
> +	  - git banch -r OLD NEW
s/banch/branch/

> +	  - git update-ref refs/top-bases/NEW refs/top-bases/OLD ''
> +	  - for BRANCH in (all branches that depend on OLD,
> +			   i.e. reference OLD in .topdeps); do
> +	      git checkout BRANCH
> +	      sed -i 's%^OLD$%NEW$' .topdeps
> +	      git commit -m 'OLD -> NEW' .topdeps
> +	    done
> +	  - tg summary
> +	  - tg update as appropriate
>  
>  
>  IMPLEMENTATION
Otherwise looks OK

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

  reply	other threads:[~2010-02-28 10:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-27 22:39 [PATCH] README: Sketch out what tg rename OLD NEW would do Thomas Schwinge
2010-02-28 10:13 ` Uwe Kleine-König [this message]
2010-02-28 13:28   ` Thomas Schwinge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100228101320.GA13987@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=git@vger.kernel.org \
    --cc=thomas@schwinge.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).