Skip to content

Commit 8d055a3

Browse files
committed
Merge branch 'long-paths'
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 7b3b999 + e75db86 commit 8d055a3

17 files changed

+1145
-121
lines changed

Documentation/config.txt

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

772+
core.fscache::
773+
Enable additional caching of file system data for some operations.
774+
+
775+
Git for Windows uses this to bulk-read and cache lstat data of entire
776+
directories (instead of doing lstat file by file).
777+
778+
core.longpaths::
779+
Enable long path (> 260) support for builtin commands in Git for
780+
Windows. This is disabled by default, as long paths are not supported
781+
by Windows Explorer, cmd.exe and the Git for Windows tool chain
782+
(msys, bash, tcl, perl...). Only enable this if you know what you're
783+
doing and are prepared to live with a few quirks.
784+
785+
core.unsetenvvars::
786+
EXPERIMENTAL, Windows-only: comma-separated list of environment
787+
variables' names that need to be unset before spawning any other
788+
process. Defaults to `PERL5LIB` to account for the fact that Git
789+
for Windows insists on using its own Perl interpreter.
790+
772791
core.createObject::
773792
You can set this to 'link', in which case a hardlink followed by
774793
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)