libgit2

git_repository_init_mode_t

Version:

Mode options for git_repository_init_ext.

Set the mode field of the git_repository_init_options structure either to the custom mode that you would like, or to one of the defined modes.

Values

GIT_REPOSITORY_INIT_SHARED_UMASK
0

Use permissions configured by umask - the default.

GIT_REPOSITORY_INIT_SHARED_GROUP
1533

Use "--shared=group" behavior, chmod'ing the new repo to be group writable and "g+sx" for sticky group assignment.

GIT_REPOSITORY_INIT_SHARED_ALL
1535

Use "--shared=all" behavior, adding world readability.

Versions