From: | Aidan Van Dyk <aidan(at)highrise(dot)ca> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Mark Mielke <mark(at)mark(dot)mielke(dot)cc>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "David E(dot) Wheeler" <david(at)kineticode(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Managing multiple branches in git |
Date: | 2009-06-02 17:57:50 |
Message-ID: | 20090602175750.GI23972@yugib.highrise.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
* Alvaro Herrera <alvherre(at)commandprompt(dot)com> [090602 13:25]:
> That's not the problem. The problem is that it is kept in the same
> directory as the checked out copy. It would be a lot more usable if it
> was possible to store it elsewhere.
>
> Yes, the .svn directories are a PITA.
You can export GIT_DIR to make the .git directory be somewhere else...
and you'll probalby want a corresponding GIT_WORK_TREE (or core.worktree
config) set.
If your careful (i.e. don't make a mistake), you can set GIT_DIR and
GIT_INDEX_FILE AND GIT_WORK_TREE, and use a single "git repository"
among multiple independent "working directories".
That said, is the carefulness needed to work that worth the < 200KB
you save?
On a "referenced" style development repository:
mountie(at)pumpkin:~/pg-work/REL8_3_STABLE$ du -shc .git/*
4.0K .git/branches
4.0K .git/config
4.0K .git/description
4.0K .git/HEAD
48K .git/hooks
328K .git/index
8.0K .git/info
36K .git/logs
16K .git/objects
4.0K .git/packed-refs
32K .git/refs
488K total
488K total in the .git directory, 328K of that is the index.
a.
--
Aidan Van Dyk Create like a god,
aidan(at)highrise(dot)ca command like a king,
http://www.highrise.ca/ work like a slave.
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2009-06-02 18:14:51 | Re: Managing multiple branches in git |
Previous Message | Tom Lane | 2009-06-02 17:56:16 | Re: It's June 1; do you know where your release is? |