* If .git/config does not exist yet, write a minimal version.
*/
if (stat(config_filename, &st)) {
- static const char contents[] =
- "#\n"
- "# This is the config file\n"
- "#\n"
- "\n";
-
free(store.key);
/* if nothing to unset, error out */
}
store.key = (char*)key;
-
- write(fd, contents, sizeof(contents)-1);
store_write_section(fd, key);
store_write_pair(fd, key, value);
} else{
git-repo-config core.penguin "little blue"
cat > expect << EOF
-#
-# This is the config file
-#
-
[core]
penguin = little blue
EOF
git-repo-config Core.Movie BadPhysics
cat > expect << EOF
-#
-# This is the config file
-#
-
[core]
penguin = little blue
Movie = BadPhysics
git-repo-config Cores.WhatEver Second
cat > expect << EOF
-#
-# This is the config file
-#
-
[core]
penguin = little blue
Movie = BadPhysics
git-repo-config CORE.UPPERCASE true
cat > expect << EOF
-#
-# This is the config file
-#
-
[core]
penguin = little blue
Movie = BadPhysics
'git-repo-config core.penguin "very blue" !kingpin'
cat > expect << EOF
-#
-# This is the config file
-#
-
[core]
penguin = very blue
Movie = BadPhysics