Git fork

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>

-28
-8
config.c
··· 458 458 * If .git/config does not exist yet, write a minimal version. 459 459 */ 460 460 if (stat(config_filename, &st)) { 461 - static const char contents[] = 462 - "#\n" 463 - "# This is the config file\n" 464 - "#\n" 465 - "\n"; 466 - 467 461 free(store.key); 468 462 469 463 /* if nothing to unset, error out */ ··· 474 468 } 475 469 476 470 store.key = (char*)key; 477 - 478 - write(fd, contents, sizeof(contents)-1); 479 471 store_write_section(fd, key); 480 472 store_write_pair(fd, key, value); 481 473 } else{
-20
t/t1300-repo-config.sh
··· 12 12 git-repo-config core.penguin "little blue" 13 13 14 14 cat > expect << EOF 15 - # 16 - # This is the config file 17 - # 18 - 19 15 [core] 20 16 penguin = little blue 21 17 EOF ··· 25 21 git-repo-config Core.Movie BadPhysics 26 22 27 23 cat > expect << EOF 28 - # 29 - # This is the config file 30 - # 31 - 32 24 [core] 33 25 penguin = little blue 34 26 Movie = BadPhysics ··· 39 31 git-repo-config Cores.WhatEver Second 40 32 41 33 cat > expect << EOF 42 - # 43 - # This is the config file 44 - # 45 - 46 34 [core] 47 35 penguin = little blue 48 36 Movie = BadPhysics ··· 55 43 git-repo-config CORE.UPPERCASE true 56 44 57 45 cat > expect << EOF 58 - # 59 - # This is the config file 60 - # 61 - 62 46 [core] 63 47 penguin = little blue 64 48 Movie = BadPhysics ··· 76 60 'git-repo-config core.penguin "very blue" !kingpin' 77 61 78 62 cat > expect << EOF 79 - # 80 - # This is the config file 81 - # 82 - 83 63 [core] 84 64 penguin = very blue 85 65 Movie = BadPhysics