Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase to v2.27.0-rc0 #2626

Merged
merged 838 commits into from
May 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
838 commits
Select commit Hold shift + click to select a range
82e46d6
git-p4: recover from inconsistent perforce history
adoakley May 10, 2020
9068cfb
fsck: report non-consecutive duplicate names in trees
rscharfe May 10, 2020
891c17c
bloom: parse commit before computing filters
derrickstolee May 11, 2020
8809328
Documentation: changed-path Bloom filters use byte words
derrickstolee May 11, 2020
65c1a28
bloom: de-duplicate directory entries
derrickstolee May 11, 2020
2f6775f
bloom: use num_changes not nr for limit detection
derrickstolee May 11, 2020
b928e48
completion: offer '--(no-)patch' among 'git log' options
szeder May 11, 2020
98a1364
trace2: log progress time and throughput
nasamuffin May 12, 2020
896833b
Merge branch 'tb/shallow-cleanup'
gitster May 13, 2020
69ae8ff
Merge branch 'tb/bitmap-walk-with-tree-zero-filter'
gitster May 13, 2020
aa28171
Merge branch 'cb/credential-doc-fixes'
gitster May 13, 2020
3af459e
Merge branch 'jc/auto-gc-quiet'
gitster May 13, 2020
6586242
Merge branch 'ss/faq-ignore'
gitster May 13, 2020
94afbbb
Merge branch 'ss/faq-fetch-pull'
gitster May 13, 2020
dd4a287
Merge branch 'jk/ci-only-on-selected-branches'
gitster May 13, 2020
2e72299
Merge branch 'dd/bloom-sparse-fix'
gitster May 13, 2020
9e8ed17
Merge branch 'ss/submodule-set-url-in-c'
gitster May 13, 2020
ce1adb1
Merge branch 'ds/sparse-updates-oob-access-fix'
gitster May 13, 2020
a012588
Merge branch 'cc/upload-pack-v2-fetch-fix'
gitster May 13, 2020
172e8ff
The ninth batch
gitster May 13, 2020
3583730
Merge branch 'es/bugreport-with-hooks'
gitster May 14, 2020
f9dbe28
Merge branch 'cw/bisect-replay-with-dos'
gitster May 14, 2020
73d9f96
Merge branch 'jc/codingstyle-compare-with-null'
gitster May 14, 2020
a2a0942
Merge branch 'js/rebase-autosquash-double-fixup-fix'
gitster May 14, 2020
f4507ce
Merge branch 'ao/p4-d-f-conflict-recover'
gitster May 14, 2020
0498840
Merge branch 'rs/fsck-duplicate-names-in-trees'
gitster May 14, 2020
4b1e5e5
Merge branch 'ds/bloom-cleanup'
gitster May 14, 2020
6baba94
Merge branch 'sn/midx-repack-with-config'
gitster May 14, 2020
ac140be
Merge branch 'jt/t5500-unflake'
gitster May 14, 2020
d98abce
Merge branch 'es/trace-log-progress'
gitster May 14, 2020
efcab5b
Git 2.27-rc0
gitster May 14, 2020
5a2504a
Start the merging-rebase to v2.27.0-rc0
dscho May 15, 2020
b293828
t9350: point out that refs are not updated correctly
SRabbelier Jul 24, 2011
bac564b
transport-helper: add trailing --
SRabbelier Aug 29, 2010
66b3f4d
remote-helper: check helper status after import/export
SRabbelier Jul 23, 2011
68148ee
mingw: demonstrate a problem with certain absolute paths
dscho Apr 18, 2017
ea38a0f
archive: replace write_or_die() calls with write_block_or_die()
r1walz Feb 15, 2019
9402739
Always auto-gc after calling a fast-import transport
dscho Apr 9, 2012
56a8d7f
diffcore-rename: speed up register_rename_src
jeffhostetler Dec 15, 2016
c90b3ff
mingw: allow absolute paths without drive prefix
dscho Apr 18, 2017
aa499df
mingw: handle absolute paths in expand_user_path()
dscho Dec 11, 2015
305b23a
archive: avoid spawning `gzip`
r1walz Feb 19, 2019
5b0aaa8
mingw: change core.fsyncObjectFiles = 1 by default
dscho Sep 4, 2017
c3489c2
gitk: prevent overly long command lines
dscho Apr 25, 2019
64368b2
gitk: Escape file paths before piping to git log
gix Aug 19, 2019
5d3735e
clean: do not traverse mount points
dscho Dec 7, 2018
e6cdbe6
clean: remove mount points when possible
dscho Dec 11, 2018
28f875e
vcpkg_install: detect lack of Git
PhilipOakley Oct 6, 2019
1bf7aaa
mingw: move Git for Windows' system config where users expect it
dscho Oct 6, 2019
73f6dbf
config.mak.uname: PCRE1 cleanup
carenas Aug 31, 2019
8538739
vcpkg_install: add comment regarding slow network connections
PhilipOakley Oct 6, 2019
8837502
config: normalize the path of the system gitconfig
dscho Oct 24, 2019
8a358f3
mingw: include the Python parts in the build
dscho Feb 16, 2015
f661a08
Config option to disable side-band-64k for transport
t-b May 8, 2014
5cb17de
mingw: make sure `errno` is set correctly when socket operations fail
dscho Nov 14, 2019
9de1c2b
mingw: do resolve symlinks in `getcwd()`
dscho Jan 1, 2020
2e5a1b6
mingw: demonstrate a `git add` issue with NTFS junctions
dscho Jan 31, 2020
9f5005c
mingw: ensure valid CTYPE
dscho Feb 21, 2017
a830ed4
strbuf_realpath(): use platform-dependent API if available
dscho Jan 31, 2020
32244a7
mingw: allow `git.exe` to be used instead of the "Git wrapper"
dscho Jan 31, 2020
508ba52
mingw: fix fatal error working on mapped network drives on Windows
bmueller84 Jan 22, 2020
3f9d248
clink.pl: fix MSVC compile script to handle libcurl-d.lib
jeffhostetler Jan 30, 2020
82458fd
mingw: implement a platform-specific `strbuf_realpath()`
dscho Jan 31, 2020
1896008
tests: exercise the RUNTIME_PREFIX feature
dscho Feb 5, 2020
0bf1699
credential.c: fix credential reading with regards to CR/LF
Feb 8, 2020
c45a7c4
http: use new "best effort" strategy for Secure Channel revoke checking
dscho Mar 4, 2020
d9bb41b
[fix] Gitk fails to open on a bare Git repository on Windows
remybohmer Mar 20, 2020
24c7e68
mingw: improve performance of mingw_unlink()
jeffhostetler Apr 17, 2020
e3d8a55
Merge 'remote-hg-prerequisites' into HEAD
dscho Jun 8, 2018
faf5d48
Merge pull request #996 from jeffhostetler/jeffhostetler/register_ren…
dscho Jun 8, 2018
dbcdc07
Merge branch 'drive-prefix'
dscho Jun 8, 2018
295358d
Merge branch 'mingw-expand-absolute-user-path'
dscho Oct 12, 2018
38f0626
Merge branch 'dont-spawn-gzip-in-archive'
dscho Feb 21, 2019
a46a4a9
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
89d6466
Merge pull request #2170 from dscho/gitk-long-cmdline
dscho Apr 26, 2019
81d92d8
Merge branch 'dont-clean-junctions'
dscho Jul 30, 2019
662703a
Merge pull request #2316 from carenas/win-pcre1-cleanup
dscho Sep 2, 2019
786deec
Merge pull request #2351 from PhilipOakley/vcpkg-tip
dscho Oct 7, 2019
230c84a
Merge branch 'move-gfw-system-config-to-top-level'
dscho Oct 18, 2019
fb4028f
Merge branch 'msys2-python'
dscho May 31, 2019
8237af3
Merge pull request #2375 from assarbad/reintroduce-sideband-config
dscho Oct 30, 2019
a7ca33f
Merge pull request #2405 from dscho/mingw-setsockopt
dscho Nov 25, 2019
7ed4f72
Merge pull request #2449 from dscho/mingw-getcwd-and-symlinks
dscho Jan 3, 2020
72b90e7
Merge pull request #2488 from bmueller84/master
dscho Jan 22, 2020
d31733a
Merge pull request #2501 from jeffhostetler/clink-debug-curl
dscho Jan 30, 2020
59505e7
Merge pull request #2504 from dscho/access-repo-via-junction
dscho Feb 1, 2020
e3fdb4d
Merge pull request #2506 from dscho/issue-2283
dscho Feb 11, 2020
2d9966a
Merge pull request #2516 from nyckyta/crlf-aware-git-credential
dscho Feb 13, 2020
9e229d4
Merge pull request #2535 from dscho/schannel-revoke-best-effort
dscho Mar 4, 2020
1d95319
git-gui: provide question helper for retry fallback on Windows
hvoigt Feb 21, 2010
391a2e2
git-gui--askyesno: fix funny text wrapping
dscho Sep 20, 2017
c0d1782
Merge pull request #2549 from remybohmer/master
dscho Apr 17, 2020
56256f9
git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
dscho Jul 23, 2010
2f2d9a6
git-gui--askyesno: allow overriding the window title
dscho Sep 20, 2017
c505148
respect core.hooksPath, falling back to .git/hooks
dscho Oct 4, 2018
69c97cf
Merge pull request #2589 from jeffhostetler/unlink-perf-gfw
jeffhostetler Apr 20, 2020
68106d4
gitk: Unicode file name support
kblees Feb 4, 2012
ce909d8
gitk: Use an external icon file on Windows
sschuberth Jul 22, 2012
6523434
Merge 'git-gui' into HEAD
dscho Jun 7, 2018
56dd649
gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6
dscho Feb 16, 2016
45b1fa5
git-gui--askyesno (mingw): use Git for Windows' icon, if available
dscho Sep 20, 2017
c0685e2
Merge branch 'git-gui-hooks-path' of https://github.com/dscho/git-gui
dscho Jul 10, 2018
0b4f369
gitk: make the "list references" default window width wider
sidecut Jan 21, 2016
05d4497
Merge branch 'git-gui-askyesno'
dscho Jun 8, 2018
1fb59fa
Merge 'gitk' into HEAD
dscho Jun 7, 2018
d878e57
status: carry the --no-lock-index option for backwards-compatibility
dscho Aug 12, 2016
f111cb7
status: reinstate --show-ignored-directory as a deprecated option
dscho Nov 9, 2017
c0f66fe
Modify the Code of Conduct for Git for Windows
dscho Oct 11, 2019
b818af1
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
418fe81
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
b2eb7fc
Add an issue template
shiftkey Feb 18, 2016
759c8c8
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
c798f9a
.github: Add configuration for the Sentiment Bot
dscho Feb 20, 2018
34df3dd
Document how $HOME is set on Windows
alejandro5042 Mar 9, 2018
f4186a1
status: verify that --show-ignored-directory prints a warning
dscho Nov 9, 2017
123c91b
reset: reinstate support for the deprecated --stdin option
dscho Dec 10, 2019
593bca1
SECURITY.md: document Git for Windows' policies
dscho Aug 23, 2019
b83aeae
vcxproj: unclash project directories with build outputs
dscho May 9, 2020
f25f0a0
t5505/t5516: allow running without `.git/branches/` in the templates
dscho May 9, 2020
84e5e9d
t5505/t5516: fix white-space around redirectors
dscho May 9, 2020
4e0815e
ci: avoid pounding on the poor ci-artifacts container
dscho May 12, 2020
71fe428
Merge pull request #2618 from dscho/avoid-d/f-conflict-in-vs/master
dscho May 9, 2020
1dd1d2b
Merge pull request #2622 from dscho/avoid-ci-artifacts-for-now
dscho May 15, 2020
8c6f87a
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
40391bd
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
0b0e5d9
mingw: make the dirent implementation pluggable
kblees Sep 8, 2013
81e340a
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
d237c7c
add infrastructure for read-only file system level caches
kblees Sep 8, 2013
73460e5
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
250b789
Allow `add -p` and `add -i` with a large number of files
kkheller May 27, 2015
ee29b3e
mingw: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
01d82d6
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
e6b2024
t3701: verify that we can add *lots* of files interactively
dscho Sep 12, 2015
7d00008
fscache: load directories only once
kblees Jun 24, 2014
b489f74
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
660ab99
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
fc2d28a
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
b07a9c9
fscache: fscache takes an initial size
benpeart Nov 2, 2018
94a9a57
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
c3d60f2
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
c7c2538
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
5d40ce0
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
62571fa
checkout.c: enable fscache for checkout again
Jan 30, 2018
e7576b3
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
09dc759
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
6f1fc94
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
a9b170a
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
262afc9
At the end of the add command, disable and free the fscache so that w…
benpeart Nov 5, 2018
ac1b5da
fscache: add fscache hit statistics
benpeart Sep 25, 2018
410e175
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
22bff35
pack-objects (mingw): demonstrate a segmentation fault with large deltas
vangdfang Jan 9, 2014
0490e4f
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
6edf34d
fscache: remember the reparse tag for each entry
dscho Dec 11, 2018
134b203
mingw: support long paths
kblees Jul 28, 2015
ab940bc
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
1ee9a27
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
eaf35b1
fscache: implement an FSCache-aware is_mount_point()
dscho Dec 11, 2018
279fcd4
Win32: fix 'lstat("dir/")' with long paths
kblees Jul 4, 2014
fee26e7
Unbreak interactive GPG prompt upon signing
dscho Sep 6, 2016
3b54bce
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
13f8293
fscache: make fscache_enable() thread safe
benpeart Nov 16, 2018
50345d4
fscache: teach fscache to use NtQueryDirectoryFile
benpeart Nov 15, 2018
da9f071
unpack-trees: enable fscache for sparse-checkout
derrickstolee Jun 12, 2019
15e6d37
clean: make use of FSCache
dscho Dec 11, 2018
7927796
mingw: ensure that core.longPaths is handled *always*
dscho Aug 29, 2017
f5c2158
strbuf_readlink: don't call readlink twice if hint is the exact link …
kblees May 11, 2015
6796432
strbuf_readlink: support link targets that exceed PATH_MAX
kblees May 11, 2015
817f9f1
lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
kblees May 11, 2015
4eeb2b7
Win32: don't call GetFileAttributes twice in mingw_lstat()
kblees May 12, 2015
68d7303
Win32: implement stat() with symlink support
kblees May 15, 2015
b4bdcc9
Win32: remove separate do_lstat() function
kblees May 11, 2015
fcfe780
Win32: let mingw_lstat() error early upon problems with reparse points
kblees May 23, 2015
034852a
mingw: teach fscache and dirent about symlinks
kblees Jan 10, 2017
7a1aa01
Win32: lstat(): return adequate stat.st_size for symlinks
kblees May 15, 2015
ffda26e
Win32: factor out retry logic
kblees May 19, 2015
d2d0fe8
Win32: change default of 'core.symlinks' to false
kblees May 23, 2015
fa6c548
Win32: add symlink-specific error codes
kblees May 15, 2015
19991b7
Win32: mingw_unlink: support symlinks to directories
kblees May 23, 2015
b586cc9
Win32: mingw_rename: support renaming symlinks
kblees May 19, 2015
081d030
mingw: disable t9020
dscho Feb 23, 2015
cf3eb4a
Win32: mingw_chdir: change to symlink-resolved directory
kblees May 23, 2015
49aaf83
Merge branch 'maybe-drop'
dscho Oct 12, 2018
fb5718c
transport-helper: prefer Git's builtins over dashed form
dscho Jul 19, 2017
7585fb8
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
1c765f1
Win32: implement readlink()
kblees May 23, 2015
6c8f202
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
46d6a0c
Win32: implement basic symlink() functionality (file symlinks only)
kblees May 23, 2015
09425c1
mingw: introduce code to detect whether we're inside a Windows container
ZCube Apr 23, 2018
9dfc492
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
0e357bc
test-lib: avoid unnecessary Perl invocation
dscho Aug 5, 2017
b78c5aa
Win32: symlink: add support for symlinks to directories
kblees May 23, 2015
9323588
mingw: when running in a Windows container, try to rename() harder
ZCube Apr 23, 2018
4fc01e8
Introduce helper to create symlinks that knows about index_state
dscho Feb 11, 2019
9dfd7bf
tests: replace mingw_test_cmp with a helper in C
dscho Jun 7, 2018
d5b0d1e
mingw: try to create symlinks without elevated permissions
dscho May 30, 2017
4776a81
mingw: move the file_attr_to_st_mode() function definition
ZCube Apr 23, 2018
5c769c7
mingw: allow to specify the symlink type in .gitattributes
piscisaureus Oct 26, 2018
c834b6f
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
5a4bbc0
mingw: emulate stat() a little more faithfully
dscho Mar 2, 2020
db175d5
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
7337619
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
b522f7a
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
a63377f
tests: use t/diff-lib/* consistently
dscho Aug 5, 2017
9e545bb
gitattributes: mark .png files as binary
dscho Oct 11, 2018
ab664cc
tests: move test PNGs into t/diff-lib/
dscho Aug 5, 2017
6270539
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
f4f2b68
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
1daea5b
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
189637a
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
44831f9
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
16a640b
t0021: use Windows path when appropriate
dscho Aug 4, 2017
0724048
t5003: use binary file from t/diff-lib/
dscho Aug 5, 2017
49c814e
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
6983dfe
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
f4a03b3
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
02735b1
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
305fcd9
mingw: add a Makefile target to copy test artifacts
dscho Jul 19, 2017
73843db
mingw: kill child processes in a gentler way
dscho May 17, 2017
dae8279
mingw: really handle SIGINT
dscho Apr 22, 2018
961f102
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
d716f56
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
5f58e3c
Merge 'add-p-many-files'
dscho Jun 8, 2018
c0c52bf
Merge branch 'fscache'
dscho Nov 15, 2018
19f53f1
Merge pull request #994 from jeffhostetler/jeffhostetler/fscache_nfd
dscho Jun 8, 2018
f1fcbe6
Merge pull request #971 from jeffhostetler/jeffhostetler/add_preload_…
dscho Jun 8, 2018
1f28281
Merge pull request #1344 from jeffhostetler/perf_add_excludes_with_fs…
dscho Jun 8, 2018
65acb8c
Merge pull request #1426 from atetubou/fetch_pack
dscho Jun 8, 2018
c22a9db
Merge pull request #1468 from atetubou/fscache_checkout_flush
dscho Oct 12, 2018
7f5c754
Merge pull request #1827 from benpeart/fscache_refresh_index
dscho Sep 27, 2018
ae6c92d
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
dscho Nov 5, 2018
19d8b76
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
25bb4e4
Merge pull request #1911 from benpeart/git_test_fscache-gfw
dscho Nov 5, 2018
980cd53
Merge pull request #1914 from benpeart/free-fscache-after-add-gfw
dscho Nov 16, 2018
154abc8
Merge pull request #1910 from benpeart/fscache_statistics-gfw
dscho Nov 16, 2018
3cb3f67
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
c2c4066
Merge pull request #1934 from benpeart/fscache-thread-safe-enable-gfw
dscho Nov 26, 2018
2d21085
Merge pull request #1937 from benpeart/fscache-NtQueryDirectoryFile-gfw
dscho Nov 27, 2018
9ff21a0
Merge branch 'fscache-and-sparse-checkout'
derrickstolee Jun 18, 2019
5568e1a
Merge branch 'dont-clean-junctions-fscache'
dscho Jul 23, 2019
898c79a
Merge branch 'long-paths'
dscho Nov 15, 2018
ddf7a1c
Merge branch 'msys2'
dscho Nov 15, 2018
5d93903
Merge branch 'kblees/kb/symlinks'
dscho Nov 15, 2018
1c07069
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
48d624c
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
7f202f8
Merge branch 'busybox-w32'
dscho Feb 7, 2019
41ac194
Merge pull request #1170 from dscho/mingw-kill-process
dscho Oct 11, 2018
0b8cd59
Merge branch 'status-no-lock-index'
dscho Jun 8, 2018
6845697
Merge pull request #1354 from dscho/phase-out-show-ignored-directory-…
dscho Jun 8, 2018
5d51859
Merge branch 'phase-out-reset-stdin'
dscho Jun 8, 2018
fb008e4
Merge 'readme' into HEAD
dscho Jun 7, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,39 @@ env:
DEVELOPER: 1

jobs:
ci-config:
runs-on: ubuntu-latest
outputs:
enabled: ${{ steps.check-ref.outputs.enabled }}
steps:
- name: try to clone ci-config branch
continue-on-error: true
run: |
git -c protocol.version=2 clone \
--no-tags \
--single-branch \
-b ci-config \
--depth 1 \
--no-checkout \
--filter=blob:none \
https://github.com/${{ github.repository }} \
config-repo &&
cd config-repo &&
git checkout HEAD -- ci/config
- id: check-ref
name: check whether CI is enabled for ref
run: |
enabled=yes
if test -x config-repo/ci/config/allow-ref &&
! config-repo/ci/config/allow-ref '${{ github.ref }}'
then
enabled=no
fi
echo "::set-output name=enabled::$enabled"

windows-build:
needs: ci-config
if: needs.ci-config.outputs.enabled == 'yes'
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -89,6 +121,8 @@ jobs:
name: failed-tests-windows
path: ${{env.FAILED_TEST_ARTIFACTS}}
vs-build:
needs: ci-config
if: needs.ci-config.outputs.enabled == 'yes'
env:
MSYSTEM: MINGW64
NO_PERL: 1
Expand Down Expand Up @@ -187,6 +221,8 @@ jobs:
${{matrix.nr}} 10 t[0-9]*.sh)
"@
regular:
needs: ci-config
if: needs.ci-config.outputs.enabled == 'yes'
strategy:
matrix:
vector:
Expand Down Expand Up @@ -222,6 +258,8 @@ jobs:
name: failed-tests-${{matrix.vector.jobname}}
path: ${{env.FAILED_TEST_ARTIFACTS}}
dockerized:
needs: ci-config
if: needs.ci-config.outputs.enabled == 'yes'
strategy:
matrix:
vector:
Expand All @@ -246,6 +284,8 @@ jobs:
name: failed-tests-${{matrix.vector.jobname}}
path: ${{env.FAILED_TEST_ARTIFACTS}}
static-analysis:
needs: ci-config
if: needs.ci-config.outputs.enabled == 'yes'
env:
jobname: StaticAnalysis
runs-on: ubuntu-latest
Expand All @@ -254,6 +294,8 @@ jobs:
- run: ci/install-dependencies.sh
- run: ci/run-static-analysis.sh
documentation:
needs: ci-config
if: needs.ci-config.outputs.enabled == 'yes'
env:
jobname: Documentation
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
/git-bisect--helper
/git-blame
/git-branch
/git-bugreport
/git-bundle
/git-cat-file
/git-check-attr
Expand Down Expand Up @@ -83,7 +84,6 @@
/git-init-db
/git-interpret-trailers
/git-instaweb
/git-legacy-stash
/git-log
/git-ls-files
/git-ls-remote
Expand Down Expand Up @@ -189,6 +189,7 @@
/gitweb/gitweb.cgi
/gitweb/static/gitweb.js
/gitweb/static/gitweb.min.*
/config-list.h
/command-list.h
*.tar.gz
*.dsc
Expand Down
18 changes: 12 additions & 6 deletions Documentation/CodingGuidelines
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,10 @@ For shell scripts specifically (not exhaustive):

- No shell arrays.

- No strlen ${#parameter}.

- No pattern replacement ${parameter/pattern/string}.

- We use Arithmetic Expansion $(( ... )).

- Inside Arithmetic Expansion, spell shell variables with $ in front
of them, as some shells do not grok $((x)) while accepting $(($x))
just fine (e.g. dash older than 0.5.4).

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

- Do not write control structures on a single line with semicolon.
Expand Down Expand Up @@ -238,6 +232,18 @@ For C programs:
while( condition )
func (bar+1);

- Do not explicitly compare an integral value with constant 0 or '\0',
or a pointer value with constant NULL. For instance, to validate that
counted array <ptr, cnt> is initialized but has no elements, write:

if (!ptr || cnt)
BUG("empty array expected");

and not:

if (ptr == NULL || cnt != 0);
BUG("empty array expected");

- We avoid using braces unnecessarily. I.e.

if (bla) {
Expand Down
24 changes: 1 addition & 23 deletions Documentation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ MAN7_TXT += gitcredentials.txt
MAN7_TXT += gitcvs-migration.txt
MAN7_TXT += gitdiffcore.txt
MAN7_TXT += giteveryday.txt
MAN7_TXT += gitfaq.txt
MAN7_TXT += gitglossary.txt
MAN7_TXT += gitnamespaces.txt
MAN7_TXT += gitremote-helpers.txt
Expand Down Expand Up @@ -149,32 +150,9 @@ endif
-include ../config.mak.autogen
-include ../config.mak

#
# For docbook-xsl ...
# -1.68.1, no extra settings are needed?
# 1.69.0, set ASCIIDOC_ROFF?
# 1.69.1-1.71.0, set DOCBOOK_SUPPRESS_SP?
# 1.71.1, set ASCIIDOC_ROFF?
# 1.72.0, set DOCBOOK_XSL_172.
# 1.73.0-, no extra settings are needed
#

ifdef DOCBOOK_XSL_172
ASCIIDOC_EXTRA += -a git-asciidoc-no-roff
MANPAGE_XSL = manpage-1.72.xsl
else
ifndef ASCIIDOC_ROFF
# docbook-xsl after 1.72 needs the regular XSL, but will not
# pass-thru raw roff codes from asciidoc.conf, so turn them off.
ASCIIDOC_EXTRA += -a git-asciidoc-no-roff
endif
endif
ifndef NO_MAN_BOLD_LITERAL
XMLTO_EXTRA += -m manpage-bold-literal.xsl
endif
ifdef DOCBOOK_SUPPRESS_SP
XMLTO_EXTRA += -m manpage-suppress-sp.xsl
endif

# Newer DocBook stylesheet emits warning cruft in the output when
# this is not set, and if set it shows an absolute link. Older
Expand Down
3 changes: 0 additions & 3 deletions Documentation/MyFirstObjectWalk.txt
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,6 @@ static void walken_commit_walk(struct rev_info *rev)
...

while ((commit = get_revision(rev))) {
if (!commit)
continue;

strbuf_reset(&prettybuf);
pp_commit_easy(CMIT_FMT_ONELINE, commit, &prettybuf);
puts(prettybuf.buf);
Expand Down
Loading