On Tue, 28 Jul 2009 19:14:03 +0200
Antonio Ospite <osp...@studenti.unina.it> wrote:

> Hi,
> 
> here's a plan about the OpenEZX git tree cleanup to happen in next days,
> once I do the deletion on my side I will send a mail here, to ask you
> all with push rights to update your trees and run a cleanup script to
> remove all stale references to deleted topgit branches.
> 

Here we are. I've just pushed the cleaned-up tree.

If you are going to push you MUST update the tree (maybe making a
backup first):
  git checkout master && git pull
Run the attached script to remove any trace of deleted branches:
  ./openezx-git-cleanup-2009-08-04.sh
And then "tg update".

We had many void and obsoleted branches, see:
http://people.openezx.org/ao2/tmp/openezx-tg-layout-2009-08-04_before.png
http://people.openezx.org/ao2/tmp/openezx-tg-layout-2009-08-04_before_annotated.png

Now the situation is acceptable again,
http://people.openezx.org/ao2/tmp/openezx-tg-layout-2009-08-04_cleanedup.png

and we can go on messing it up again :)

Let me know if you experience any problem.

Ciao ciao,
   Antonio

-- 
Antonio Ospite
http://ao2.it

PGP public key ID: 0x4553B001

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
#!/bin/sh
# this script will delete unused and already merged topgit branches on your
# openezx local tree. Please, run this script on your openezx kernel folder
# before syncing your topgit patches with git.openezx again. Thanks!
# Daniel Ribeiro <drw...@gmail.com>

REMOTE="origin"

OLD_BRANCHES='
asoc/allow-i2s-for-pxa27xx
ezx/fix-mfp-lpm
ezx/mach/camera
ezx/mach/gpio-keys
ezx/mach/leds-lp3944
ezx/mach/pcap_regulator
ezx/mach/usb2.0
ezx/usb2.0
ezx/pcap_adc
leds-lp3944
mmc/pxamci-regulator-support
mtd/cfi1.1-has-extra-too
mtd/pf38f4476-fix
pcap/fix-adc-locking
pxa/gpio_reset
spi/pxa2xx_spi-fix-dma-resume
tmp/fix-low-gpio-irqs
tmp/fix-pgsr-restore
tmp/fix_CONFIG_OABI_COMPAT
tmp/pxa2xx-spi_fix_PXA2XX_CS_ASSERT
tmp/pxa2xx_spi-fix-SPI_CS_HIGH
asoc/pxa-ssp-fix-SSPSP_SCMODE
asoc/allow-32bits-registers
motoq/mach
'

git checkout ezx/current

for p in $OLD_BRANCHES;
do
	echo "Deleting $p..."
	tg delete -f $p
	rm -f .git/refs/top-bases/$p .git/refs/remotes/$REMOTE/$p .git/refs/remotes/$REMOTE/top-bases/$p
done

tg remote --populate $REMOTE

Attachment: pgpkBDMCDPhf0.pgp
Description: PGP signature

Reply via email to