Fix lstat()'s st_size computation for symbolic links when FSCache is in effect#2673
Merged
dscho merged 1 commit intoJun 8, 2020
Merged
Conversation
In git-for-windows#2637, we fixed a bug where symbolic links' target path sizes were recorded incorrectly in the index. However, we did so only in `mingw_lstat()` but not in `fscache_lstat()`. Meaning: in code paths where the FSCache feature is enabled, Git _still_ got the wrong idea if the symbolic link target's length. Let's fix this. Note: as the FSCache feature reads in whole swaths of directory entries in batch mode, even if metadata for only one of them might be required, we save the expensive `CreateFile()` call that is required to compute the symbolic link target's length to the `fscache_lstat()` call. This fixes git-for-windows#2653. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This was referenced Jun 7, 2020
|
Looks good to me. See test run below: billziss@xps:~/Projects/ext/dscho-git$ uname -a
MINGW64_NT-10.0-19041 xps 3.1.4-340.x86_64 2020-05-19 12:55 UTC x86_64 Msys
billziss@xps:~/Projects/ext/dscho-git$ ./git.exe config core.fscache
true
billziss@xps:~/Projects/ext/dscho-git$ ./git.exe status
On branch also-handle-fscache-addon-for-#2637
Your branch is up to date with 'origin/also-handle-fscache-addon-for-#2637'.
nothing to commit, working tree cleanI have also confirmed that if I copy the Thank you for the quick fix! |
|
Works for me too. Thank you! |
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 8, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 8, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 8, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 8, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 9, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 9, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 9, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 9, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 9, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Jun 10, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 11, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Jun 11, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 12, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 12, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 16, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 16, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 16, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 16, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 18, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Jun 23, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 25, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 25, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 26, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 27, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 29, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jun 30, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Jun 30, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jul 2, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jul 2, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Jul 2, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Jul 2, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jul 3, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jul 3, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jul 3, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jul 3, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jul 7, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jul 7, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
git-for-windows-ci
pushed a commit
that referenced
this pull request
Jul 7, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes #2653