Skip to content

Commit 25d3354

Browse files
committed
Merge commit 'v1.7.6' into jc/checkout-reflog-fix
* commit 'v1.7.6': (3211 commits) Git 1.7.6 completion: replace core.abbrevguard to core.abbrev Git 1.7.6-rc3 Documentation: git diff --check respects core.whitespace gitweb: 'pickaxe' and 'grep' features requires 'search' to be enabled t7810: avoid unportable use of "echo" plug a few coverity-spotted leaks builtin/gc.c: add missing newline in message tests: link shell libraries into valgrind directory t/Makefile: pass test opts to valgrind target properly sh-i18n--envsubst.c: do not #include getopt.h Fix typo: existant->existent Git 1.7.6-rc2 gitweb: do not misparse nonnumeric content tag files that contain a digit Git 1.7.6-rc1 fetch: do not leak a refspec t3703: skip more tests using colons in file names on Windows gitweb: Fix usability of $prevent_xss gitweb: Move "Requirements" up in gitweb/INSTALL gitweb: Describe CSSMIN and JSMIN in gitweb/INSTALL ...
2 parents 71ee7fd + f696543 commit 25d3354

File tree

1,277 files changed

+94563
-27202
lines changed

Some content is hidden

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

1,277 files changed

+94563
-27202
lines changed

.gitignore

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
/git-fast-export
4444
/git-fast-import
4545
/git-fetch
46-
/git-fetch--tool
4746
/git-fetch-pack
4847
/git-filter-branch
4948
/git-fmt-merge-msg
@@ -102,16 +101,20 @@
102101
/git-quiltimport
103102
/git-read-tree
104103
/git-rebase
104+
/git-rebase--am
105105
/git-rebase--interactive
106+
/git-rebase--merge
106107
/git-receive-pack
107108
/git-reflog
108109
/git-relink
109110
/git-remote
110-
/git-remote-curl
111111
/git-remote-http
112112
/git-remote-https
113113
/git-remote-ftp
114114
/git-remote-ftps
115+
/git-remote-fd
116+
/git-remote-ext
117+
/git-remote-testgit
115118
/git-repack
116119
/git-replace
117120
/git-repo-config
@@ -124,7 +127,10 @@
124127
/git-rm
125128
/git-send-email
126129
/git-send-pack
130+
/git-sh-i18n
131+
/git-sh-i18n--envsubst
127132
/git-sh-setup
133+
/git-sh-i18n
128134
/git-shell
129135
/git-shortlog
130136
/git-show
@@ -155,20 +161,30 @@
155161
/git-write-tree
156162
/git-core-*/?*
157163
/gitk-git/gitk-wish
164+
/gitweb/GITWEB-BUILD-OPTIONS
158165
/gitweb/gitweb.cgi
166+
/gitweb/static/gitweb.js
167+
/gitweb/static/gitweb.min.*
159168
/test-chmtime
160169
/test-ctype
161170
/test-date
162171
/test-delta
163172
/test-dump-cache-tree
164173
/test-genrandom
165174
/test-index-version
175+
/test-line-buffer
166176
/test-match-trees
177+
/test-mktemp
178+
/test-obj-pool
167179
/test-parse-options
168180
/test-path-utils
169181
/test-run-command
170182
/test-sha1
171183
/test-sigchain
184+
/test-string-pool
185+
/test-subprocess
186+
/test-svn-fe
187+
/test-treap
172188
/common-cmds.h
173189
*.tar.gz
174190
*.dsc
@@ -177,6 +193,13 @@
177193
*.exe
178194
*.[aos]
179195
*.py[co]
196+
.depend/
197+
*.gcda
198+
*.gcno
199+
*.gcov
200+
/coverage-untested-functions
201+
/cover_db/
202+
/cover_db_html/
180203
*+
181204
/config.mak
182205
/autom4te.cache

.mailmap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# same person appearing not to be so.
66
#
77

8+
Alex Bennée <[email protected]>
89
Alexander Gavrilov <[email protected]>
910
Aneesh Kumar K.V <[email protected]>
1011
Brian M. Carlson <[email protected]>
@@ -15,6 +16,7 @@ Daniel Barkalow <[email protected]>
1516
David D. Kilzer <[email protected]>
1617
David Kågedal <[email protected]>
1718
David S. Miller <[email protected]>
19+
Deskin Miller <[email protected]>
1820
Dirk Süsserott <[email protected]>
1921
Fredrik Kuivinen <[email protected]>
2022
H. Peter Anvin <[email protected]>
@@ -34,8 +36,9 @@ Lars Doelle <lars.doelle@on-line ! de>
3436
Lars Doelle <[email protected]>
3537
3638
Lukas Sandström <[email protected]>
37-
Martin Langhoff <martin@catalyst.net.nz>
39+
Martin Langhoff <martin@laptop.org>
3840
Michael Coleman <[email protected]>
41+
3942
Michael W. Olson <[email protected]>
4043
Michele Ballabio <[email protected]>
4144
Nanako Shiraishi <[email protected]>
@@ -59,6 +62,7 @@ Uwe Kleine-König <[email protected]>
5962
Uwe Kleine-König <[email protected]>
6063
Uwe Kleine-König <[email protected]>
6164
Ville Skyttä <[email protected]>
65+
Vitaly "_Vi" Shukela <[email protected]>
6266
William Pursell <[email protected]>
6367
YOSHIFUJI Hideaki <[email protected]>
6468
anonymous <[email protected]>

Documentation/CodingGuidelines

Lines changed: 72 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,36 @@ But if you must have a list of rules, here they are.
3131

3232
For shell scripts specifically (not exhaustive):
3333

34+
- We use tabs for indentation.
35+
36+
- Case arms are indented at the same depth as case and esac lines.
37+
3438
- We prefer $( ... ) for command substitution; unlike ``, it
3539
properly nests. It should have been the way Bourne spelled
3640
it from day one, but unfortunately isn't.
3741

38-
- We use ${parameter-word} and its [-=?+] siblings, and their
39-
colon'ed "unset or null" form.
42+
- We use POSIX compliant parameter substitutions and avoid bashisms;
43+
namely:
4044

41-
- We use ${parameter#word} and its [#%] siblings, and their
42-
doubled "longest matching" form.
45+
- We use ${parameter-word} and its [-=?+] siblings, and their
46+
colon'ed "unset or null" form.
4347

44-
- We use Arithmetic Expansion $(( ... )).
48+
- We use ${parameter#word} and its [#%] siblings, and their
49+
doubled "longest matching" form.
4550

46-
- No "Substring Expansion" ${parameter:offset:length}.
51+
- No "Substring Expansion" ${parameter:offset:length}.
4752

48-
- No shell arrays.
53+
- No shell arrays.
4954

50-
- No strlen ${#parameter}.
55+
- No strlen ${#parameter}.
5156

52-
- No regexp ${parameter/pattern/string}.
57+
- No pattern replacement ${parameter/pattern/string}.
58+
59+
- We use Arithmetic Expansion $(( ... )).
60+
61+
- Inside Arithmetic Expansion, spell shell variables with $ in front
62+
of them, as some shells do not grok $((x)) while accepting $(($x))
63+
just fine (e.g. dash older than 0.5.4).
5364

5465
- We do not use Process Substitution <(list) or >(list).
5566

@@ -132,3 +143,55 @@ For C programs:
132143

133144
- When we pass <string, length> pair to functions, we should try to
134145
pass them in that order.
146+
147+
Writing Documentation:
148+
149+
Every user-visible change should be reflected in the documentation.
150+
The same general rule as for code applies -- imitate the existing
151+
conventions. A few commented examples follow to provide reference
152+
when writing or modifying command usage strings and synopsis sections
153+
in the manual pages:
154+
155+
Placeholders are spelled in lowercase and enclosed in angle brackets:
156+
<file>
157+
--sort=<key>
158+
--abbrev[=<n>]
159+
160+
Possibility of multiple occurrences is indicated by three dots:
161+
<file>...
162+
(One or more of <file>.)
163+
164+
Optional parts are enclosed in square brackets:
165+
[<extra>]
166+
(Zero or one <extra>.)
167+
168+
--exec-path[=<path>]
169+
(Option with an optional argument. Note that the "=" is inside the
170+
brackets.)
171+
172+
[<patch>...]
173+
(Zero or more of <patch>. Note that the dots are inside, not
174+
outside the brackets.)
175+
176+
Multiple alternatives are indicated with vertical bar:
177+
[-q | --quiet]
178+
[--utf8 | --no-utf8]
179+
180+
Parentheses are used for grouping:
181+
[(<rev>|<range>)...]
182+
(Any number of either <rev> or <range>. Parens are needed to make
183+
it clear that "..." pertains to both <rev> and <range>.)
184+
185+
[(-p <parent>)...]
186+
(Any number of option -p, each with one <parent> argument.)
187+
188+
git remote set-head <name> (-a | -d | <branch>)
189+
(One and only one of "-a", "-d" or "<branch>" _must_ (no square
190+
brackets) be provided.)
191+
192+
And a somewhat more contrived example:
193+
--diff-filter=[(A|C|D|M|R|T|U|X|B)...[*]]
194+
Here "=" is outside the brackets, because "--diff-filter=" is a
195+
valid usage. "*" has its own pair of brackets, because it can
196+
(optionally) be specified only when one or more of the letters is
197+
also provided.

Documentation/Makefile

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MAN5_TXT=gitattributes.txt gitignore.txt gitmodules.txt githooks.txt \
66
gitrepository-layout.txt
77
MAN7_TXT=gitcli.txt gittutorial.txt gittutorial-2.txt \
88
gitcvs-migration.txt gitcore-tutorial.txt gitglossary.txt \
9-
gitdiffcore.txt gitworkflows.txt
9+
gitdiffcore.txt gitrevisions.txt gitworkflows.txt
1010

1111
MAN_TXT = $(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT)
1212
MAN_XML=$(patsubst %.txt,%.xml,$(MAN_TXT))
@@ -63,35 +63,28 @@ endif
6363

6464
#
6565
# For asciidoc ...
66-
# -7.1.2, no extra settings are needed.
67-
# 8.0-, set ASCIIDOC8.
66+
# -7.1.2, set ASCIIDOC7
67+
# 8.0-, no extra settings are needed
6868
#
6969

7070
#
7171
# For docbook-xsl ...
72-
# -1.68.1, set ASCIIDOC_NO_ROFF? (based on changelog from 1.73.0)
73-
# 1.69.0, no extra settings are needed?
72+
# -1.68.1, no extra settings are needed?
73+
# 1.69.0, set ASCIIDOC_ROFF?
7474
# 1.69.1-1.71.0, set DOCBOOK_SUPPRESS_SP?
75-
# 1.71.1, no extra settings are needed?
75+
# 1.71.1, set ASCIIDOC_ROFF?
7676
# 1.72.0, set DOCBOOK_XSL_172.
77-
# 1.73.0-, set ASCIIDOC_NO_ROFF
77+
# 1.73.0-, no extra settings are needed
7878
#
7979

80-
#
81-
# If you had been using DOCBOOK_XSL_172 in an attempt to get rid
82-
# of 'the ".ft C" problem' in your generated manpages, and you
83-
# instead ended up with weird characters around callouts, try
84-
# using ASCIIDOC_NO_ROFF instead (it works fine with ASCIIDOC8).
85-
#
86-
87-
ifdef ASCIIDOC8
80+
ifndef ASCIIDOC7
8881
ASCIIDOC_EXTRA += -a asciidoc7compatible -a no-inline-literal
8982
endif
9083
ifdef DOCBOOK_XSL_172
9184
ASCIIDOC_EXTRA += -a git-asciidoc-no-roff
9285
MANPAGE_XSL = manpage-1.72.xsl
9386
else
94-
ifdef ASCIIDOC_NO_ROFF
87+
ifndef ASCIIDOC_ROFF
9588
# docbook-xsl after 1.72 needs the regular XSL, but will not
9689
# pass-thru raw roff codes from asciidoc.conf, so turn them off.
9790
ASCIIDOC_EXTRA += -a git-asciidoc-no-roff
@@ -264,7 +257,9 @@ manpage-base-url.xsl: manpage-base-url.xsl.in
264257
mv $@+ $@
265258

266259
user-manual.xml: user-manual.txt user-manual.conf
267-
$(QUIET_ASCIIDOC)$(ASCIIDOC) $(ASCIIDOC_EXTRA) -b docbook -d book $<
260+
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
261+
$(ASCIIDOC) $(ASCIIDOC_EXTRA) -b docbook -d book -o $@+ $< && \
262+
mv $@+ $@
268263

269264
technical/api-index.txt: technical/api-index-skel.txt \
270265
technical/api-index.sh $(patsubst %,%.txt,$(API_DOCS))
@@ -277,8 +272,10 @@ $(patsubst %,%.html,$(API_DOCS) technical/api-index): %.html : %.txt
277272
XSLT = docbook.xsl
278273
XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css
279274

280-
user-manual.html: user-manual.xml
281-
$(QUIET_XSLTPROC)xsltproc $(XSLTOPTS) -o $@ $(XSLT) $<
275+
user-manual.html: user-manual.xml $(XSLT)
276+
$(QUIET_XSLTPROC)$(RM) $@+ $@ && \
277+
xsltproc $(XSLTOPTS) -o $@+ $(XSLT) $< && \
278+
mv $@+ $@
282279

283280
git.info: user-manual.texi
284281
$(QUIET_MAKEINFO)$(MAKEINFO) --no-split -o $@ user-manual.texi

0 commit comments

Comments
 (0)