Skip to content

Commit 2630d6d

Browse files
committed
Merge branch 'long-paths'
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents a9e7a53 + 319d9fe commit 2630d6d

17 files changed

+1145
-121
lines changed

Documentation/config.txt

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

765+
core.fscache::
766+
Enable additional caching of file system data for some operations.
767+
+
768+
Git for Windows uses this to bulk-read and cache lstat data of entire
769+
directories (instead of doing lstat file by file).
770+
771+
core.longpaths::
772+
Enable long path (> 260) support for builtin commands in Git for
773+
Windows. This is disabled by default, as long paths are not supported
774+
by Windows Explorer, cmd.exe and the Git for Windows tool chain
775+
(msys, bash, tcl, perl...). Only enable this if you know what you're
776+
doing and are prepared to live with a few quirks.
777+
778+
core.unsetenvvars::
779+
EXPERIMENTAL, Windows-only: comma-separated list of environment
780+
variables' names that need to be unset before spawning any other
781+
process. Defaults to `PERL5LIB` to account for the fact that Git
782+
for Windows insists on using its own Perl interpreter.
783+
765784
core.createObject::
766785
You can set this to 'link', in which case a hardlink followed by
767786
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
@@ -754,14 +754,6 @@ extern int ref_paranoia;
754754
extern char comment_line_char;
755755
extern int auto_comment_line_char;
756756

757-
/* Windows only */
758-
enum hide_dotfiles_type {
759-
HIDE_DOTFILES_FALSE = 0,
760-
HIDE_DOTFILES_TRUE,
761-
HIDE_DOTFILES_DOTGITONLY
762-
};
763-
extern enum hide_dotfiles_type hide_dotfiles;
764-
765757
enum log_refs_config {
766758
LOG_REFS_UNSET = -1,
767759
LOG_REFS_NONE = 0,

0 commit comments

Comments
 (0)