config.c: rename label unlock_and_out
There are two ways to unlock a file: commit, or revert. Rename it to commit_and_out to avoid confusion. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
Dec 20, 2016 at 16:48 UTC
6e45b43fa9c17124c5aea03b3fd6563cf03bae07
1 file changed
+2
-2
config.c
+2
-2
@@ -2329,7 +2329,7 @@ int git_config_rename_section_in_file(const char *config_filename,
2329
2330
if (!(config_file = fopen(config_filename, "rb"))) {
2331
/* no config file means nothing to rename, no error */
2332
- goto unlock_and_out;
2332
+ goto commit_and_out;
2333
}
2334
2335
if (fstat(fileno(config_file), &st) == -1) {
@@ -2391,7 +2391,7 @@ int git_config_rename_section_in_file(const char *config_filename,
2391
}
2392
}
2393
fclose(config_file);
2394
-unlock_and_out:
2394
+commit_and_out:
2395
if (commit_lock_file(lock) < 0)
2396
ret = error_errno("could not write config file %s",
2397
config_filename);