Commit 64b7c60
committed
git_config_set_multivar_in_file_gently(): add a lock timeout
In particular when multiple processes want to write to the config
simultaneously, it would come in handy to not fail immediately when
another process locked the config, but to gently try again.
This will help with Scalar's functional test suite which wants to
register multiple repositories for maintenance semi-simultaneously.
As not all code paths calling this function read the config (e.g. `git
config`), we have to read the config setting via
`git_config_get_ulong()`.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent a9b6d9e commit 64b7c60
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3202 | 3202 | | |
3203 | 3203 | | |
3204 | 3204 | | |
| 3205 | + | |
3205 | 3206 | | |
3206 | 3207 | | |
3207 | 3208 | | |
| |||
3222 | 3223 | | |
3223 | 3224 | | |
3224 | 3225 | | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
3225 | 3230 | | |
3226 | 3231 | | |
3227 | 3232 | | |
3228 | 3233 | | |
3229 | | - | |
| 3234 | + | |
| 3235 | + | |
3230 | 3236 | | |
3231 | 3237 | | |
3232 | 3238 | | |
| |||
0 commit comments