* [PATCH] README: Sketch out what tg rename OLD NEW would do.
@ 2010-02-27 22:39 Thomas Schwinge
2010-02-28 10:13 ` Uwe Kleine-König
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Schwinge @ 2010-02-27 22:39 UTC (permalink / raw)
To: u.kleine-koenig; +Cc: git, Thomas Schwinge
... 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.
+ - git banch -r OLD NEW
+ - 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
--
1.6.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] README: Sketch out what tg rename OLD NEW would do.
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
2010-02-28 13:28 ` Thomas Schwinge
0 siblings, 1 reply; 3+ messages in thread
From: Uwe Kleine-König @ 2010-02-28 10:13 UTC (permalink / raw)
To: Thomas Schwinge; +Cc: git
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/ |
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] README: Sketch out what tg rename OLD NEW would do.
2010-02-28 10:13 ` Uwe Kleine-König
@ 2010-02-28 13:28 ` Thomas Schwinge
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Schwinge @ 2010-02-28 13:28 UTC (permalink / raw)
To: u.kleine-koenig, u.kleine-koenig; +Cc: Thomas Schwinge, git
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]
... as proposed by me and acknowledged by David Bremner and Uwe Kleine-König on
2010-01-27 in #topgit (freenode).
Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
---
README | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/README b/README
index 495c70b..a0c1bfa 100644
--- a/README
+++ b/README
@@ -486,7 +486,23 @@ 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 branch -m OLD NEW
+ - 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
--
tg: (341a371..) t/tg_rename (depends on: master)
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-28 13:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-02-28 13:28 ` Thomas Schwinge
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).