Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-26 01:22:27 +0300
committerJunio C Hamano <junkio@cox.net>2005-12-05 23:58:53 +0300
commit53e7181cd9927a8a194f4770c597744d96a113a2 (patch)
tree046434ebf97f83159ab3dab68f15f2e0bacb52b4 /config.c
parent9cebe90bc55c76638f5cb8132d9fbd2769e05e54 (diff)
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>
Diffstat (limited to 'config.c')
-rw-r--r--config.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/config.c b/config.c
index 34584f62b4..5b5a9a2e4c 100644
--- a/config.c
+++ b/config.c
@@ -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{