MCPcopy Create free account
hub / github.com/git/git / shared_callback

Function shared_callback

builtin/init-db.c:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static int shared_callback(const struct option *opt, const char *arg, int unset)
51{
52 BUG_ON_OPT_NEG(unset);
53 *((int *) opt->value) = (arg) ? git_config_perm("arg", arg) : PERM_GROUP;
54 return 0;
55}
56
57static const char *const init_db_usage[] = {
58 N_("git init [-q | --quiet] [--bare] [--template=<template-directory>]\n"

Callers

nothing calls this directly

Calls 1

git_config_permFunction · 0.85

Tested by

no test coverage detected