From: Boaz Harrosh <bharrosh@panasas.com>
To: Boaz Harrosh <bharrosh@panasas.com>, git <git@vger.kernel.org>
Subject: Re: how to git a read only directory
Date: Wed, 21 Jan 2009 18:46:19 +0200 [thread overview]
Message-ID: <4977515B.9030807@panasas.com> (raw)
In-Reply-To: <20090121155256.GB6966@b2j>
bill lam wrote:
> On Wed, 21 Jan 2009, Boaz Harrosh wrote:
>> I created a master project folder under ~home, init a new git repo,
>> then symlink /etc/ onto an etc/ in the project dir, added all etc/
>> files. I like the extra a/etc/fstab in the patch files better then
>> a/fstab.
>
> I create a symlink in ~/gitrepo/etc to /etc and git init an empty repo
> there. However it failed in symlink when I tried to add files. Could
> you give more detail how to do it? Meanwhile I use worktree method as
> suggested by Michael.
>
What? I don't know this is what I did:
[~] $ mkdir gitrepo; cd gitrepo
[gitrepo] $ git-init
[gitrepo] $ ln -s /etc
[gitrepo] $ git-add /etc/fstab
[gitrepo] $ git-commit -s
Edit commit message in editor
[gitrepo] $ git-show
commit fd6a4a72bf91526b56528f4036c525f6d6fd3dc0
Author: Boaz Harrosh <bharrosh@panasas.com>
Date: Wed Jan 21 18:36:58 2009 +0200
{REMOVEME} etc/fstab test
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
diff --git a/etc/fstab b/etc/fstab
new file mode 100644
index 0000000..2e3f8d3
--- /dev/null
+++ b/etc/fstab
@@ -0,0 +1,18 @@
+LABEL=/fc7 / ext3 noatime 1 1
+LABEL=/usr0 /usr0 ext3 noatime 1 2
+LABEL=/boot /boot ext2 noatime 1 2
+LABEL=/fc10 /alt ext3 defaults 1 2
+tmpfs /dev/shm tmpfs defaults 0 0
+devpts /dev/pts devpts gid=5,mode=620 0 0
+sysfs /sys sysfs defaults 0 0
+proc /proc proc defaults 0 0
+LABEL=SWAP-sda7 swap swap defaults 0 0
+panstor:/main /mnt/panstor nfs soft,intr,rsize=65536,wsize=65536 0 0
<... snip ...>
So in short I did nothing. I have git 1.6.0.1
Boaz
next prev parent reply other threads:[~2009-01-21 16:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-21 8:33 how to git a read only directory bill lam
2009-01-21 9:57 ` Michael J Gruber
2009-01-21 15:48 ` bill lam
2009-01-21 12:34 ` Boaz Harrosh
2009-01-21 15:52 ` bill lam
2009-01-21 16:46 ` Boaz Harrosh [this message]
2009-01-22 10:00 ` bill lam
2009-01-22 10:19 ` Boaz Harrosh
2009-01-22 10:29 ` bill lam
2009-01-22 12:35 ` Boaz Harrosh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4977515B.9030807@panasas.com \
--to=bharrosh@panasas.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.