summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-06-14 13:08:30 +0200
committerCarlos Martín Nieto <cmn@elego.de>2011-06-14 13:09:40 +0200
commit711b1096f361ccdadfd3b316e41ca93ce1757975 (patch)
tree2985ab007387917ac1d4c9bc2a9b5e4d6bab1e58
parent8bb198e6744daa16cde3f8cea3669b86df83897d (diff)
downloadlibgit2-711b1096f361ccdadfd3b316e41ca93ce1757975.tar.gz
Indent config variables with tags
Confg variables are indended using tags and not four spaces as was being done by the code. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
-rw-r--r--src/config_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config_file.c b/src/config_file.c
index 87a732c78..916b4d081 100644
--- a/src/config_file.c
+++ b/src/config_file.c
@@ -1004,7 +1004,7 @@ static int config_write(diskfile_backend *cfg, cvar_t *var)
}
/* Then replace the variable */
- error = git_filebuf_printf(&file, " %s = %s\n", var->name, var->value);
+ error = git_filebuf_printf(&file, "\t%s = %s\n", var->name, var->value);
if (error < GIT_SUCCESS) {
git__rethrow(error, "Failed to overwrite the variable");
break;
@@ -1043,7 +1043,7 @@ static int config_write(diskfile_backend *cfg, cvar_t *var)
/* And now if we just need to add a variable */
if (section_matches) {
- error = git_filebuf_printf(&file, " %s = %s\n", var->name, var->value);
+ error = git_filebuf_printf(&file, "\t%s = %s\n", var->name, var->value);
goto cleanup;
}