Commit 9f41c7a
read-cache: close index.lock in do_write_index
Teach do_write_index() to close the index.lock file
before getting the mtime and updating the istate.timestamp
fields.
On Windows, a file's mtime is not updated until the file is
closed. On Linux, the mtime is set after the last flush.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 49800c9 commit 9f41c7a
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2011 | 2011 | | |
2012 | 2012 | | |
2013 | 2013 | | |
2014 | | - | |
| 2014 | + | |
2015 | 2015 | | |
2016 | 2016 | | |
| 2017 | + | |
2017 | 2018 | | |
2018 | 2019 | | |
2019 | 2020 | | |
| |||
2122 | 2123 | | |
2123 | 2124 | | |
2124 | 2125 | | |
2125 | | - | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
2126 | 2131 | | |
2127 | 2132 | | |
2128 | 2133 | | |
| |||
2145 | 2150 | | |
2146 | 2151 | | |
2147 | 2152 | | |
2148 | | - | |
| 2153 | + | |
2149 | 2154 | | |
2150 | 2155 | | |
2151 | 2156 | | |
| |||
2183 | 2188 | | |
2184 | 2189 | | |
2185 | 2190 | | |
2186 | | - | |
| 2191 | + | |
2187 | 2192 | | |
2188 | 2193 | | |
2189 | 2194 | | |
| |||
0 commit comments