Skip to content

Commit 361b9ba

Browse files
committed
Merge branch 'long-paths'
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents ecba3d3 + 2813867 commit 361b9ba

17 files changed

+1148
-121
lines changed

Documentation/config.txt

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

858+
core.fscache::
859+
Enable additional caching of file system data for some operations.
860+
+
861+
Git for Windows uses this to bulk-read and cache lstat data of entire
862+
directories (instead of doing lstat file by file).
863+
864+
core.longpaths::
865+
Enable long path (> 260) support for builtin commands in Git for
866+
Windows. This is disabled by default, as long paths are not supported
867+
by Windows Explorer, cmd.exe and the Git for Windows tool chain
868+
(msys, bash, tcl, perl...). Only enable this if you know what you're
869+
doing and are prepared to live with a few quirks.
870+
871+
core.unsetenvvars::
872+
EXPERIMENTAL, Windows-only: comma-separated list of environment
873+
variables' names that need to be unset before spawning any other
874+
process. Defaults to `PERL5LIB` to account for the fact that Git
875+
for Windows insists on using its own Perl interpreter.
876+
858877
core.createObject::
859878
You can set this to 'link', in which case a hardlink followed by
860879
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
@@ -1381,6 +1381,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
13811381
PATHSPEC_PREFER_FULL,
13821382
prefix, argv);
13831383

1384+
enable_fscache(1);
13841385
read_cache_preload(&s.pathspec);
13851386
refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, &s.pathspec, NULL, NULL);
13861387

cache.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -783,14 +783,6 @@ extern int ref_paranoia;
783783
extern char comment_line_char;
784784
extern int auto_comment_line_char;
785785

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

0 commit comments

Comments
 (0)