Skip to content

Commit 492384d

Browse files
committed
Merge 'msys2' into HEAD
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 0196a47 + d106e6d commit 492384d

27 files changed

+1414
-184
lines changed

Documentation/Makefile

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ docdep_prereqs = \
283283
cmd-list.made $(cmds_txt)
284284

285285
doc.dep : $(docdep_prereqs) $(wildcard *.txt) build-docdep.perl
286-
$(QUIET_GEN)$(RM) $@+ $@ && \
287-
$(PERL_PATH) ./build-docdep.perl >$@+ $(QUIET_STDERR) && \
288-
mv $@+ $@
286+
$(QUIET_GEN)$(RM) $@.new $@ && \
287+
$(PERL_PATH) ./build-docdep.perl >$@.new $(QUIET_STDERR) && \
288+
mv $@.new $@
289289

290290
-include doc.dep
291291

@@ -321,8 +321,8 @@ mergetools-list.made: ../git-mergetool--lib.sh $(wildcard ../mergetools/*)
321321
date >$@
322322

323323
clean:
324-
$(RM) *.xml *.xml+ *.html *.html+ *.1 *.5 *.7
325-
$(RM) *.texi *.texi+ *.texi++ git.info gitman.info
324+
$(RM) *.xml *.xml.new *.html *.html.new *.1 *.5 *.7
325+
$(RM) *.texi *.texi.new *.texi.new.new git.info gitman.info
326326
$(RM) *.pdf
327327
$(RM) howto-index.txt howto/*.html doc.dep
328328
$(RM) technical/*.html technical/api-index.txt
@@ -331,14 +331,14 @@ clean:
331331
$(RM) manpage-base-url.xsl
332332

333333
$(MAN_HTML): %.html : %.txt asciidoc.conf
334-
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
335-
$(TXT_TO_HTML) -d manpage -o $@+ $< && \
336-
mv $@+ $@
334+
$(QUIET_ASCIIDOC)$(RM) $@.new $@ && \
335+
$(TXT_TO_HTML) -d manpage -o $@.new $< && \
336+
mv $@.new $@
337337

338338
$(OBSOLETE_HTML): %.html : %.txto asciidoc.conf
339-
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
340-
$(TXT_TO_HTML) -o $@+ $< && \
341-
mv $@+ $@
339+
$(QUIET_ASCIIDOC)$(RM) $@.new $@ && \
340+
$(TXT_TO_HTML) -o $@.new $< && \
341+
mv $@.new $@
342342

343343
manpage-base-url.xsl: manpage-base-url.xsl.in
344344
sed "s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@
@@ -348,14 +348,14 @@ manpage-base-url.xsl: manpage-base-url.xsl.in
348348
$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
349349

350350
%.xml : %.txt asciidoc.conf
351-
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
352-
$(TXT_TO_XML) -d manpage -o $@+ $< && \
353-
mv $@+ $@
351+
$(QUIET_ASCIIDOC)$(RM) $@.new $@ && \
352+
$(TXT_TO_XML) -d manpage -o $@.new $< && \
353+
mv $@.new $@
354354

355355
user-manual.xml: user-manual.txt user-manual.conf
356-
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
357-
$(TXT_TO_XML) -d book -o $@+ $< && \
358-
mv $@+ $@
356+
$(QUIET_ASCIIDOC)$(RM) $@.new $@ && \
357+
$(TXT_TO_XML) -d book -o $@.new $< && \
358+
mv $@.new $@
359359

360360
technical/api-index.txt: technical/api-index-skel.txt \
361361
technical/api-index.sh $(patsubst %,%.txt,$(API_DOCS))
@@ -372,46 +372,46 @@ XSLT = docbook.xsl
372372
XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css
373373

374374
user-manual.html: user-manual.xml $(XSLT)
375-
$(QUIET_XSLTPROC)$(RM) $@+ $@ && \
376-
xsltproc $(XSLTOPTS) -o $@+ $(XSLT) $< && \
377-
mv $@+ $@
375+
$(QUIET_XSLTPROC)$(RM) $@.new $@ && \
376+
xsltproc $(XSLTOPTS) -o $@.new $(XSLT) $< && \
377+
mv $@.new $@
378378

379379
git.info: user-manual.texi
380380
$(QUIET_MAKEINFO)$(MAKEINFO) --no-split -o $@ user-manual.texi
381381

382382
user-manual.texi: user-manual.xml
383-
$(QUIET_DB2TEXI)$(RM) $@+ $@ && \
384-
$(DOCBOOK2X_TEXI) user-manual.xml --encoding=UTF-8 --to-stdout >$@++ && \
385-
$(PERL_PATH) fix-texi.perl <$@++ >$@+ && \
386-
rm $@++ && \
387-
mv $@+ $@
383+
$(QUIET_DB2TEXI)$(RM) $@.new $@ && \
384+
$(DOCBOOK2X_TEXI) user-manual.xml --encoding=UTF-8 --to-stdout >$@.new.new && \
385+
$(PERL_PATH) fix-texi.perl <$@.new.new >$@.new && \
386+
rm $@.new.new && \
387+
mv $@.new $@
388388

389389
user-manual.pdf: user-manual.xml
390-
$(QUIET_DBLATEX)$(RM) $@+ $@ && \
391-
$(DBLATEX) -o $@+ $(DBLATEX_COMMON) $< && \
392-
mv $@+ $@
390+
$(QUIET_DBLATEX)$(RM) $@.new $@ && \
391+
$(DBLATEX) -o $@.new $(DBLATEX_COMMON) $< && \
392+
mv $@.new $@
393393

394394
gitman.texi: $(MAN_XML) cat-texi.perl texi.xsl
395-
$(QUIET_DB2TEXI)$(RM) $@+ $@ && \
396-
($(foreach xml,$(sort $(MAN_XML)),xsltproc -o $(xml)+ texi.xsl $(xml) && \
397-
$(DOCBOOK2X_TEXI) --encoding=UTF-8 --to-stdout $(xml)+ && \
398-
rm $(xml)+ &&) true) > $@++ && \
399-
$(PERL_PATH) cat-texi.perl $@ <$@++ >$@+ && \
400-
rm $@++ && \
401-
mv $@+ $@
395+
$(QUIET_DB2TEXI)$(RM) $@.new $@ && \
396+
($(foreach xml,$(sort $(MAN_XML)),xsltproc -o $(xml).new texi.xsl $(xml) && \
397+
$(DOCBOOK2X_TEXI) --encoding=UTF-8 --to-stdout $(xml).new && \
398+
rm $(xml).new &&) true) > $@.new.new && \
399+
$(PERL_PATH) cat-texi.perl $@ <$@.new.new >$@.new && \
400+
rm $@.new.new && \
401+
mv $@.new $@
402402

403403
gitman.info: gitman.texi
404404
$(QUIET_MAKEINFO)$(MAKEINFO) --no-split --no-validate $*.texi
405405

406406
$(patsubst %.txt,%.texi,$(MAN_TXT)): %.texi : %.xml
407-
$(QUIET_DB2TEXI)$(RM) $@+ $@ && \
408-
$(DOCBOOK2X_TEXI) --to-stdout $*.xml >$@+ && \
409-
mv $@+ $@
407+
$(QUIET_DB2TEXI)$(RM) $@.new $@ && \
408+
$(DOCBOOK2X_TEXI) --to-stdout $*.xml >$@.new && \
409+
mv $@.new $@
410410

411411
howto-index.txt: howto-index.sh $(wildcard howto/*.txt)
412-
$(QUIET_GEN)$(RM) $@+ $@ && \
413-
'$(SHELL_PATH_SQ)' ./howto-index.sh $(sort $(wildcard howto/*.txt)) >$@+ && \
414-
mv $@+ $@
412+
$(QUIET_GEN)$(RM) $@.new $@ && \
413+
'$(SHELL_PATH_SQ)' ./howto-index.sh $(sort $(wildcard howto/*.txt)) >$@.new && \
414+
mv $@.new $@
415415

416416
$(patsubst %,%.html,$(ARTICLES)) : %.html : %.txt
417417
$(QUIET_ASCIIDOC)$(TXT_TO_HTML) $*.txt
@@ -420,10 +420,10 @@ WEBDOC_DEST = /pub/software/scm/git/docs
420420

421421
howto/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
422422
$(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt
423-
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
423+
$(QUIET_ASCIIDOC)$(RM) $@.new $@ && \
424424
sed -e '1,/^$$/d' $< | \
425-
$(TXT_TO_HTML) - >$@+ && \
426-
mv $@+ $@
425+
$(TXT_TO_HTML) - >$@.new && \
426+
mv $@.new $@
427427

428428
install-webdoc : html
429429
'$(SHELL_PATH_SQ)' ./install-webdoc.sh $(WEBDOC_DEST)

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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ $(SCRIPT_LIB) : % : %.sh GIT-SCRIPT-DEFINES
19621962
$(QUIET_GEN)$(cmd_munge_script) && \
19631963
mv $@+ $@
19641964

1965-
git.res: git.rc GIT-VERSION-FILE
1965+
git.res: git.rc GIT-VERSION-FILE GIT-PREFIX
19661966
$(QUIET_RC)$(RC) \
19671967
$(join -DMAJOR= -DMINOR= -DMICRO= -DPATCHLEVEL=, $(wordlist 1, 4, \
19681968
$(shell echo $(GIT_VERSION) 0 0 0 0 | tr '.a-zA-Z-' ' '))) \

builtin/clean.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ static int *list_and_choose(struct menu_opts *opts, struct menu_stuff *stuff)
581581
clean_get_color(CLEAN_COLOR_RESET));
582582
}
583583

584+
fflush(stdout);
584585
if (strbuf_getline_lf(&choice, stdin) != EOF) {
585586
strbuf_trim(&choice);
586587
} else {
@@ -663,6 +664,7 @@ static int filter_by_patterns_cmd(void)
663664
clean_print_color(CLEAN_COLOR_PROMPT);
664665
printf(_("Input ignore patterns>> "));
665666
clean_print_color(CLEAN_COLOR_RESET);
667+
fflush(stdout);
666668
if (strbuf_getline_lf(&confirm, stdin) != EOF)
667669
strbuf_trim(&confirm);
668670
else
@@ -761,6 +763,7 @@ static int ask_each_cmd(void)
761763
qname = quote_path_relative(item->string, NULL, &buf);
762764
/* TRANSLATORS: Make sure to keep [y/N] as is */
763765
printf(_("Remove %s [y/N]? "), qname);
766+
fflush(stdout);
764767
if (strbuf_getline_lf(&confirm, stdin) != EOF) {
765768
strbuf_trim(&confirm);
766769
} else {

builtin/commit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
14111411
PATHSPEC_PREFER_FULL,
14121412
prefix, argv);
14131413

1414+
enable_fscache(1);
14141415
read_cache_preload(&s.pathspec);
14151416
refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, &s.pathspec, NULL, NULL);
14161417

cache.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -852,14 +852,6 @@ int use_optional_locks(void);
852852
extern char comment_line_char;
853853
extern int auto_comment_line_char;
854854

855-
/* Windows only */
856-
enum hide_dotfiles_type {
857-
HIDE_DOTFILES_FALSE = 0,
858-
HIDE_DOTFILES_TRUE,
859-
HIDE_DOTFILES_DOTGITONLY
860-
};
861-
extern enum hide_dotfiles_type hide_dotfiles;
862-
863855
enum log_refs_config {
864856
LOG_REFS_UNSET = -1,
865857
LOG_REFS_NONE = 0,

0 commit comments

Comments
 (0)