git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Implement selectable group ownership in git-init

From
FPFrancesco Pretto <ceztkoml@gmail.com>
Date
Nov 3, 2007, 19:36 UTC
Message-ID
<b13782500711031236k6b4faef9oe5780cb39afe25db@mail.gmail.com>
In-Reply-To
<472CC676.3000603@gmail.com>
2007/11/3, Francesco Pretto <ceztkoml@gmail.com>:
> Rationale ...

Just to point, I wrote this patch for usability purpose and because i think git still need a strong imprinting about its correct usage pattern (i've read around that people using it with shared repositories are already having problems with file permissions, wrongly thinking it's inflexible for their needs). If you stand with my reasoning, please help me to integrate this patch :-), I have other ideas following this. NB: i'm not a C developer (that was my first patch in pure C), have mercy...

The function adjust_shared_perm is used in other places: is there other git commands that maybe needs to create files/dirs of a specific group (not being in a g+sx dir)? Hopefully not, but i don't know git source much. These are the occurrences (with the exclusion of builtin-init-db.c):

refs.c: adjust_shared_perm(log_file); refs.c: if (adjust_shared_perm(git_HEAD)) { .. builtin-pack-objects.c: return adjust_shared_perm(path); ... builtin-rerere.c: (mkdir(rr_cache, 0777) || adjust_shared_perm(rr_cache))) ... lockfile.c: if (adjust_shared_perm(lk->filename)) ... sha1_file.c: else if (adjust_shared_perm(path)) {

Previous: Francesco PrettoNext: Junio C Hamano
Message 2 of 9 in “Implement selectable group ownership in git-init”
  1. Implement selectable group ownership in git-initFrancesco Pretto, Nov 3, 2007
  2. Francesco PrettoNov 3, 2007
  3. Junio C HamanoNov 3, 2007
  4. Junio C HamanoNov 3, 2007
  5. Wincent ColaiutaNov 5, 2007
  6. Francesco PrettoNov 5, 2007
  7. Wincent ColaiutaNov 5, 2007
  8. Francesco PrettoNov 5, 2007
  9. Wincent ColaiutaNov 6, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.