Skip to content

Commit f437cd1

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

17 files changed

+1148
-121
lines changed

Documentation/config.txt

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

848+
core.fscache::
849+
Enable additional caching of file system data for some operations.
850+
+
851+
Git for Windows uses this to bulk-read and cache lstat data of entire
852+
directories (instead of doing lstat file by file).
853+
854+
core.longpaths::
855+
Enable long path (> 260) support for builtin commands in Git for
856+
Windows. This is disabled by default, as long paths are not supported
857+
by Windows Explorer, cmd.exe and the Git for Windows tool chain
858+
(msys, bash, tcl, perl...). Only enable this if you know what you're
859+
doing and are prepared to live with a few quirks.
860+
861+
core.unsetenvvars::
862+
EXPERIMENTAL, Windows-only: comma-separated list of environment
863+
variables' names that need to be unset before spawning any other
864+
process. Defaults to `PERL5LIB` to account for the fact that Git
865+
for Windows insists on using its own Perl interpreter.
866+
848867
core.createObject::
849868
You can set this to 'link', in which case a hardlink followed by
850869
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
@@ -782,14 +782,6 @@ extern int ref_paranoia;
782782
extern char comment_line_char;
783783
extern int auto_comment_line_char;
784784

785-
/* Windows only */
786-
enum hide_dotfiles_type {
787-
HIDE_DOTFILES_FALSE = 0,
788-
HIDE_DOTFILES_TRUE,
789-
HIDE_DOTFILES_DOTGITONLY
790-
};
791-
extern enum hide_dotfiles_type hide_dotfiles;
792-
793785
enum log_refs_config {
794786
LOG_REFS_UNSET = -1,
795787
LOG_REFS_NONE = 0,

0 commit comments

Comments
 (0)