[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-devel] Tag branches, get rid of dead wood in repository
- Date: Fri, 29 Apr 2011 16:20:29 -0700
- From: Erik Erlandson <eerlands@xxxxxxxxxx>
- Subject: Re: [Condor-devel] Tag branches, get rid of dead wood in repository
Git aliases for baggin and taggin:
[alias]
br2tag = "!f() { git tag -m \"$2\" $1-TAG $1 && git branch -D $1; }; f"
tag2br = "!f() { git branch ${1%-TAG} $1 && git tag -d $1; }; f"
# "branch" --> "branch-TAG"
$ git br2tag hfs_weighting_exp "tag message"
Deleted branch hfs_weighting_exp (was 053124f).
$ git log -n 1 hfs_weighting_exp-TAG
commit 053124fdb4c8870e5127355b7bb18ca9f7ac15d4
Author: Erik Erlandson <eerlands@xxxxxxxxxx>
Date: Mon Aug 2 09:40:38 2010 -0700
experimental assignment of total available resources to weighted slot total
# "branch-TAG" --> "branch"
$ git tag2br hfs_weighting_exp-TAG
Deleted tag hfs_weighting_exp-TAG' (was 1213d99)
$ git log -n 1 hfs_weighting_exp
commit 053124fdb4c8870e5127355b7bb18ca9f7ac15d4
Author: Erik Erlandson <eerlands@xxxxxxxxxx>
Date: Mon Aug 2 09:40:38 2010 -0700
experimental assignment of total available resources to weighted slot total