diff options
author | Han Young <hanyang.tony@bytedance.com> | 2025-07-03 15:45:02 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-07-07 06:49:07 -0700 |
commit | 9455397a5cfcef186fab3321b3fbe29fd3ef78c7 (patch) | |
tree | b9798ccd08c31cfaf52e1cc42ae53c27e55d2667 /builtin/commit-graph.c | |
parent | 16bd9f20a403117f2e0d9bcda6c6e621d3763e77 (diff) |
read-cache: report lock error when refreshing index
In the repo_refresh_and_write_index of read-cache.c, we return -1 to
indicate that writing the index to disk failed.
However, callers do not use this information. Commands such as stash print
"could not write index"
and then exit, which does not help to discover the exact problem.
We can let repo_hold_locked_index print the error message if the locking
failed.
Signed-off-by: Han Young <hanyang.tony@bytedance.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions