Skip to content

Commit 6170115

Browse files
committed
Merge 'msys2' into HEAD
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 56c97f7 + 044c84a commit 6170115

31 files changed

+1362
-175
lines changed

Documentation/Makefile

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

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

273273
-include doc.dep
274274

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

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

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

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

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

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

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

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

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

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

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

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

373373
gitman.texi: $(MAN_XML) cat-texi.perl
374-
$(QUIET_DB2TEXI)$(RM) $@+ $@ && \
374+
$(QUIET_DB2TEXI)$(RM) $@.new $@ && \
375375
($(foreach xml,$(MAN_XML),$(DOCBOOK2X_TEXI) --encoding=UTF-8 \
376-
--to-stdout $(xml) &&) true) > $@++ && \
377-
$(PERL_PATH) cat-texi.perl $@ <$@++ >$@+ && \
378-
rm $@++ && \
379-
mv $@+ $@
376+
--to-stdout $(xml) &&) true) > $@.new.new && \
377+
$(PERL_PATH) cat-texi.perl $@ <$@.new.new >$@.new && \
378+
rm $@.new.new && \
379+
mv $@.new $@
380380

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

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

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

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

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

406406
install-webdoc : html
407407
'$(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
@@ -748,6 +748,19 @@ relatively high IO latencies. When enabled, Git will do the
748748
index comparison to the filesystem data in parallel, allowing
749749
overlapping IO's. Defaults to true.
750750

751+
core.fscache::
752+
Enable additional caching of file system data for some operations.
753+
+
754+
Git for Windows uses this to bulk-read and cache lstat data of entire
755+
directories (instead of doing lstat file by file).
756+
757+
core.longpaths::
758+
Enable long path (> 260) support for builtin commands in Git for
759+
Windows. This is disabled by default, as long paths are not supported
760+
by Windows Explorer, cmd.exe and the Git for Windows tool chain
761+
(msys, bash, tcl, perl...). Only enable this if you know what you're
762+
doing and are prepared to live with a few quirks.
763+
751764
core.createObject::
752765
You can set this to 'link', in which case a hardlink followed by
753766
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
@@ -1770,7 +1770,7 @@ $(SCRIPT_LIB) : % : %.sh GIT-SCRIPT-DEFINES
17701770
$(QUIET_GEN)$(cmd_munge_script) && \
17711771
mv $@+ $@
17721772

1773-
git.res: git.rc GIT-VERSION-FILE
1773+
git.res: git.rc GIT-VERSION-FILE GIT-PREFIX
17741774
$(QUIET_RC)$(RC) \
17751775
$(join -DMAJOR= -DMINOR=, $(wordlist 1,2,$(subst -, ,$(subst ., ,$(GIT_VERSION))))) \
17761776
-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_lf(&choice, stdin) != 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_lf(&confirm, stdin) != 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_lf(&confirm, stdin) != EOF) {
754757
strbuf_trim(&confirm);
755758
} else {

builtin/commit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
13731373
PATHSPEC_PREFER_FULL,
13741374
prefix, argv);
13751375

1376+
enable_fscache(1);
13761377
read_cache_preload(&s.pathspec);
13771378
refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, &s.pathspec, NULL, NULL);
13781379

cache.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,10 @@ enum hide_dotfiles_type {
709709
};
710710
extern enum hide_dotfiles_type hide_dotfiles;
711711

712+
extern int core_fscache;
713+
714+
extern int core_long_paths;
715+
712716
enum branch_track {
713717
BRANCH_TRACK_UNSPECIFIED = -1,
714718
BRANCH_TRACK_NEVER = 0,

0 commit comments

Comments
 (0)