Skip to content

Commit 6e45b43

Browse files
pcloudsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 29647d7 commit 6e45b43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,7 +2329,7 @@ int git_config_rename_section_in_file(const char *config_filename,
23292329

23302330
if (!(config_file = fopen(config_filename, "rb"))) {
23312331
/* no config file means nothing to rename, no error */
2332-
goto unlock_and_out;
2332+
goto commit_and_out;
23332333
}
23342334

23352335
if (fstat(fileno(config_file), &st) == -1) {
@@ -2391,7 +2391,7 @@ int git_config_rename_section_in_file(const char *config_filename,
23912391
}
23922392
}
23932393
fclose(config_file);
2394-
unlock_and_out:
2394+
commit_and_out:
23952395
if (commit_lock_file(lock) < 0)
23962396
ret = error_errno("could not write config file %s",
23972397
config_filename);

0 commit comments

Comments
 (0)