config.c: remove unnecessary header in minimum configuration file.

It is just silly to start the file called "config" with a
comment that says "This is the config file."

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2005-11-25 14:22:27 -08:00
parent 9cebe90bc5
commit 53e7181cd9
2 changed files with 0 additions and 28 deletions

View File

@ -458,12 +458,6 @@ int git_config_set_multivar(const char* key, const char* value,
* 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 */
@ -474,8 +468,6 @@ int git_config_set_multivar(const char* key, const char* value,
}
store.key = (char*)key;
write(fd, contents, sizeof(contents)-1);
store_write_section(fd, key);
store_write_pair(fd, key, value);
} else{