Skip to content

Commit ac1dab6

Browse files
committed
Merge branch 'long-paths'
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 719b3ab + 792851b commit ac1dab6

17 files changed

+1133
-125
lines changed

Documentation/config.txt

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

883+
core.fscache::
884+
Enable additional caching of file system data for some operations.
885+
+
886+
Git for Windows uses this to bulk-read and cache lstat data of entire
887+
directories (instead of doing lstat file by file).
888+
889+
core.longpaths::
890+
Enable long path (> 260) support for builtin commands in Git for
891+
Windows. This is disabled by default, as long paths are not supported
892+
by Windows Explorer, cmd.exe and the Git for Windows tool chain
893+
(msys, bash, tcl, perl...). Only enable this if you know what you're
894+
doing and are prepared to live with a few quirks.
895+
896+
core.unsetenvvars::
897+
EXPERIMENTAL, Windows-only: comma-separated list of environment
898+
variables' names that need to be unset before spawning any other
899+
process. Defaults to `PERL5LIB` to account for the fact that Git
900+
for Windows insists on using its own Perl interpreter.
901+
883902
core.createObject::
884903
You can set this to 'link', in which case a hardlink followed by
885904
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
@@ -1322,6 +1322,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
13221322
PATHSPEC_PREFER_FULL,
13231323
prefix, argv);
13241324

1325+
enable_fscache(1);
13251326
read_cache_preload(&s.pathspec);
13261327
refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, &s.pathspec, NULL, NULL);
13271328

cache.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -831,14 +831,6 @@ int use_optional_locks(void);
831831
extern char comment_line_char;
832832
extern int auto_comment_line_char;
833833

834-
/* Windows only */
835-
enum hide_dotfiles_type {
836-
HIDE_DOTFILES_FALSE = 0,
837-
HIDE_DOTFILES_TRUE,
838-
HIDE_DOTFILES_DOTGITONLY
839-
};
840-
extern enum hide_dotfiles_type hide_dotfiles;
841-
842834
enum log_refs_config {
843835
LOG_REFS_UNSET = -1,
844836
LOG_REFS_NONE = 0,

0 commit comments

Comments
 (0)