git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Add an empty directory?
@ 2005-08-13 17:30 Carl Baldwin
  2005-08-13 18:00 ` Petr Baudis
  0 siblings, 1 reply; 7+ messages in thread
From: Carl Baldwin @ 2005-08-13 17:30 UTC (permalink / raw)
  To: git

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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-08-13 20:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-13 17:30 Add an empty directory? Carl Baldwin
2005-08-13 18:00 ` 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

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).