]> git.ipfire.org Git - thirdparty/git.git/log
thirdparty/git.git
7 years agoMerge branch 'ds/reachable-first-parent-fix'
Junio C Hamano [Tue, 30 Oct 2018 06:43:44 +0000 (15:43 +0900)] 
Merge branch 'ds/reachable-first-parent-fix'

Correct performance regression in commit ancestry computation when
generation numbers are involved.

* ds/reachable-first-parent-fix:
  commit-reach: fix first-parent heuristic

7 years agoMerge branch 'rj/header-guards'
Junio C Hamano [Tue, 30 Oct 2018 06:43:44 +0000 (15:43 +0900)] 
Merge branch 'rj/header-guards'

Code clean-up.

* rj/header-guards:
  headers: normalize the spelling of some header guards

7 years agoMerge branch 'jk/test-tool-help'
Junio C Hamano [Tue, 30 Oct 2018 06:43:44 +0000 (15:43 +0900)] 
Merge branch 'jk/test-tool-help'

Developer support.

* jk/test-tool-help:
  test-tool: show tool list on error

7 years agoMerge branch 'sg/doc-show-branch-typofix'
Junio C Hamano [Tue, 30 Oct 2018 06:43:44 +0000 (15:43 +0900)] 
Merge branch 'sg/doc-show-branch-typofix'

Docfix.

* sg/doc-show-branch-typofix:
  doc: fix small typo in git show-branch

7 years agoMerge branch 'sb/submodule-helper-remove-cruft'
Junio C Hamano [Tue, 30 Oct 2018 06:43:43 +0000 (15:43 +0900)] 
Merge branch 'sb/submodule-helper-remove-cruft'

Code clean-up.

* sb/submodule-helper-remove-cruft:
  builtin/submodule--helper: remove debugging leftover tracing

7 years agoMerge branch 'js/pack-objects-mutex-init-fix'
Junio C Hamano [Tue, 30 Oct 2018 06:43:43 +0000 (15:43 +0900)] 
Merge branch 'js/pack-objects-mutex-init-fix'

A mutex used in "git pack-objects" were not correctly initialized
and this caused "git repack" to dump core on Windows.

* js/pack-objects-mutex-init-fix:
  pack-objects (mingw): initialize `packing_data` mutex in the correct spot
  pack-objects (mingw): demonstrate a segmentation fault with large deltas
  pack-objects: fix typo 'detla' -> 'delta'

7 years agoMerge branch 'tq/branch-style-fix'
Junio C Hamano [Tue, 30 Oct 2018 06:43:43 +0000 (15:43 +0900)] 
Merge branch 'tq/branch-style-fix'

Code clean-up.

* tq/branch-style-fix:
  branch: trivial style fix

7 years agoMerge branch 'tq/branch-create-wo-branch-get'
Junio C Hamano [Tue, 30 Oct 2018 06:43:42 +0000 (15:43 +0900)] 
Merge branch 'tq/branch-create-wo-branch-get'

Code clean-up.

* tq/branch-create-wo-branch-get:
  builtin/branch.c: remove useless branch_get

7 years agoMerge branch 'bc/hash-transition-part-15'
Junio C Hamano [Tue, 30 Oct 2018 06:43:42 +0000 (15:43 +0900)] 
Merge branch 'bc/hash-transition-part-15'

More codepaths are moving away from hardcoded hash sizes.

* bc/hash-transition-part-15:
  rerere: convert to use the_hash_algo
  submodule: make zero-oid comparison hash function agnostic
  apply: rename new_sha1_prefix and old_sha1_prefix
  apply: replace hard-coded constants
  tag: express constant in terms of the_hash_algo
  transport: use parse_oid_hex instead of a constant
  upload-pack: express constants in terms of the_hash_algo
  refs/packed-backend: express constants using the_hash_algo
  packfile: express constants in terms of the_hash_algo
  pack-revindex: express constants in terms of the_hash_algo
  builtin/fetch-pack: remove constants with parse_oid_hex
  builtin/mktree: remove hard-coded constant
  builtin/repack: replace hard-coded constants
  pack-bitmap-write: use GIT_MAX_RAWSZ for allocation
  object_id.cocci: match only expressions of type 'struct object_id'

7 years agoMerge branch 'sb/strbuf-h-update'
Junio C Hamano [Tue, 30 Oct 2018 06:43:41 +0000 (15:43 +0900)] 
Merge branch 'sb/strbuf-h-update'

Code clean-up to serve as a BCP example.

* sb/strbuf-h-update:
  strbuf.h: format according to coding guidelines

7 years agoMerge branch 'jk/run-command-notdot'
Junio C Hamano [Tue, 30 Oct 2018 06:43:41 +0000 (15:43 +0900)] 
Merge branch 'jk/run-command-notdot'

The implementation of run_command() API on the UNIX platforms had a
bug that caused a command not on $PATH to be found in the current
directory.

* jk/run-command-notdot:
  run-command: mark path lookup errors with ENOENT

7 years agoMerge branch 'tb/filter-alternate-refs'
Junio C Hamano [Tue, 30 Oct 2018 06:43:41 +0000 (15:43 +0900)] 
Merge branch 'tb/filter-alternate-refs'

Test fix.

* tb/filter-alternate-refs:
  t5410: use longer path for sample script
  Documentation/config.txt: fix typo in core.alternateRefsCommand

7 years agoMerge branch 'rv/send-email-cc-misc-by'
Junio C Hamano [Tue, 30 Oct 2018 06:43:40 +0000 (15:43 +0900)] 
Merge branch 'rv/send-email-cc-misc-by'

"git send-email" learned to grab address-looking string on any
trailer whose name ends with "-by"; --suppress-cc=misc-by on the
command line, or setting sendemail.suppresscc configuration
variable to "misc-by", can be used to disable this behaviour.

This is a backward-incompatible change that may surprise existing
users.

* rv/send-email-cc-misc-by:
  send-email: also pick up cc addresses from -by trailers
  send-email: only consider lines containing @ or <> for automatic Cc'ing
  Documentation/git-send-email.txt: style fixes

7 years agoMerge branch 'lm/range-diff-submodule-fix'
Junio C Hamano [Tue, 30 Oct 2018 06:43:40 +0000 (15:43 +0900)] 
Merge branch 'lm/range-diff-submodule-fix'

"git range-diff" did not work well when the compared ranges had
changes in submodules and the "--submodule=log" was used.

* lm/range-diff-submodule-fix:
  range-diff: allow to diff files regardless of submodule config

7 years agoMerge branch 'ch/subtree-build'
Junio C Hamano [Tue, 30 Oct 2018 06:43:39 +0000 (15:43 +0900)] 
Merge branch 'ch/subtree-build'

Build update for "git subtree" (in contrib/) documentation pages.

* ch/subtree-build:
  Revert "subtree: make install targets depend on build targets"
  subtree: make install targets depend on build targets
  subtree: add build targets 'man' and 'html'

7 years agoMerge branch 'md/filter-trees'
Junio C Hamano [Tue, 30 Oct 2018 06:43:39 +0000 (15:43 +0900)] 
Merge branch 'md/filter-trees'

The "rev-list --filter" feature learned to exclude all trees via
"tree:0" filter.

* md/filter-trees:
  list-objects: support for skipping tree traversal
  filter-trees: code clean-up of tests
  list-objects-filter: implement filter tree:0
  list-objects-filter-options: do not over-strbuf_init
  list-objects-filter: use BUG rather than die
  revision: mark non-user-given objects instead
  rev-list: handle missing tree objects properly
  list-objects: always parse trees gently
  list-objects: refactor to process_tree_contents
  list-objects: store common func args in struct

7 years agospeed up refresh_index() by utilizing preload_index()
Ben Peart [Mon, 29 Oct 2018 20:41:59 +0000 (16:41 -0400)] 
speed up refresh_index() by utilizing preload_index()

Speed up refresh_index() by utilizing preload_index() to do most of the work
spread across multiple threads.  This works because most cache entries will
get marked CE_UPTODATE so that refresh_cache_ent() can bail out early when
called from within refresh_index().

On a Windows repo with ~200K files, this drops refresh times from 6.64
seconds to 2.87 seconds for a savings of 57%.

Signed-off-by: Ben Peart <benpeart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
7 years agotest-lib: introduce the '-V' short option for '--verbose-log'
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>
7 years agowildmatch: change behavior of "foo**bar" in WM_PATHNAME mode
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>
7 years agothread-utils: macros to unconditionally compile pthreads API
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>
7 years agoconfig.txt: move worktree.* to a separate file
Nguyễ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>
7 years agoconfig.txt: remove config/dummy.txt
Nguyễ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>
7 years agoconfig.txt: move web.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move versionsort.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move user.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move url.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move uploadpack.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move uploadarchive.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move transfer.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move tag.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move submodule.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move stash.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move status.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move splitIndex.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move showBranch.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move sequencer.* to a separate file
Nguyễ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>
7 years agoconfig.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>
7 years agoconfig.txt: move reset.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move rerere.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move repack.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move remotes.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move remote.* to a separate file
Nguyễ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>
7 years agoconfig.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>
7 years agoconfig.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>
7 years agoconfig.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>
7 years agoconfig.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>
7 years agoconfig.txt: move protocol.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move pretty.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move pager.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move pack.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move notes.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move mergetool.* to a separate file
Nguyễ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>
7 years agoconfig.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>
7 years agoconfig.txt: move man.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move mailmap.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move mailinfo.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move log.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move interactive.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move instaweb.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move init.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move index.* to a separate file
Nguyễ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>
7 years agogit-imap-send.txt: move imap.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move i18n.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move http.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move ssh.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move help.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move guitool.* to a separate file
Nguyễ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>
7 years agoconfig.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>
7 years agoconfig.txt: move gpg.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move grep.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move gitweb.* to a separate file
Nguyễ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>
7 years agoconfig.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>
7 years agoconfig.txt: move gc.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move fsck.* to a separate file
Nguyễ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>
7 years agoconfig.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>
7 years agoconfig.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>
7 years agoconfig.txt: move filter.* to a separate file
Nguyễ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>
7 years agoconfig.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>
7 years agoconfig.txt: move fastimport.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move difftool.* to a separate file
Nguyễ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>
7 years agoconfig.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>
7 years agoconfig.txt: move completion.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move credential.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move core.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move commit.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move advice.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move column.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move color.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move clean.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move checkout.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move browser.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move branch.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move blame.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move apply.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move am.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move alias.* to a separate file
Nguyễ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>
7 years agoconfig.txt: move add.* to a separate file
Nguyễ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>
7 years agoUpdate makefile in preparation for Documentation/config/*.txt
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>
7 years agoMerge branches 'bp/reset-quiet' and 'js/mingw-http-ssl' into nd/config-split
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

7 years agocommit-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>