Skip to content

Commit bce22bd

Browse files
author
Git for Windows Build Agent
committed
Merge branch 'long-paths'
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents fa175f7 + dec7e87 commit bce22bd

17 files changed

+1145
-121
lines changed

Documentation/config.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,25 @@ relatively high IO latencies. When enabled, Git will do the
760760
index comparison to the filesystem data in parallel, allowing
761761
overlapping IO's. Defaults to true.
762762

763+
core.fscache::
764+
Enable additional caching of file system data for some operations.
765+
+
766+
Git for Windows uses this to bulk-read and cache lstat data of entire
767+
directories (instead of doing lstat file by file).
768+
769+
core.longpaths::
770+
Enable long path (> 260) support for builtin commands in Git for
771+
Windows. This is disabled by default, as long paths are not supported
772+
by Windows Explorer, cmd.exe and the Git for Windows tool chain
773+
(msys, bash, tcl, perl...). Only enable this if you know what you're
774+
doing and are prepared to live with a few quirks.
775+
776+
core.unsetenvvars::
777+
EXPERIMENTAL, Windows-only: comma-separated list of environment
778+
variables' names that need to be unset before spawning any other
779+
process. Defaults to `PERL5LIB` to account for the fact that Git
780+
for Windows insists on using its own Perl interpreter.
781+
763782
core.createObject::
764783
You can set this to 'link', in which case a hardlink followed by
765784
a delete of the source are used to make sure that object creation

builtin/commit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
13771377
PATHSPEC_PREFER_FULL,
13781378
prefix, argv);
13791379

1380+
enable_fscache(1);
13801381
read_cache_preload(&s.pathspec);
13811382
refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, &s.pathspec, NULL, NULL);
13821383

cache.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -753,14 +753,6 @@ extern int ref_paranoia;
753753
extern char comment_line_char;
754754
extern int auto_comment_line_char;
755755

756-
/* Windows only */
757-
enum hide_dotfiles_type {
758-
HIDE_DOTFILES_FALSE = 0,
759-
HIDE_DOTFILES_TRUE,
760-
HIDE_DOTFILES_DOTGITONLY
761-
};
762-
extern enum hide_dotfiles_type hide_dotfiles;
763-
764756
enum branch_track {
765757
BRANCH_TRACK_UNSPECIFIED = -1,
766758
BRANCH_TRACK_NEVER = 0,

0 commit comments

Comments
 (0)