git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "David A. Wheeler" <dwheeler@dwheeler.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Paul Jackson <pj@sgi.com>, Morten Welinder <mwelinder@gmail.com>,
	mj@ucw.cz, git@vger.kernel.org
Subject: Re: Storing permissions
Date: Sun, 17 Apr 2005 12:21:47 -0400	[thread overview]
Message-ID: <42628D1B.3000207@dwheeler.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0504170857580.7211@ppc970.osdl.org>

Linus Torvalds wrote:
> 
> On Sun, 17 Apr 2005, David A. Wheeler wrote:
> 
>>There's a minor reason to write out ALL the perm bit data, but
>>only care about a few bits coming back in: Some people use
>>SCM systems as a generalized backup system
> 
> Yes. I was actually thinking about having system config files in a git 
> repository when I started it, since I noticed how nicely it would do 
> exactly that.
> 
> However, since the mode bits also end up being part of the name of the 
> tree object (ie they are most certainly part of the hash), it's really 
> basically impossible to only care about one bit but writing out many bits: 
> it's the same issue of having multiple "identical" blocks with different 
> names.
...
> One solution is to tell git with a command line flag and/or config file 
> entry that "for this repo, I want you to honor all bits". That should be 
> easy enough to add at some point, and then you really get what you want.

Yes, I thought of that too.  And I agree, that should do the job.

My real concern is I'm looking at the early design of the
storage format so that it's POSSIBLE to extend git in obvious ways.
As long as it's possible later, then that's a great thing.

...
> Also, I made a design decision that git only cares about non-dotfiles. Git 
> literally never sees or looks at _anything_ that starts with a ".". I 
> think that's absolutely the right thing to do for an SCM (if you hide your 
> files, I really don't think you should expect the SCM to see it), but it's 
> obviously not the right thing for a backup thing.

Again, a command line flag or config file entry could change that
in the future, if desired.  So this is a decision that could be
changed later... the best kind of decision :-).

--- David A. Wheeler

  reply	other threads:[~2005-04-17 16:16 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-16 23:00 Storing permissions Martin Mares
2005-04-16 23:19 ` Paul Jackson
2005-04-16 23:42   ` Junio C Hamano
2005-04-17  0:03     ` Paul Jackson
2005-04-17  5:00       ` David A. Wheeler
2005-04-17  1:01 ` Morten Welinder
2005-04-17  1:30   ` Paul Jackson
2005-04-17  4:48     ` Linus Torvalds
2005-04-17  5:32       ` Paul Jackson
2005-04-17  5:37       ` Linus Torvalds
2005-04-17  6:22       ` David A. Wheeler
2005-04-17  8:13         ` Paul Jackson
2005-04-17 14:51         ` Daniel Barkalow
2005-04-17 16:10         ` Linus Torvalds
2005-04-17 16:21           ` David A. Wheeler [this message]
2005-04-17 22:15             ` Symlinks [was Re: Storing permissions] Morten Welinder
2005-12-07 14:56             ` dotfile support Zack Brown
2005-12-07 15:28               ` Andreas Ericsson
2005-12-07 16:11                 ` Zack Brown
2005-12-07 21:51                   ` Petr Baudis
2005-12-07 15:43               ` Johannes Schindelin
2005-12-07 17:43               ` Junio C Hamano
2005-12-07 18:19                 ` Zack Brown
2005-12-07 19:05                   ` Junio C Hamano
2005-12-08  0:47               ` H. Peter Anvin

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=42628D1B.3000207@dwheeler.com \
    --to=dwheeler@dwheeler.com \
    --cc=git@vger.kernel.org \
    --cc=mj@ucw.cz \
    --cc=mwelinder@gmail.com \
    --cc=pj@sgi.com \
    --cc=torvalds@osdl.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).