mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-07 04:05:08 +00:00
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>
This commit is contained in:
parent
8bb198e674
commit
711b1096f3
@ -1004,7 +1004,7 @@ static int config_write(diskfile_backend *cfg, cvar_t *var)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Then replace the variable */
|
/* 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) {
|
if (error < GIT_SUCCESS) {
|
||||||
git__rethrow(error, "Failed to overwrite the variable");
|
git__rethrow(error, "Failed to overwrite the variable");
|
||||||
break;
|
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 */
|
/* And now if we just need to add a variable */
|
||||||
if (section_matches) {
|
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;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user