git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Carl Baldwin <cnb@fc.hp.com>
To: git@vger.kernel.org
Subject: Add an empty directory?
Date: Sat, 13 Aug 2005 11:30:43 -0600	[thread overview]
Message-ID: <20050813173043.GA25013@hpsvcnb.fc.hp.com> (raw)

Greetings,

My appologies if this has already been discussed.  I've been through the
archives but could easily have missed something.

I have found it useful in the past to have the ability to add an empty
directory to the repository.  With what little I know about git it seems
that this is entirely possible.  It would create an empty tree object
for the new directory and insert a reference to that in the parent tree
object.

If someone could get me started I think I could find the time to create
and submit a patch to allow this.  Here is what I've tried (with
0.99.4).

% mkdir test
% cd test
% git-init-db
% mkdir dir
% git-add-script dir
error: open("dir"): No such file or directory
fatal: Unable to add dir to database

Cheers,
Carl

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Carl Baldwin                        Systems VLSI Laboratory
 Hewlett Packard Company
 MS 88                               work: 970 898-1523
 3404 E. Harmony Rd.                 work: Carl.N.Baldwin@hp.com
 Fort Collins, CO 80525              home: Carl@ecBaldwin.net
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

             reply	other threads:[~2005-08-13 17:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-13 17:30 Carl Baldwin [this message]
2005-08-13 18:00 ` Add an empty directory? Petr Baudis
2005-08-13 18:19   ` Carl Baldwin
2005-08-13 19:41     ` Linus Torvalds
2005-08-13 19:55       ` Petr Baudis
2005-08-13 20:10       ` Carl Baldwin
2005-08-13 19:45   ` Junio C Hamano

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=20050813173043.GA25013@hpsvcnb.fc.hp.com \
    --to=cnb@fc.hp.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 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).