forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fix lstat()
's st_size
computation for symbolic links when FSCache is in effect
#2673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dscho
merged 1 commit into
git-for-windows:master
from
dscho:also-handle-fscache-addon-for-#2637
Jun 8, 2020
Merged
Fix lstat()
's st_size
computation for symbolic links when FSCache is in effect
#2673
dscho
merged 1 commit into
git-for-windows:master
from
dscho:also-handle-fscache-addon-for-#2637
Jun 8, 2020
Conversation
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
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 clean I 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
git-for-windows-ci
pushed a commit
that referenced
this pull request
Sep 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
Sep 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
Sep 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
Sep 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
Sep 28, 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
Sep 28, 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
Sep 28, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Sep 29, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Sep 29, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Sep 29, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Sep 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
Sep 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
Sep 29, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Sep 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
Oct 1, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Oct 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
Oct 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
Oct 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
Oct 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
Oct 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
Oct 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
Oct 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
Oct 4, 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
Oct 4, 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
Oct 4, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Oct 5, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Oct 5, 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
Oct 5, 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
Oct 5, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
dscho
added a commit
that referenced
this pull request
Oct 6, 2020
Fix `lstat()`'s `st_size` computation for symbolic links when FSCache is in effect
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