Easily Create (Clean) Compressed Tarballs of Your Git Repository

Comments

2 comments posted
Installed one of these system-wide just now

Nice. You don't mention it, but you can drop these scripts in your libexec/git-core directory and call them as "git targz", etc.

I made a few changes to git-targz (the one that I will likely use) to make it work under standard /bin/sh here: http://gist.github.com/376455 (because not everybody has bash!)

Posted by drench (not verified) on Fri, 04/23/2010 - 06:49
Useful tweak -- thanks!

Yes, I'm a little fuzzy on where 'sh' ends and 'bash' begins. Your tweak is definitely useful in that regard.

It would be nice if the script could default to a sensible name if none is given (e.g. "-", so you might get "project-ff3021"). But, as I mentioned, if I extend these scripts any more, it will probably have to be in Python!

I did not know about lib-exec: thanks for pointing that out. However, any executable script on your $PATH that has a "git-XXXX" pattern can be invoked via "git XXXX". So, for example, if '~/bin' is in your $PATH, then a executable script called "~/bin/git-foo" can be invoked via "git foo".

Posted by Jeet Sukumaran on Sat, 04/24/2010 - 15:08

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a biological visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.