git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Sebrecht <nicolas.s.dev@gmx.fr>
To: slipstream180 <ivan.barrios@gmail.com>
Cc: git@vger.kernel.org, Nicolas Sebrecht <nicolas.s.dev@gmx.fr>
Subject: Re: How do you add an external directory to repository?
Date: Sun, 7 Mar 2010 22:36:24 +0100	[thread overview]
Message-ID: <20100307213624.GA12937@vidovic> (raw)
In-Reply-To: <1267992229319-4691734.post@n2.nabble.com>

The 07/03/10, slipstream180 wrote:

> I understand that I can add a symbolic link to /home/some/directory, but I
> believe that only track the link. How do I track all files under the
> directory as well?

I think you're looking for the bind option of mount. This is what I use
to track all my configuration files in one "conf" repository.

Here is an extract of how my fstab looks like:

  /home/nicolas/.zsh /home/nicolas/dev/conf/zsh				auto	bind,user	0 0 
  /home/nicolas/.vim /home/nicolas/dev/conf/vim				auto	bind,user	0 0 
  /home/nicolas/.mutt /home/nicolas/dev/conf/mutt				auto	bind,user	0 0 
  /home/nicolas/.screen /home/nicolas/dev/conf/screen			auto	bind,user	0 0 
  /home/nicolas/.offlineimapconf/ /home/nicolas/dev/conf/offlineimap	auto	bind,user	0 0 

I also use a symbolic link ~/.zshrc to .zsh/zshrc to track it too. This
is very useful because one logical change may affect configuration files
from various programs (e.g. have a new mailbox concerns mutt,
offlineimap, imapfilter, and some other scripts of my own).


Also, I use this trick for web projects:

  /home/nicolas/dev/wsb /var/www/localhost/htdocs/wsb			auto	bind,user	0 0
  

-- 
Nicolas Sebrecht

      parent reply	other threads:[~2010-03-07 21:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-07 20:03 How do you add an external directory to repository? slipstream180
2010-03-07 20:23 ` Fredrik Gustafsson
2010-03-07 21:36 ` Nicolas Sebrecht [this message]

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=20100307213624.GA12937@vidovic \
    --to=nicolas.s.dev@gmx.fr \
    --cc=git@vger.kernel.org \
    --cc=ivan.barrios@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).