Skip to content

Commit 4d9e42f

Browse files
committed
Merge commit 'v1.6.0' into jc/checkout-reflog-fix
* commit 'v1.6.0': (2063 commits) GIT 1.6.0 git-p4: chdir now properly sets PWD environment variable in msysGit Improve error output of git-rebase t9300: replace '!' with test_must_fail Git.pm: Make File::Spec and File::Temp requirement lazy Documentation: document the pager.* configuration setting git-stash: improve synopsis in help and manual page Makefile: building git in cygwin 1.7.0 git-am: ignore --binary option bash-completion: Add non-command git help files to bash-completion Fix t3700 on filesystems which do not support question marks in names Utilise our new p4_read_pipe and p4_write_pipe wrappers Add p4 read_pipe and write_pipe wrappers bash completion: Add '--merge' long option for 'git log' bash completion: Add completion for 'git mergetool' git format-patch documentation: clarify what --cover-letter does bash completion: 'git apply' should use 'fix' not 'strip' t5304-prune: adjust file mtime based on system time rather than file mtime test-parse-options: use appropriate cast in length_callback Fix escaping of glob special characters in pathspecs ... Conflicts: builtin-checkout.c
2 parents c5bcf1f + ea02eef commit 4d9e42f

File tree

926 files changed

+66643
-20445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

926 files changed

+66643
-20445
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* whitespace=!indent,trail,space
2+
*.[ch] whitespace

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
GIT-BUILD-OPTIONS
12
GIT-CFLAGS
23
GIT-GUI-VARS
34
GIT-VERSION-FILE
@@ -50,7 +51,6 @@ git-gc
5051
git-get-tar-commit-id
5152
git-grep
5253
git-hash-object
53-
git-help--browse
5454
git-http-fetch
5555
git-http-push
5656
git-imap-send
@@ -75,7 +75,6 @@ git-merge-one-file
7575
git-merge-ours
7676
git-merge-recursive
7777
git-merge-resolve
78-
git-merge-stupid
7978
git-merge-subtree
8079
git-mergetool
8180
git-mktag
@@ -136,19 +135,20 @@ git-upload-pack
136135
git-var
137136
git-verify-pack
138137
git-verify-tag
138+
git-web--browse
139139
git-whatchanged
140140
git-write-tree
141141
git-core-*/?*
142142
gitk-wish
143143
gitweb/gitweb.cgi
144-
test-absolute-path
145144
test-chmtime
146145
test-date
147146
test-delta
148147
test-dump-cache-tree
149148
test-genrandom
150149
test-match-trees
151150
test-parse-options
151+
test-path-utils
152152
test-sha1
153153
common-cmds.h
154154
*.tar.gz

.mailmap

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,28 @@
55
# same person appearing not to be so.
66
#
77

8+
Alexander Gavrilov <[email protected]>
89
Aneesh Kumar K.V <[email protected]>
910
Brian M. Carlson <[email protected]>
1011
Chris Shoemaker <[email protected]>
1112
Dana L. How <[email protected]>
1213
Dana L. How <[email protected]>
1314
Daniel Barkalow <[email protected]>
15+
David D. Kilzer <[email protected]>
1416
David Kågedal <[email protected]>
17+
David S. Miller <[email protected]>
18+
Dirk Süsserott <[email protected]>
1519
Fredrik Kuivinen <[email protected]>
1620
H. Peter Anvin <[email protected]>
1721
H. Peter Anvin <[email protected]>
1822
H. Peter Anvin <[email protected]>
1923
Horst H. von Brand <[email protected]>
24+
İsmail Dönmez <[email protected]>
25+
Jay Soffian <[email protected]>
2026
Joachim Berdal Haga <[email protected]>
2127
Jon Loeliger <[email protected]>
2228
Jon Seymour <[email protected]>
29+
Jonathan Nieder <[email protected]>
2330
Junio C Hamano <[email protected]>
2431
Karl Hasselström <[email protected]>
2532
Kent Engstrom <[email protected]>
@@ -29,9 +36,12 @@ Li Hong <[email protected]>
2936
Lukas Sandström <[email protected]>
3037
Martin Langhoff <[email protected]>
3138
Michael Coleman <[email protected]>
39+
Michael W. Olson <[email protected]>
3240
Michele Ballabio <[email protected]>
3341
Nanako Shiraishi <[email protected]>
42+
Nanako Shiraishi <[email protected]>
3443
Nguyễn Thái Ngọc Duy <[email protected]>
44+
Philippe Bruhat <[email protected]>
3545
Ramsay Allan Jones <[email protected]>
3646
René Scharfe <[email protected]>
3747
Robert Fitzsimons <[email protected]>
@@ -43,6 +53,7 @@ Steven Grimm <[email protected]>
4353
Theodore Ts'o <[email protected]>
4454
Tony Luck <[email protected]>
4555
Uwe Kleine-König <[email protected]>
56+
Uwe Kleine-König <[email protected]>
4657
Uwe Kleine-König <[email protected]>
4758
Uwe Kleine-König <[email protected]>
4859
Uwe Kleine-König <[email protected]>

Documentation/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.txt whitespace

Documentation/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
*.html
33
*.[1-8]
44
*.made
5+
*.texi
56
git.info
7+
gitman.info
68
howto-index.txt
79
doc.dep
810
cmds-*.txt

Documentation/CodingGuidelines

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ For shell scripts specifically (not exhaustive):
5353
- We do not write the noiseword "function" in front of shell
5454
functions.
5555

56+
- As to use of grep, stick to a subset of BRE (namely, no \{m,n\},
57+
[::], [==], nor [..]) for portability.
58+
59+
- We do not use \{m,n\};
60+
61+
- We do not use -E;
62+
63+
- We do not use ? nor + (which are \{0,1\} and \{1,\}
64+
respectively in BRE) but that goes without saying as these
65+
are ERE elements not BRE (note that \? and \+ are not even part
66+
of BRE -- making them accessible from BRE is a GNU extension).
67+
5668
For C programs:
5769

5870
- We use tabs to indent, and interpret tabs as taking up to
@@ -77,6 +89,8 @@ For C programs:
7789
of "else if" statements, it can make sense to add braces to
7890
single line blocks.
7991

92+
- We try to avoid assignments inside if().
93+
8094
- Try to make your code understandable. You may put comments
8195
in, but comments invariably tend to stale out when the code
8296
they were describing changes. Often splitting a function
@@ -91,7 +105,7 @@ For C programs:
91105

92106
- Use the API. No, really. We have a strbuf (variable length
93107
string), several arrays with the ALLOC_GROW() macro, a
94-
path_list for sorted string lists, a hash map (mapping struct
108+
string_list for sorted string lists, a hash map (mapping struct
95109
objects) named "struct decorate", amongst other things.
96110

97111
- When you come up with an API, document it.

Documentation/Makefile

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
MAN1_TXT= \
22
$(filter-out $(addsuffix .txt, $(ARTICLES) $(SP_ARTICLES)), \
33
$(wildcard git-*.txt)) \
4-
gitk.txt
5-
MAN5_TXT=gitattributes.txt gitignore.txt gitcli.txt gitmodules.txt
6-
MAN7_TXT=git.txt
4+
gitk.txt git.txt
5+
MAN5_TXT=gitattributes.txt gitignore.txt gitmodules.txt githooks.txt \
6+
gitrepository-layout.txt
7+
MAN7_TXT=gitcli.txt gittutorial.txt gittutorial-2.txt \
8+
gitcvs-migration.txt gitcore-tutorial.txt gitglossary.txt \
9+
gitdiffcore.txt
710

811
MAN_TXT = $(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT)
912
MAN_XML=$(patsubst %.txt,%.xml,$(MAN_TXT))
1013
MAN_HTML=$(patsubst %.txt,%.html,$(MAN_TXT))
1114

1215
DOC_HTML=$(MAN_HTML)
1316

14-
ARTICLES = tutorial
15-
ARTICLES += tutorial-2
16-
ARTICLES += core-tutorial
17-
ARTICLES += cvs-migration
18-
ARTICLES += diffcore
19-
ARTICLES += howto-index
20-
ARTICLES += repository-layout
21-
ARTICLES += hooks
17+
ARTICLES = howto-index
2218
ARTICLES += everyday
2319
ARTICLES += git-tools
24-
ARTICLES += glossary
2520
# with their own formatting rules.
2621
SP_ARTICLES = howto/revert-branch-rebase howto/using-merge-subtree user-manual
2722
API_DOCS = $(patsubst %.txt,%,$(filter-out technical/api-index-skel.txt technical/api-index.txt, $(wildcard technical/api-*.txt)))
@@ -45,6 +40,7 @@ man7dir=$(mandir)/man7
4540

4641
ASCIIDOC=asciidoc
4742
ASCIIDOC_EXTRA =
43+
MANPAGE_XSL = callouts.xsl
4844
INSTALL?=install
4945
RM ?= rm -f
5046
DOC_REF = origin/man
@@ -65,6 +61,7 @@ ASCIIDOC_EXTRA += -a asciidoc7compatible
6561
endif
6662
ifdef DOCBOOK_XSL_172
6763
ASCIIDOC_EXTRA += -a docbook-xsl-172
64+
MANPAGE_XSL = manpage-1.72.xsl
6865
endif
6966

7067
#
@@ -142,8 +139,6 @@ cmd-list.made: cmd-list.perl ../command-list.txt $(MAN1_TXT)
142139
$(PERL_PATH) ./cmd-list.perl ../command-list.txt
143140
date >$@
144141

145-
git.7 git.html: git.txt
146-
147142
clean:
148143
$(RM) *.xml *.xml+ *.html *.html+ *.1 *.5 *.7
149144
$(RM) *.texi *.texi+ git.info gitman.info
@@ -159,7 +154,7 @@ $(MAN_HTML): %.html : %.txt
159154

160155
%.1 %.5 %.7 : %.xml
161156
$(RM) $@
162-
xmlto -m callouts.xsl man $<
157+
xmlto -m $(MANPAGE_XSL) man $<
163158

164159
%.xml : %.txt
165160
$(RM) $@+ $@

Documentation/RelNotes-1.5.2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Updates since v1.5.1
3636
expansion). These conversions apply when checking files in
3737
or out, and exporting via git-archive.
3838

39-
* The packfile format now optionally suports 64-bit index.
39+
* The packfile format now optionally supports 64-bit index.
4040

4141
This release supports the "version 2" format of the .idx
4242
file. This is automatically enabled when a huge packfile

Documentation/RelNotes-1.5.3.3.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Fixes since v1.5.3.2
1212
* The default shell on some FreeBSD did not execute the
1313
argument parsing code correctly and made git unusable.
1414

15-
* git-svn incorrectly spawned pager even when the user user
15+
* git-svn incorrectly spawned pager even when the user
1616
explicitly asked not to.
1717

1818
* sample post-receive hook overquoted the envelope sender

Documentation/RelNotes-1.5.3.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Updates since v1.5.2
8686

8787
- "git rev-list" learned --regexp-ignore-case and
8888
--extended-regexp options to tweak its matching logic used
89-
for --grep fitering.
89+
for --grep filtering.
9090

9191
- "git describe --contains" is a handier way to call more
9292
obscure command "git name-rev --tags".
@@ -243,7 +243,7 @@ Updates since v1.5.2
243243

244244
- We used to have core.legacyheaders configuration, when
245245
set to false, allowed git to write loose objects in a format
246-
that mimicks the format used by objects stored in packs. It
246+
that mimics the format used by objects stored in packs. It
247247
turns out that this was not so useful. Although we will
248248
continue to read objects written in that format, we do not
249249
honor that configuration anymore and create loose objects in
@@ -302,7 +302,7 @@ Updates since v1.5.2
302302
small enough delta results it creates while looking for the
303303
best delta candidates.
304304

305-
- "git pack-objects" learned a new heuristcs to prefer delta
305+
- "git pack-objects" learned a new heuristic to prefer delta
306306
that is shallower in depth over the smallest delta
307307
possible. This improves both overall packfile access
308308
performance and packfile density.

0 commit comments

Comments
 (0)