Unified · Split
| @@ -208,9 +208,15 @@ Check out the [performance discussion][git-traverse-performance] as well. · 207 unmodified lines | ||
| 208 | 208 | |
| 209 | 209 | ### git-tempfile |
| 210 | 210 | |
| 211 | +Use tempfiles to minimize the risk of resource leakage when preparing to overwrite or create a file with new content | |
| 212 | +in a signal-safe way, making the change atomic. | |
| 213 | + | |
| 214 | +Tempfiles can also be used as locks as only one tempfile can exist at a given path at a time. | |
| 215 | + | |
| 211 | 216 | * [x] registered temporary files which are deleted automatically as the process terminates or on drop |
| 212 | 217 | * [x] write to temorary file and persist it under new name |
| 213 | 218 | * [x] mark paths with a closed temporary file |
| 219 | +* [x] persist temporary files to prevent them from perishing. | |
| 214 | 220 | |
| 215 | 221 | ### git-config |
| 216 | 222 | * [ ] read |