On Tue, Jan 15, 2008 at 11:13:58PM -0500, Daniel Barkalow wrote:If you use zsh as your shell, put this chpwd function in .zprofile or .zshrc: chpwd() { local gitbasedir=/var/local/git local subdir=$gitbasedir$PWD while [[ ! -d $subdir ]]; do subdir=${subdir:h} done if [[ -d $subdir/.git ]]; then export GIT_DIR=$subdir/.git export GIT_WORK_TREE=${subdir/$gitbasedir/} else unset GIT_DIR GIT_WORK_TREE fi } Then, for each /path/.git dir, move it to /var/local/git/path/.git (creating any needed parent dirs). On every change of directory in the shell, the variables GIT_DIR and GIT_WORK_TREE will be either updated or cleared. If you ever move a work-tree dir, you'll need to remember to move the .git dir in the /var/local/git hierarchy. ..wayne.. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Jeff Garzik | Re: fallocate-implementation-on-i86-x86_64-and-powerpc.patch |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Natalie Protasevich | [BUG] New Kernel Bugs |
