Index syndication
comment syndication

Microsoft Development

I’ve started down the path of Darkness 🙂

In December 2011, I went on BizTalk training with @BizTalkBill and I’m now four weeks into the next stage of my career which is being an Microsoft “Integration Specialist”. You won’t find any open source in this realm, no ruby, nothing involving indie developers cracking out code until late at night.

What this change means is getting to know Visual Studio, BizTalk, SQL Server and all things Microsoft. It means using TFS, even though you really want to use Git. It means C# coding when you are familiar with interpreted languages like Perl, PHP and Ruby (I won’t be doing an ASP work).

That means you can expect going forward less posts about Unix, Clearcase (finally!) and Open Source platforms, and more about Microsoft offerings; specifically integration products.

Welcome to 2012.

Git on 10.04 Ubuntu LTS

This is more for me than you, however if you need Git on Ubuntu 10.04 (LTS) try this. The commands I ran get the pre-packaged PPA Git working on Ubuntu 10.04:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:git-core/ppa
sudo aptitude update
sudo aptitude safe-upgrade
sudo aptitude install git

Clone a part of an SVN repository in git

I was trying to clone my wordpress plugin from the wordpress svn repo using git-svn. I had no luck for about the past 8 weeks, with this problem:

Initialized empty Git repository in /Users/lantrix/tweet/.git/
Using higher level of URL: =>

And it would proceed to hit up the entire wordpress repo.
After reading a possible solution on Charlie’s Old blog, I stubmled across a newer way to do this.

As of v1.6.4 of git, you can now use a –no-minimize-url when doing a git-svn clone. This makes git clone only the part of the repo you want; and the added bonus is you can get all your tags and branches.

Here is how I did it:

git svn clone –prefix=svn/ –stdlayout \
–authors-file=authors.txt \

It still took a while to parse all the SVN history, and now of course this stands out in the git-svn doco 😛

The authors.txt file just mapped my svn users to git user/email pair, e.g.:

lantrix = Lantrix <[email protected]>
plugin-master = none <[email protected]>
(no author) = none <[email protected]>

You will probably want to have a look at these set of scripts. Have a read of NothingMuch’s perl blog for extra steps and details on extra svn conversion scripts.

Git branch name in your bash prompt

Here is a quick way to show the current git branch when you are in a repository directory. Place this in your .bashrc or .bash_profile:

I’ve also customised the PS1 to show user/host/path.

You should probably setup git bash completion as well. This can be done by sourcing the bash completion script that is available in the git source code as shown (change path to where you place script):

Have fun.