gitweb.git
test-lib: introduce the '-V' short option for '--verbos... SZEDER Gábor Mon, 29 Oct 2018 12:13:59 +0000 (13:13 +0100)

test-lib: introduce the '-V' short option for '--verbose-log'

'--verbose-log' is one of the most useful and thus most frequently
used test options, but due to its length it's a pain to type on the
command line.

Let's introduce the corresponding short option '-V' to save some
keystrokes.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

wildmatch: change behavior of "foo**bar" in WM_PATHNAME... Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 08:48:23 +0000 (10:48 +0200)

wildmatch: change behavior of "foo**bar" in WM_PATHNAME mode

In WM_PATHNAME mode (or FNM_PATHNAME), '*' does not match '/' and '**'
can but only in three patterns:

- '**/' matches zero or more leading directories
- '/**/' matches zero or more directories in between
- '/**' matches zero or more trailing directories/files

When '**' is present but not in one of these patterns, the current
behavior is consider the pattern invalid and stop matching. In other
words, 'foo**bar' never matches anything, whatever you throw at it.

This behavior is arguably a bit confusing partly because we can't
really tell the user their pattern is invalid so that they can fix
it. So instead, tolerate it and make '**' act like two regular '*'s
(which is essentially the same as a single asterisk). This behavior
seems more predictable.

Noticed-by: dana <dana@dana.is>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

thread-utils: macros to unconditionally compile pthread... Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 17:29:59 +0000 (19:29 +0200)

thread-utils: macros to unconditionally compile pthreads API

When built with NO_PTHREADS, the macros are used make the code build
even though pthreads header and library may be missing. The code can
still have different code paths for no threads support with
HAVE_THREADS variable.

There are of course impacts on no-pthreads builds:

- data structure may get slightly bigger because all the mutexes and
pthread_t are present (as an int)

- code execution is not impacted much. Locking (in hot path) is
no-op. Other wrapper function calls really should not matter much.

- the binary size grows bigger because of threaded code. But at least
on Linux this does not matter, if some code is not executed, it's
not mapped in memory.

This is a preparation step to remove "#ifdef NO_PTHREADS" in the code
mostly because of maintainability. As Jeff put it

> it's probably OK to stop thinking of it as "non-threaded platforms
> are the default and must pay zero cost" and more as "threaded
> platforms are the default, and non-threaded ones are OK to pay a
> small cost as long as they still work".

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move worktree.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:50 +0000 (08:23 +0200)

config.txt: move worktree.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: remove config/dummy.txtNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:51 +0000 (08:23 +0200)

config.txt: remove config/dummy.txt

This file was only needed when config directory was empty. Now that
the directory is fully populated, it can be deleted.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move web.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:49 +0000 (08:23 +0200)

config.txt: move web.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move versionsort.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:48 +0000 (08:23 +0200)

config.txt: move versionsort.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move user.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:47 +0000 (08:23 +0200)

config.txt: move user.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move url.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:46 +0000 (08:23 +0200)

config.txt: move url.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move uploadpack.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:45 +0000 (08:23 +0200)

config.txt: move uploadpack.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move uploadarchive.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:44 +0000 (08:23 +0200)

config.txt: move uploadarchive.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move transfer.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:43 +0000 (08:23 +0200)

config.txt: move transfer.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move tag.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:42 +0000 (08:23 +0200)

config.txt: move tag.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move submodule.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:41 +0000 (08:23 +0200)

config.txt: move submodule.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move stash.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:40 +0000 (08:23 +0200)

config.txt: move stash.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move status.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:39 +0000 (08:23 +0200)

config.txt: move status.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move splitIndex.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:38 +0000 (08:23 +0200)

config.txt: move splitIndex.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move showBranch.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:37 +0000 (08:23 +0200)

config.txt: move showBranch.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move sequencer.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:36 +0000 (08:23 +0200)

config.txt: move sequencer.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move sendemail-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:35 +0000 (08:23 +0200)

config.txt: move sendemail-config.txt to config/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move reset.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:34 +0000 (08:23 +0200)

config.txt: move reset.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move rerere.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:33 +0000 (08:23 +0200)

config.txt: move rerere.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move repack.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:32 +0000 (08:23 +0200)

config.txt: move repack.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move remotes.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:31 +0000 (08:23 +0200)

config.txt: move remotes.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move remote.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:30 +0000 (08:23 +0200)

config.txt: move remote.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move receive-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:29 +0000 (08:23 +0200)

config.txt: move receive-config.txt to config/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move rebase-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:28 +0000 (08:23 +0200)

config.txt: move rebase-config.txt to config/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move push-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:27 +0000 (08:23 +0200)

config.txt: move push-config.txt to config/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move pull-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:26 +0000 (08:23 +0200)

config.txt: move pull-config.txt to config/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move protocol.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:25 +0000 (08:23 +0200)

config.txt: move protocol.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move pretty.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:24 +0000 (08:23 +0200)

config.txt: move pretty.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move pager.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:23 +0000 (08:23 +0200)

config.txt: move pager.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move pack.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:22 +0000 (08:23 +0200)

config.txt: move pack.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move notes.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:21 +0000 (08:23 +0200)

config.txt: move notes.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move mergetool.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:20 +0000 (08:23 +0200)

config.txt: move mergetool.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move merge-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:19 +0000 (08:23 +0200)

config.txt: move merge-config.txt to config/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move man.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:18 +0000 (08:23 +0200)

config.txt: move man.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move mailmap.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:17 +0000 (08:23 +0200)

config.txt: move mailmap.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move mailinfo.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:16 +0000 (08:23 +0200)

config.txt: move mailinfo.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move log.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:15 +0000 (08:23 +0200)

config.txt: move log.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move interactive.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:14 +0000 (08:23 +0200)

config.txt: move interactive.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move instaweb.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:13 +0000 (08:23 +0200)

config.txt: move instaweb.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move init.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:12 +0000 (08:23 +0200)

config.txt: move init.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move index.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:11 +0000 (08:23 +0200)

config.txt: move index.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

git-imap-send.txt: move imap.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:10 +0000 (08:23 +0200)

git-imap-send.txt: move imap.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move i18n.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:09 +0000 (08:23 +0200)

config.txt: move i18n.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move http.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:08 +0000 (08:23 +0200)

config.txt: move http.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move ssh.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:07 +0000 (08:23 +0200)

config.txt: move ssh.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move help.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:06 +0000 (08:23 +0200)

config.txt: move help.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move guitool.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:05 +0000 (08:23 +0200)

config.txt: move guitool.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move gui-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:04 +0000 (08:23 +0200)

config.txt: move gui-config.txt to config/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move gpg.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:03 +0000 (08:23 +0200)

config.txt: move gpg.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move grep.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:02 +0000 (08:23 +0200)

config.txt: move grep.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move gitweb.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:01 +0000 (08:23 +0200)

config.txt: move gitweb.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move gitcvs-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:23:00 +0000 (08:23 +0200)

config.txt: move gitcvs-config.txt to config/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move gc.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:59 +0000 (08:22 +0200)

config.txt: move gc.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move fsck.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:58 +0000 (08:22 +0200)

config.txt: move fsck.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move fmt-merge-msg-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:57 +0000 (08:22 +0200)

config.txt: move fmt-merge-msg-config.txt to config/

Note that this file is not directly included in config.txt but through
merge-config.txt and it's in "merge" section instead of a separate
"fmtMergeMsg" section like others.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move format-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:56 +0000 (08:22 +0200)

config.txt: move format-config.txt to config/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move filter.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:55 +0000 (08:22 +0200)

config.txt: move filter.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move fetch-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:54 +0000 (08:22 +0200)

config.txt: move fetch-config.txt to config/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move fastimport.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:53 +0000 (08:22 +0200)

config.txt: move fastimport.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move difftool.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:52 +0000 (08:22 +0200)

config.txt: move difftool.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move diff-config.txt to config/Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:51 +0000 (08:22 +0200)

config.txt: move diff-config.txt to config/

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move completion.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:50 +0000 (08:22 +0200)

config.txt: move completion.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move credential.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:49 +0000 (08:22 +0200)

config.txt: move credential.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move commit.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:48 +0000 (08:22 +0200)

config.txt: move commit.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move column.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:47 +0000 (08:22 +0200)

config.txt: move column.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move color.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:46 +0000 (08:22 +0200)

config.txt: move color.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move clean.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:45 +0000 (08:22 +0200)

config.txt: move clean.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move checkout.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:44 +0000 (08:22 +0200)

config.txt: move checkout.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move browser.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:43 +0000 (08:22 +0200)

config.txt: move browser.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move branch.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:42 +0000 (08:22 +0200)

config.txt: move branch.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move blame.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:41 +0000 (08:22 +0200)

config.txt: move blame.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move apply.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:40 +0000 (08:22 +0200)

config.txt: move apply.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move am.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:39 +0000 (08:22 +0200)

config.txt: move am.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move alias.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:38 +0000 (08:22 +0200)

config.txt: move alias.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move add.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:37 +0000 (08:22 +0200)

config.txt: move add.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move core.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:36 +0000 (08:22 +0200)

config.txt: move core.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

config.txt: move advice.* to a separate fileNguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:35 +0000 (08:22 +0200)

config.txt: move advice.* to a separate file

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Update makefile in preparation for Documentation/config... Nguyễn Thái Ngọc Duy Sat, 27 Oct 2018 06:22:34 +0000 (08:22 +0200)

Update makefile in preparation for Documentation/config/*.txt

config.txt is going to be broken down in smaller pieces and put under
Documentation/config directory. Update build rules to take these files
into account.

A dummy file is added to make sure wildcard expansion is predictable
(depending on shell setting it could expand to nothing or becomes a
path if config directory is empty). The file will be deleted once the
move is over.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branches 'bp/reset-quiet' and 'js/mingw-http... Junio C Hamano Mon, 29 Oct 2018 01:15:31 +0000 (10:15 +0900)

Merge branches 'bp/reset-quiet' and 'js/mingw-http-ssl' into nd/config-split

* bp/reset-quiet:
reset: warn when refresh_index() takes more than 2 seconds
reset: add new reset.quiet config setting
reset: don't compute unstaged changes after reset when --quiet

* js/mingw-http-ssl:
http: when using Secure Channel, ignore sslCAInfo by default
http: add support for disabling SSL revocation checks in cURL
http: add support for selecting SSL backends at runtime

commit-reach.h: add missing declarations (hdr-check)Ramsay Jones Sat, 27 Oct 2018 01:53:57 +0000 (02:53 +0100)

commit-reach.h: add missing declarations (hdr-check)

Add the necessary #includes and forward declarations to allow the header
file to pass the 'hdr-check' target.

Note that, since this header includes the commit-slab implementation
header file (indirectly via commit-slab.h), some of the commit-slab
inline functions (e.g contains_cache_at_peek()) will not compile without
the complete type of 'struct commit'. Hence, we replace the forward
declaration of 'struct commit' with the an #include of the 'commit.h'
header file.

It is possible, using the 'commit-slab-{decl,impl}.h' files, to avoid
this inclusion of the 'commit.h' header. Commit a9f1f1f9f8 ("commit-slab.h:
code split", 2018-05-19) separated the commit-slab interface from its
implementation, to allow for the definition of a public commit-slab data
structure. This enabled us to avoid including the commit-slab implementation
in a header file, which could result in the replication of the commit-slab
functions in each compilation unit in which it was included.

Indeed, if you compile with optimizations disabled, then run this script:

$ cat -n dup-static.sh
1 #!/bin/sh
2
3 nm $1 | grep ' t ' | cut -d' ' -f3 | sort | uniq -c |
4 sort -rn | grep -v ' 1'
$

$ ./dup-static.sh git | grep contains
24 init_contains_cache_with_stride
24 init_contains_cache
24 contains_cache_peek
24 contains_cache_at_peek
24 contains_cache_at
24 clear_contains_cache
$

you will find 24 copies of the commit-slab routines for the contains_cache.
Of course, when you enable optimizations again, these duplicate static
functions (mostly) disappear. Compiling with gcc at -O2, leaves two static
functions, thus:

$ nm commit-reach.o | grep contains_cache
0000000000000870 t contains_cache_at_peek.isra.1.constprop.6
$ nm ref-filter.o | grep contains_cache
00000000000002b0 t clear_contains_cache.isra.14
$

However, using a shared 'contains_cache' would result in all six of the
above functions as external public functions in the git binary. At present,
only three of these functions are actually called, so the trade-off
seems to favour letting the compiler inline the commit-slab functions.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

ewok_rlw.h: add missing 'inline' to function definitionRamsay Jones Sat, 27 Oct 2018 01:52:05 +0000 (02:52 +0100)

ewok_rlw.h: add missing 'inline' to function definition

The 'ewok_rlw.h' header file contains the rlw_get_run_bit() function
definition, which is marked as 'static' but not 'inline'. At least when
compiled by gcc, with the default -O2 optimization level, the function
is actually inlined and leaves no static version in the ewah_bitmap.o
and ewah_rlw.o object files. Despite this, add the missing 'inline'
keyword to better describe the intended behaviour.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

fetch-object.h: add missing declaration (hdr-check)Ramsay Jones Sat, 27 Oct 2018 01:50:02 +0000 (02:50 +0100)

fetch-object.h: add missing declaration (hdr-check)

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

t3404-rebase-interactive: test abbreviated commandsJohannes Sixt Sat, 27 Oct 2018 08:08:01 +0000 (10:08 +0200)

t3404-rebase-interactive: test abbreviated commands

Make sure that each short command is tested at least once. To
not exacerbate the runtime of the test script, do not add new
tests, but modify existing ones according to these criteria:

- The test does not have a prerequisite.
- The 'git rebase' command is not guarded by test_must_fail.

The pick commands are optional in the FAKE_LINES variable, but
when used, they do end up in the insn sheet. Test them, too.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

sequencer: cleanup for gcc warning in non developer... Carlo Marcelo Arenas Belón Thu, 25 Oct 2018 09:38:54 +0000 (02:38 -0700)

sequencer: cleanup for gcc warning in non developer mode

as shown by:

sequencer.c: In function ‘write_basic_state’:
sequencer.c:2392:37: warning: zero-length gnu_printf format string [-Wformat-zero-length]
write_file(rebase_path_verbose(), "");

where write_file will create an empty file if told to write an empty string
as can be inferred by the previous call

the somehow more convoluted syntax works around the issue by providing a non
empty format string and is already being used for the abort safety file since
1e41229d96 ("sequencer: make sequencer abort safer", 2016-12-07)

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sixth batch for 2.20Junio C Hamano Fri, 26 Oct 2018 05:53:16 +0000 (14:53 +0900)

Sixth batch for 2.20

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Merge branch 'js/mingw-default-ident'Junio C Hamano Fri, 26 Oct 2018 05:22:15 +0000 (14:22 +0900)

Merge branch 'js/mingw-default-ident'

The logic to select the default user name and e-mail on Windows has
been improved.

* js/mingw-default-ident:
mingw: use domain information for default email
getpwuid(mingw): provide a better default for the user name
getpwuid(mingw): initialize the structure only once

Merge branch 'ld/p4-unshelve'Junio C Hamano Fri, 26 Oct 2018 05:22:15 +0000 (14:22 +0900)

Merge branch 'ld/p4-unshelve'

"git p4 unshelve" improvements.

* ld/p4-unshelve:
git-p4: fully support unshelving changelists
git-p4: unshelve into refs/remotes/p4-unshelved, not refs/remotes/p4/unshelved
git-p4: do not fail in verbose mode for missing 'fileSize' key

Merge branch 'du/cherry-is-plumbing'Junio C Hamano Fri, 26 Oct 2018 05:22:14 +0000 (14:22 +0900)

Merge branch 'du/cherry-is-plumbing'

Doc update to mark "git cherry" as a plumbing command.

* du/cherry-is-plumbing:
doc: move git-cherry to plumbing

Merge branch 'ab/gc-doc-update'Junio C Hamano Fri, 26 Oct 2018 05:22:14 +0000 (14:22 +0900)

Merge branch 'ab/gc-doc-update'

The documentation of "git gc" has been updated to mention that it
is no longer limited to "pruning away crufts" but also updates
ancillary files like commit-graph as a part of repository
optimization.

* ab/gc-doc-update:
gc doc: mention the commit-graph in the intro

Merge branch 'js/fuzzer'Junio C Hamano Fri, 26 Oct 2018 05:22:13 +0000 (14:22 +0900)

Merge branch 'js/fuzzer'

An experiment to fuzz test a few areas, hopefully we can gain more
coverage to various areas.

* js/fuzzer:
fuzz: add fuzz testing for packfile indices.
fuzz: add basic fuzz testing target.

Merge branch 'rv/alias-help'Junio C Hamano Fri, 26 Oct 2018 05:22:13 +0000 (14:22 +0900)

Merge branch 'rv/alias-help'

"git cmd --help" when "cmd" is aliased used to only say "cmd is
aliased to ...". Now it shows that to the standard error stream
and runs "git $cmd --help" where $cmd is the first word of the
alias expansion.

This could be misleading for those who alias a command with options
(e.g. with "[alias] cpn = cherry-pick -n", "git cpn --help" would
show the manual of "cherry-pick", and the reader would not be told
to pay close attention to the part that describes the "--no-commit"
option until closing the pager that showed the contents of the
manual, if the pager is configured to restore the original screen,
or would not be told at all, if the pager simply makes the message
on the standard error scroll away.

* rv/alias-help:
git-help.txt: document "git help cmd" vs "git cmd --help" for aliases
git.c: handle_alias: prepend alias info when first argument is -h
help: redirect to aliased commands for "git cmd --help"

Merge branch 'sb/diff-emit-line-ws-markup-cleanup'Junio C Hamano Fri, 26 Oct 2018 05:22:13 +0000 (14:22 +0900)

Merge branch 'sb/diff-emit-line-ws-markup-cleanup'

Code clean-up.

* sb/diff-emit-line-ws-markup-cleanup:
diff.c: pass sign_index to emit_line_ws_markup

Merge branch 'du/get-tar-commit-id-is-plumbing'Junio C Hamano Fri, 26 Oct 2018 05:22:12 +0000 (14:22 +0900)

Merge branch 'du/get-tar-commit-id-is-plumbing'

Doc update to mark "git get-tar-commit-id" as a plumbing command.

* du/get-tar-commit-id-is-plumbing:
doc: move git-get-tar-commit-id to plumbing

Merge branch 'mm/doc-no-dashed-git'Junio C Hamano Fri, 26 Oct 2018 05:22:12 +0000 (14:22 +0900)

Merge branch 'mm/doc-no-dashed-git'

Doc update.

* mm/doc-no-dashed-git:
doc: fix a typo and clarify a sentence

Merge branch 'du/rev-parse-is-plumbing'Junio C Hamano Fri, 26 Oct 2018 05:22:11 +0000 (14:22 +0900)

Merge branch 'du/rev-parse-is-plumbing'

Doc update.

* du/rev-parse-is-plumbing:
doc: move git-rev-parse from porcelain to plumbing

Merge branch 'np/log-graph-octopus-fix'Junio C Hamano Fri, 26 Oct 2018 05:22:11 +0000 (14:22 +0900)

Merge branch 'np/log-graph-octopus-fix'

"git log --graph" showing an octopus merge sometimes miscounted the
number of display columns it is consuming to show the merge and its
parent commits, which has been corrected.

* np/log-graph-octopus-fix:
log: fix coloring of certain octopus merge shapes

Merge branch 'sg/split-index-racefix'Junio C Hamano Fri, 26 Oct 2018 05:22:10 +0000 (14:22 +0900)

Merge branch 'sg/split-index-racefix'

The codepath to support the experimental split-index mode had
remaining "racily clean" issues fixed.

* sg/split-index-racefix:
split-index: BUG() when cache entry refers to non-existing shared entry
split-index: smudge and add racily clean cache entries to split index
split-index: don't compare cached data of entries already marked for split index
split-index: count the number of deleted entries
t1700-split-index: date back files to avoid racy situations
split-index: add tests to demonstrate the racy split index problem
t1700-split-index: document why FSMONITOR is disabled in this test script