Skip to content

Commit fd85758

Browse files
committed
Merge 'msys2' into HEAD
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 29e4312 + bd73975 commit fd85758

33 files changed

+1431
-180
lines changed

Documentation/Makefile

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ docdep_prereqs = \
265265
cmd-list.made $(cmds_txt)
266266

267267
doc.dep : $(docdep_prereqs) $(wildcard *.txt) build-docdep.perl
268-
$(QUIET_GEN)$(RM) $@+ $@ && \
269-
$(PERL_PATH) ./build-docdep.perl >$@+ $(QUIET_STDERR) && \
270-
mv $@+ $@
268+
$(QUIET_GEN)$(RM) $@.new $@ && \
269+
$(PERL_PATH) ./build-docdep.perl >$@.new $(QUIET_STDERR) && \
270+
mv $@.new $@
271271

272272
-include doc.dep
273273

@@ -303,23 +303,23 @@ mergetools-list.made: ../git-mergetool--lib.sh $(wildcard ../mergetools/*)
303303
date >$@
304304

305305
clean:
306-
$(RM) *.xml *.xml+ *.html *.html+ *.1 *.5 *.7
307-
$(RM) *.texi *.texi+ *.texi++ git.info gitman.info
306+
$(RM) *.xml *.xml.new *.html *.html.new *.1 *.5 *.7
307+
$(RM) *.texi *.texi.new *.texi.new.new git.info gitman.info
308308
$(RM) *.pdf
309309
$(RM) howto-index.txt howto/*.html doc.dep
310310
$(RM) technical/*.html technical/api-index.txt
311311
$(RM) $(cmds_txt) $(mergetools_txt) *.made
312312
$(RM) manpage-base-url.xsl
313313

314314
$(MAN_HTML): %.html : %.txt asciidoc.conf
315-
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
316-
$(TXT_TO_HTML) -d manpage -o $@+ $< && \
317-
mv $@+ $@
315+
$(QUIET_ASCIIDOC)$(RM) $@.new $@ && \
316+
$(TXT_TO_HTML) -d manpage -o $@.new $< && \
317+
mv $@.new $@
318318

319319
$(OBSOLETE_HTML): %.html : %.txto asciidoc.conf
320-
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
321-
$(TXT_TO_HTML) -o $@+ $< && \
322-
mv $@+ $@
320+
$(QUIET_ASCIIDOC)$(RM) $@.new $@ && \
321+
$(TXT_TO_HTML) -o $@.new $< && \
322+
mv $@.new $@
323323

324324
manpage-base-url.xsl: manpage-base-url.xsl.in
325325
sed "s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@
@@ -329,14 +329,14 @@ manpage-base-url.xsl: manpage-base-url.xsl.in
329329
$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
330330

331331
%.xml : %.txt asciidoc.conf
332-
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
333-
$(TXT_TO_XML) -d manpage -o $@+ $< && \
334-
mv $@+ $@
332+
$(QUIET_ASCIIDOC)$(RM) $@.new $@ && \
333+
$(TXT_TO_XML) -d manpage -o $@.new $< && \
334+
mv $@.new $@
335335

336336
user-manual.xml: user-manual.txt user-manual.conf
337-
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
338-
$(TXT_TO_XML) -d article -o $@+ $< && \
339-
mv $@+ $@
337+
$(QUIET_ASCIIDOC)$(RM) $@.new $@ && \
338+
$(TXT_TO_XML) -d book -o $@.new $< && \
339+
mv $@.new $@
340340

341341
technical/api-index.txt: technical/api-index-skel.txt \
342342
technical/api-index.sh $(patsubst %,%.txt,$(API_DOCS))
@@ -350,45 +350,45 @@ XSLT = docbook.xsl
350350
XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css
351351

352352
user-manual.html: user-manual.xml $(XSLT)
353-
$(QUIET_XSLTPROC)$(RM) $@+ $@ && \
354-
xsltproc $(XSLTOPTS) -o $@+ $(XSLT) $< && \
355-
mv $@+ $@
353+
$(QUIET_XSLTPROC)$(RM) $@.new $@ && \
354+
xsltproc $(XSLTOPTS) -o $@.new $(XSLT) $< && \
355+
mv $@.new $@
356356

357357
git.info: user-manual.texi
358358
$(QUIET_MAKEINFO)$(MAKEINFO) --no-split -o $@ user-manual.texi
359359

360360
user-manual.texi: user-manual.xml
361-
$(QUIET_DB2TEXI)$(RM) $@+ $@ && \
362-
$(DOCBOOK2X_TEXI) user-manual.xml --encoding=UTF-8 --to-stdout >$@++ && \
363-
$(PERL_PATH) fix-texi.perl <$@++ >$@+ && \
364-
rm $@++ && \
365-
mv $@+ $@
361+
$(QUIET_DB2TEXI)$(RM) $@.new $@ && \
362+
$(DOCBOOK2X_TEXI) user-manual.xml --encoding=UTF-8 --to-stdout >$@.new.new && \
363+
$(PERL_PATH) fix-texi.perl <$@.new.new >$@.new && \
364+
rm $@.new.new && \
365+
mv $@.new $@
366366

367367
user-manual.pdf: user-manual.xml
368-
$(QUIET_DBLATEX)$(RM) $@+ $@ && \
369-
$(DBLATEX) -o $@+ -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty $< && \
370-
mv $@+ $@
368+
$(QUIET_DBLATEX)$(RM) $@.new $@ && \
369+
$(DBLATEX) -o $@.new -p $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.xsl -s $(ASCIIDOC_DBLATEX_DIR)/asciidoc-dblatex.sty $< && \
370+
mv $@.new $@
371371

372372
gitman.texi: $(MAN_XML) cat-texi.perl
373-
$(QUIET_DB2TEXI)$(RM) $@+ $@ && \
373+
$(QUIET_DB2TEXI)$(RM) $@.new $@ && \
374374
($(foreach xml,$(MAN_XML),$(DOCBOOK2X_TEXI) --encoding=UTF-8 \
375-
--to-stdout $(xml) &&) true) > $@++ && \
376-
$(PERL_PATH) cat-texi.perl $@ <$@++ >$@+ && \
377-
rm $@++ && \
378-
mv $@+ $@
375+
--to-stdout $(xml) &&) true) > $@.new.new && \
376+
$(PERL_PATH) cat-texi.perl $@ <$@.new.new >$@.new && \
377+
rm $@.new.new && \
378+
mv $@.new $@
379379

380380
gitman.info: gitman.texi
381381
$(QUIET_MAKEINFO)$(MAKEINFO) --no-split --no-validate $*.texi
382382

383383
$(patsubst %.txt,%.texi,$(MAN_TXT)): %.texi : %.xml
384-
$(QUIET_DB2TEXI)$(RM) $@+ $@ && \
385-
$(DOCBOOK2X_TEXI) --to-stdout $*.xml >$@+ && \
386-
mv $@+ $@
384+
$(QUIET_DB2TEXI)$(RM) $@.new $@ && \
385+
$(DOCBOOK2X_TEXI) --to-stdout $*.xml >$@.new && \
386+
mv $@.new $@
387387

388388
howto-index.txt: howto-index.sh $(wildcard howto/*.txt)
389-
$(QUIET_GEN)$(RM) $@+ $@ && \
390-
'$(SHELL_PATH_SQ)' ./howto-index.sh $(sort $(wildcard howto/*.txt)) >$@+ && \
391-
mv $@+ $@
389+
$(QUIET_GEN)$(RM) $@.new $@ && \
390+
'$(SHELL_PATH_SQ)' ./howto-index.sh $(sort $(wildcard howto/*.txt)) >$@.new && \
391+
mv $@.new $@
392392

393393
$(patsubst %,%.html,$(ARTICLES)) : %.html : %.txt
394394
$(QUIET_ASCIIDOC)$(TXT_TO_HTML) $*.txt
@@ -397,10 +397,10 @@ WEBDOC_DEST = /pub/software/scm/git/docs
397397

398398
howto/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
399399
$(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt
400-
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
400+
$(QUIET_ASCIIDOC)$(RM) $@.new $@ && \
401401
sed -e '1,/^$$/d' $< | \
402-
$(TXT_TO_HTML) - >$@+ && \
403-
mv $@+ $@
402+
$(TXT_TO_HTML) - >$@.new && \
403+
mv $@.new $@
404404

405405
install-webdoc : html
406406
'$(SHELL_PATH_SQ)' ./install-webdoc.sh $(WEBDOC_DEST)

Documentation/config.txt

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

716+
core.fscache::
717+
Enable additional caching of file system data for some operations.
718+
+
719+
Git for Windows uses this to bulk-read and cache lstat data of entire
720+
directories (instead of doing lstat file by file).
721+
722+
core.longpaths::
723+
Enable long path (> 260) support for builtin commands in Git for
724+
Windows. This is disabled by default, as long paths are not supported
725+
by Windows Explorer, cmd.exe and the Git for Windows tool chain
726+
(msys, bash, tcl, perl...). Only enable this if you know what you're
727+
doing and are prepared to live with a few quirks.
728+
716729
core.createObject::
717730
You can set this to 'link', in which case a hardlink followed by
718731
a delete of the source are used to make sure that object creation

Documentation/giteveryday.txt

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -308,18 +308,15 @@ master or exposed as a part of a stable branch.
308308
<10> create a signed tag.
309309
<11> make sure master was not accidentally rewound beyond that
310310
already pushed out. `ko` shorthand points at the Git maintainer's
311-
repository at kernel.org, and looks like this:
312-
+
313-
------------
314-
(in .git/config)
315-
[remote "ko"]
316-
url = kernel.org:/pub/scm/git/git.git
317-
fetch = refs/heads/*:refs/remotes/ko/*
318-
push = refs/heads/master
319-
push = refs/heads/next
320-
push = +refs/heads/pu
321-
push = refs/heads/maint
322-
------------
311+
repository at kernel.org, and looks like this: +
312+
++(in .git/config) +
313+
{startsb}remote "ko"{endsb} +
314+
{nbsp}{nbsp}{nbsp}{nbsp}url = kernel.org:/pub/scm/git/git.git +
315+
{nbsp}{nbsp}{nbsp}{nbsp}fetch = refs/heads/\*:refs/remotes/ko/* +
316+
{nbsp}{nbsp}{nbsp}{nbsp}push = refs/heads/master +
317+
{nbsp}{nbsp}{nbsp}{nbsp}push = refs/heads/next +
318+
{nbsp}{nbsp}{nbsp}{nbsp}push = +refs/heads/pu +
319+
{nbsp}{nbsp}{nbsp}{nbsp}push = refs/heads/maint++
323320
+
324321
<12> In the output from `git show-branch`, `master` should have
325322
everything `ko/master` has, and `next` should have

Documentation/user-manual.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4395,6 +4395,10 @@ itself!
43954395
Git Glossary
43964396
============
43974397

4398+
[[git-explained]]
4399+
Git explained
4400+
-------------
4401+
43984402
include::glossary-content.txt[]
43994403

44004404
[[git-quick-start]]
@@ -4636,6 +4640,10 @@ $ git gc
46364640
Appendix B: Notes and todo list for this manual
46374641
===============================================
46384642

4643+
[[todo-list]]
4644+
Todo list
4645+
---------
4646+
46394647
This is a work in progress.
46404648

46414649
The basic requirements:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ $(SCRIPT_LIB) : % : %.sh GIT-SCRIPT-DEFINES
17601760
$(QUIET_GEN)$(cmd_munge_script) && \
17611761
mv $@+ $@
17621762

1763-
git.res: git.rc GIT-VERSION-FILE
1763+
git.res: git.rc GIT-VERSION-FILE GIT-PREFIX
17641764
$(QUIET_RC)$(RC) \
17651765
$(join -DMAJOR= -DMINOR=, $(wordlist 1,2,$(subst -, ,$(subst ., ,$(GIT_VERSION))))) \
17661766
-DGIT_VERSION="\\\"$(GIT_VERSION)\\\"" $< -o $@

attr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ static struct attr_stack *read_attr_from_file(const char *path, int macro_ok)
373373
int lineno = 0;
374374

375375
if (!fp) {
376-
if (errno != ENOENT && errno != ENOTDIR)
376+
if (errno != ENOENT && errno != ENOTDIR && errno != EINVAL)
377377
warn_on_inaccessible(path);
378378
return NULL;
379379
}

builtin/clean.c

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

573+
fflush(stdout);
573574
if (strbuf_getline(&choice, stdin, '\n') != EOF) {
574575
strbuf_trim(&choice);
575576
} else {
@@ -652,6 +653,7 @@ static int filter_by_patterns_cmd(void)
652653
clean_print_color(CLEAN_COLOR_PROMPT);
653654
printf(_("Input ignore patterns>> "));
654655
clean_print_color(CLEAN_COLOR_RESET);
656+
fflush(stdout);
655657
if (strbuf_getline(&confirm, stdin, '\n') != EOF)
656658
strbuf_trim(&confirm);
657659
else
@@ -750,6 +752,7 @@ static int ask_each_cmd(void)
750752
qname = quote_path_relative(item->string, NULL, &buf);
751753
/* TRANSLATORS: Make sure to keep [y/N] as is */
752754
printf(_("Remove %s [y/N]? "), qname);
755+
fflush(stdout);
753756
if (strbuf_getline(&confirm, stdin, '\n') != EOF) {
754757
strbuf_trim(&confirm);
755758
} else {

builtin/commit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,6 +1362,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
13621362
PATHSPEC_PREFER_FULL,
13631363
prefix, argv);
13641364

1365+
enable_fscache(1);
13651366
read_cache_preload(&s.pathspec);
13661367
refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, &s.pathspec, NULL, NULL);
13671368

cache.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,10 @@ enum hide_dotfiles_type {
704704
};
705705
extern enum hide_dotfiles_type hide_dotfiles;
706706

707+
extern int core_fscache;
708+
709+
extern int core_long_paths;
710+
707711
enum branch_track {
708712
BRANCH_TRACK_UNSPECIFIED = -1,
709713
BRANCH_TRACK_NEVER = 0,

0 commit comments

Comments
 (0)