Skip to content

Clean up before 2.20.0 rc0 #1938

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

Merged
merged 520 commits into from
Nov 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
520 commits
Select commit Hold shift + click to select a range
8c1b7d6
tests: optionally skip bin-wrappers/
dscho Oct 24, 2018
9ef2ea4
ci: rename the library of common functions
dscho Aug 30, 2018
56065db
ci/lib.sh: encapsulate Travis-specific things
dscho Aug 30, 2018
ee0383c
test-date: add a subcommand to measure times in shell scripts
dscho Aug 31, 2018
53289cf
tests: optionally write results as JUnit-style .xml
dscho Aug 29, 2018
42eb1fc
ci/lib.sh: add support for Azure Pipelines
dscho Aug 30, 2018
18e0d3a
Add a build definition for Azure DevOps
dscho Aug 30, 2018
1abc832
tests: introduce `test_atexit`
dscho Sep 14, 2018
35f510f
git-daemon: use `test_atexit` in the tests
dscho Sep 14, 2018
8c589eb
git-p4: use `test_atexit` to kill the daemon
dscho Sep 14, 2018
1c1df59
tests: include detailed trace logs with --write-junit-xml upon failure
dscho Aug 31, 2018
a0970eb
tests: record more stderr with --write-junit-xml in case of failure
dscho Aug 31, 2018
081208b
README: add a build badge (status of the Azure Pipelines build)
dscho Aug 31, 2018
de89643
travis: fix skipping tagged releases
dscho Sep 4, 2018
5f25533
Add a Code of Conduct
dscho Jul 24, 2015
e4a823c
CONTRIBUTING.md: add guide for first-time contributors
derrickstolee Mar 1, 2018
9aba595
README.md: Add a Windows-specific preamble
dscho Jan 10, 2014
450322b
bundle: dup() output descriptor closer to point-of-use
peff Nov 16, 2018
593616c
Merge 'create-empty-bundle'
dscho Jun 8, 2018
bc2f4ae
Merge 'mingw-safer-compat-poll'
dscho Jun 8, 2018
aed0b66
Merge branch 'test-unc-alternates'
dscho Jun 8, 2018
2b4c1f5
Merge branch 'gitdir-at-unc-root'
dscho Oct 11, 2018
31cb734
Merge pull request #996 from jeffhostetler/jeffhostetler/register_ren…
dscho Jun 8, 2018
6eb6bec
Merge 'case-insensitive-abspath' into HEAD
dscho Jun 8, 2018
9d9ace8
Merge branch 'drive-prefix'
dscho Jun 8, 2018
d09bf8e
Merge 'release-gc-repack' into HEAD
dscho Jun 8, 2018
1a4a41a
mingw (t5580): document bug when cloning from backslashed UNC paths
dscho Jun 19, 2017
aa6943d
mingw: special-case arguments to `sh`
dscho Jun 19, 2017
469f1e9
Merge branch 'unc-path-w-backslashes'
dscho Oct 11, 2018
9abda7e
t5580: test cloning without file://, test fetching via UNC paths
dscho Jul 13, 2017
77f2e20
Merge branch 'test-unc-fetch'
dscho Oct 11, 2018
9c3de4d
Merge branch 'bw/config-h'
dscho Jun 8, 2018
cd22203
Merge branch 'http-ssl-backend'
dscho Jun 8, 2018
f04f82f
Merge branch 'file-url-to-unc-path'
dscho Jun 8, 2018
73ef4a4
Merge branch 'mingw-CreateHardLink'
dscho Oct 11, 2018
3ad4708
Merge pull request #1837 from git-for-windows/azure-pipelines
jamill Sep 24, 2018
22e484d
Merge pull request #1853 from dscho/fix-gc-segfault
dscho Sep 28, 2018
4e31abd
Merge branch 'test-git-installed'
dscho Oct 12, 2018
8ff5470
Merge branch 'mingw-load-sys-dlls'
dscho Oct 12, 2018
dff8268
Merge branch 'mingw-git.res-bitness'
dscho Oct 12, 2018
266a575
Merge branch 'mingw-expand-absolute-user-path'
dscho Oct 12, 2018
7befc4c
Merge branch 'mingw-isatty-and-dup2'
dscho Oct 12, 2018
81810fa
Merge pull request #443 from kblees/kb/nanosecond-file-times-v2.5.3
dscho Jun 8, 2018
8bfd0b7
Mark .bat files as requiring CR/LF endings
dscho Nov 28, 2017
461e4ca
t0001 (mingw): do not expect specific order of stdout/stderr
dscho Oct 25, 2018
a140a97
cache-tree.c: avoid reusing the DEBUG constant
jeffhostetler Jun 3, 2016
f603eaf
obstack: fix compiler warning
dscho Oct 27, 2016
fd566dc
Merge branch 'ready-for-upstream'
dscho Oct 11, 2018
8663064
Merge branch 'gitk-and-git-gui-patches'
dscho Oct 11, 2018
d97da32
Add an issue template
shiftkey Feb 18, 2016
baf8dcc
Modify the GitHub Pull Request template (to reflect Git for Windows)
Dec 22, 2017
50011fc
.github: Add configuration for the Sentiment Bot
dscho Feb 20, 2018
e70a566
Document how $HOME is set on Windows
alejandro5042 Mar 9, 2018
e4437a1
mingw: replace mingw_startup() hack
dscho Oct 30, 2018
7e26024
msvc: fix dependencies of compat/msvc.c
dscho Oct 20, 2016
3376a4a
msvc: include sigset_t definition
Apr 21, 2016
49b058c
msvc: define O_ACCMODE
Apr 21, 2016
a1c1af3
msvc: mark a variable as non-const
jeffhostetler Jun 3, 2016
9f4a124
msvc: do not re-declare the timespec struct
jeffhostetler Jun 3, 2016
84cfa39
msvc: define ftello()
jeffhostetler Jun 3, 2016
3e06966
msvc: fix detect_msys_tty()
jeffhostetler Jan 10, 2017
6ab54bc
msvc: add pragmas for common warnings
May 4, 2016
4eba2ae
msvc: do not pretend to support all signals
jeffhostetler Jun 3, 2016
8f5575d
msvc: support building Git using MS Visual C++
jeffhostetler Jun 3, 2016
6008737
msvc: avoid debug assertion windows in Debug Mode
dscho Nov 30, 2016
8d708ee
Vcproj.pm: auto-generate GUIDs
dscho Feb 16, 2018
48143e1
msvc: ignore .dll and incremental compile output
jeffhostetler Nov 8, 2016
925a41c
Vcproj.pm: list git.exe first to be startup project
Jul 19, 2015
3b44c8a
Vcproj.pm: do not configure VCWebServiceProxyGeneratorTool
dscho Oct 25, 2016
54748ed
Vcproj.pm: urlencode '<' and '>' when generating VC projects
dscho Oct 25, 2016
c626c28
contrib/buildsystems: ignore invalidcontinue.obj
Jul 20, 2015
b64b004
contrib/buildsystems: ignore irrelevant files in Generators/
dscho Oct 26, 2016
5fef376
contrib/buildsystems: fix misleading error message
Jul 19, 2015
7f49a2a
contrib/buildsystems: handle quoted spaces in filenames
Jul 19, 2015
960078f
contrib/buildsystems: ignore gettext stuff
Feb 9, 2015
9226fe7
contrib/buildsystems: redirect errors of the dry run into a log file
Jul 19, 2015
cd38260
contrib/buildsystems: optionally capture the dry-run in a file
Jul 16, 2015
816a5ed
contrib/buildsystems: handle the curl library option
May 4, 2016
0b6897f
contrib/buildsystems: handle libiconv, too
dscho Oct 27, 2016
51c49fa
contrib/buildsystems: handle options starting with a slash
dscho Oct 27, 2016
79cde5c
contrib/buildsystems: error out on unknown option
dscho Dec 4, 2017
d28881b
contrib/buildsystems: add a backend for modern Visual Studio versions
dscho Oct 26, 2016
2b43801
msvc: add a Makefile target to pre-generate the VS solution
dscho Nov 28, 2016
4b9e0cc
vcxproj: also link-or-copy builtins
dscho Dec 19, 2017
ee4bc7c
.gitignore: touch up the entries regarding Visual Studio
Jul 19, 2015
0aa244e
WIP .gitignore: ignore library directories created by MSVC VS2008 bui…
Feb 23, 2015
45cd128
.gitignore: ignore Visual Studio's temporary/generated files
dscho Oct 25, 2016
35f3e73
bin-wrappers: append `.exe` to target paths if necessary
dscho Nov 25, 2016
aebb751
t5505,t5516: create .git/branches/ when needed
dscho Nov 30, 2016
20f0ce1
git: avoid calling aliased builtins via their dashed form
dscho Nov 28, 2016
c2c3a65
Merge branch 'msvc'
jeffhostetler Oct 23, 2018
584ed10
Merge branch 'visual-studio'
jeffhostetler Oct 23, 2018
b05f763
Win32: make FILETIME conversion functions public
kblees Jul 6, 2013
769bed2
Win32: dirent.c: Move opendir down
kblees Sep 8, 2013
dbb89d0
Win32: Make the dirent implementation pluggable
kblees Sep 8, 2013
bdf5786
Win32: make the lstat implementation pluggable
kblees Sep 8, 2013
8b6a623
add infrastructure for read-only file system level caches
kblees Sep 8, 2013
999ff30
Add a test demonstrating a problem with long submodule paths
vangdfang Jan 9, 2014
edccd34
Win32: add a cache below mingw's lstat and dirent implementations
kblees Oct 1, 2013
b725404
Win32: support long paths
kblees Jul 28, 2015
5c4dc1f
fscache: load directories only once
kblees Jun 24, 2014
31d6274
Win32: fix 'lstat("dir/")' with long paths
kblees Jul 4, 2014
f0e01cc
Makefile: Set htmldir to match the default HTML docs location under MSYS
sschuberth Sep 4, 2013
1852670
Help debugging with MSys2 by optionally executing bash with strace
dscho Feb 20, 2015
5df7233
Build Python stuff with MSys2
dscho Feb 16, 2015
61148c6
mingw: Embed a manifest to trick UAC into Doing The Right Thing
cesarb Mar 9, 2015
d7481bf
mingw: enable stack smashing protector
dscho Nov 2, 2015
6772b5d
Avoid illegal filenames when building Documentation on NTFS
dscho Apr 6, 2015
87f5e00
gettext: always use UTF-8 on native Windows
kblees Apr 9, 2015
3446bfd
mingw: initialize HOME on startup
kblees Apr 6, 2015
4621a08
mingw: explicitly `fflush` stdout
Apr 16, 2015
0d61c25
mingw: Support `git_terminal_prompt` with more terminals
kblees Mar 19, 2015
a37a3b0
compat/terminal.c: only use the Windows console if bash 'read -r' fails
kblees May 9, 2015
d4c9214
winansi: simplify loading the GetCurrentConsoleFontEx() function
dscho Jan 10, 2017
4e85915
Unbreak interactive GPG prompt upon signing
dscho Sep 6, 2016
6909c8e
mingw: ensure valid CTYPE
dscho Feb 21, 2017
5f02e5d
mingw: make is_hidden tests in t0001/t5611 more robust
dscho Feb 21, 2017
9846746
MinGW: Use MakeMaker to build the Perl libraries
sschuberth Aug 29, 2013
789292c
Tests: optionally skip redirecting stdin/stdout/stderr
dscho Feb 20, 2015
9beeebc
Skip t9020 with MSys2
dscho Feb 23, 2015
4970503
t9116: work around hard-to-debug hangs
dscho Jan 11, 2017
2fd5f31
t9001: work around hard-to-debug hangs
dscho Jan 11, 2017
64b01dd
diff: munmap() file contents before running external diff
dscho Oct 5, 2017
b299ba1
Merge branch 'maybe-drop'
dscho Oct 12, 2018
46061db
strbuf_readlink: don't call readlink twice if hint is the exact link …
kblees May 11, 2015
860c7b9
strbuf_readlink: support link targets that exceed PATH_MAX
kblees May 11, 2015
f7e6153
lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
kblees May 11, 2015
4222d9d
Win32: don't call GetFileAttributes twice in mingw_lstat()
kblees May 12, 2015
3fd4b72
Win32: implement stat() with symlink support
kblees May 15, 2015
de22e32
Win32: remove separate do_lstat() function
kblees May 11, 2015
5cc3bb6
Win32: let mingw_lstat() error early upon problems with reparse points
kblees May 23, 2015
94b14a2
Win32: teach fscache and dirent about symlinks
kblees Jan 10, 2017
64dbeda
Win32: lstat(): return adequate stat.st_size for symlinks
kblees May 15, 2015
2382708
Win32: factor out retry logic
kblees May 19, 2015
31507de
Win32: change default of 'core.symlinks' to false
kblees May 23, 2015
3d02383
Win32: add symlink-specific error codes
kblees May 15, 2015
c391e8f
Win32: mingw_unlink: support symlinks to directories
kblees May 23, 2015
714ced6
Win32: mingw_rename: support renaming symlinks
kblees May 19, 2015
a9533bb
Win32: mingw_chdir: change to symlink-resolved directory
kblees May 23, 2015
b428368
Win32: implement readlink()
kblees May 23, 2015
04a9212
Win32: implement basic symlink() functionality (file symlinks only)
kblees May 23, 2015
0dcfd36
Win32: symlink: move phantom symlink creation to a separate function
piscisaureus Oct 26, 2018
2970e20
Win32: symlink: add support for symlinks to directories
kblees May 23, 2015
2eed934
Win32: symlink: specify symlink type in .gitattributes
piscisaureus Oct 26, 2018
b1c3e01
mingw: try to create symlinks without elevated permissions
dscho May 30, 2017
059a694
Win32: symlink: add test for `symlink` attribute
piscisaureus Oct 26, 2018
78e867e
fscache: add key for GIT_TRACE_FSCACHE
jeffhostetler Jan 24, 2017
a80fc8a
fscache: remember not-found directories
jeffhostetler Dec 13, 2016
8860db1
mingw: support spawning programs containing spaces in their names
dscho Apr 2, 2016
2bcb1b2
fscache: add a test for the dir-not-found optimization
dscho Jan 25, 2017
e4a94d5
mingw: ensure that core.longPaths is handled *always*
dscho Aug 29, 2017
2a912b0
dir.c: make add_excludes aware of fscache during status
jeffhostetler Nov 1, 2017
c81f1d3
Export the preload_index() function
dscho Nov 23, 2016
b119764
fscache: make fscache_enabled() public
jeffhostetler Dec 20, 2017
d308414
add: use preload-index and fscache for performance
jeffhostetler Nov 22, 2016
e452052
dir.c: regression fix for add_excludes with fscache
jeffhostetler Dec 20, 2017
4d23bcd
fetch-pack.c: enable fscache for stats under .git/objects
Nov 22, 2017
674eaad
checkout.c: enable fscache for checkout again
Jan 30, 2018
6166508
Merge branch 'program-data-config'
dscho Jun 8, 2018
e88f29b
mingw: introduce code to detect whether we're inside a Windows container
ZCube Apr 23, 2018
6d2bd51
mingw: when running in a Windows container, try to rename() harder
ZCube Apr 23, 2018
efc27cc
Enable the filesystem cache (fscache) in refresh_index().
benpeart Sep 7, 2018
32b36aa
mingw: move the file_attr_to_st_mode() function definition
ZCube Apr 23, 2018
4d78d4d
mingw: Windows Docker volumes are *not* symbolic links
dscho Apr 23, 2018
d741aa1
mingw: change core.fsyncObjectFiles = 1 by default
dscho Sep 4, 2017
5c2b3a6
mingw: kill child processes in a gentler way
dscho May 17, 2017
129934a
mingw: really handle SIGINT
dscho Apr 22, 2018
75ae59a
Merge branch 'spawn-with-spaces'
dscho Oct 12, 2018
f28481b
mingw: spawned processes need to inherit only standard handles
dscho Jan 26, 2018
6c7db9f
Merge branch 'program-data-config'
dscho Jun 8, 2018
067d416
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
c7d5bbf
transport-helper: prefer Git's builtins over dashed form
dscho Jul 19, 2017
c15f743
mingw: explicitly specify with which cmd to prefix the cmdline
dscho Jul 20, 2017
c371d4b
mingw: when path_lookup() failed, try BusyBox
dscho Jul 20, 2017
c2abca4
test-run-command: learn to run (parts of) the testsuite
dscho Jul 18, 2017
4b835ef
test-lib: avoid unnecessary Perl invocation
dscho Aug 5, 2017
0f9c661
tests: replace mingw_test_cmp with a helper in C
dscho Jun 7, 2018
cb6b80a
test-tool: learn to act as a drop-in replacement for `iconv`
dscho Jul 20, 2017
c77f5a2
tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
dscho Jul 20, 2017
44419b6
tests: use t/diff-lib/* consistently
dscho Aug 5, 2017
f94f3d7
gitattributes: mark .png files as binary
dscho Oct 11, 2018
6fa09ae
tests: move test PNGs into t/diff-lib/
dscho Aug 5, 2017
0e31b88
tests: only override sort & find if there are usable ones in /usr/bin/
dscho Jul 17, 2017
fd9d04e
tests: use the correct path separator with BusyBox
dscho Nov 19, 2018
271742c
mingw: only use Bash-ism `builtin pwd -W` when available
dscho Jun 29, 2017
320ef64
tests (mingw): remove Bash-specific pwd option
dscho Jun 30, 2017
3a7260e
test-lib: add BUSYBOX prerequisite
dscho Jul 19, 2017
386d6e4
t0021: use Windows path when appropriate
dscho Aug 4, 2017
c224b10
t1300: mark all test cases with funny filenames as !MINGW
dscho Jul 3, 2017
9dbc8de
t4124: avoid using "normal" diff mode
dscho Jul 5, 2017
67515a0
t5003: use binary file from t/diff-lib/
dscho Aug 5, 2017
4f5abc6
t5003: skip `unzip -a` tests with BusyBox
dscho Jul 5, 2017
5104513
t5532: workaround for BusyBox on Windows
dscho Jul 21, 2017
d6283e3
t5605: special-case hardlink test for BusyBox-w32
dscho Jul 21, 2017
8a4dc8d
t5813: allow for $PWD to be a Windows path
dscho Jul 5, 2017
fc47e8e
t7063: when running under BusyBox, avoid unsupported find option
dscho Jul 19, 2017
a94aae8
t9200: skip tests when $PWD contains a colon
dscho Jul 7, 2017
7024d4b
mingw (git_terminal_prompt): work around BusyBox & WSL issues
dscho Feb 23, 2018
0665129
t9350: skip ISO-8859-1 test when the environment is always-UTF-8
dscho Jul 8, 2017
2e74317
mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
dscho Feb 23, 2018
d5f3d5c
mingw: add a Makefile target to copy test artifacts
dscho Jul 19, 2017
6d8ad1a
mingw (git_terminal_prompt): turn on echo explictly
dscho Feb 23, 2018
440a7fb
Merge branch 'msvc'
jeffhostetler Oct 23, 2018
60caaee
Merge branch 'visual-studio'
jeffhostetler Oct 23, 2018
d94b740
Merge branch 'fscache'
dscho Nov 15, 2018
f2fcaeb
Merge branch 'long-paths'
dscho Nov 15, 2018
25fa23f
Merge branch 'msys2'
dscho Nov 15, 2018
f2e6ad2
Merge branch 'kblees/kb/symlinks'
dscho Nov 15, 2018
76163fa
Merge pull request #1897 from piscisaureus/symlink-attr
dscho Oct 31, 2018
9e9e9d0
Merge branch 'program-data-config'
dscho Jun 8, 2018
99284e8
Merge pull request #305 from dscho/msysgit_issues_182
dscho Jun 8, 2018
31dd5b2
Merge branch 'clean-long-paths'
dscho Jun 8, 2018
f29868b
Merge branch 'spawn-with-spaces'
dscho Jun 8, 2018
584239e
Merge pull request #994 from jeffhostetler/jeffhostetler/fscache_nfd
dscho Jun 8, 2018
ec28ab0
Merge branch 'core-longpaths-everywhere'
dscho Jun 8, 2018
53b6017
Merge pull request #971 from jeffhostetler/jeffhostetler/add_preload_…
dscho Jun 8, 2018
9f8158d
Merge pull request #1344 from jeffhostetler/perf_add_excludes_with_fs…
dscho Jun 8, 2018
36d2eb1
Merge pull request #1426 from atetubou/fetch_pack
dscho Jun 8, 2018
4cb2774
Merge pull request #1468 from atetubou/fscache_checkout_flush
dscho Oct 12, 2018
9819dda
Merge pull request #1827 from benpeart/fscache_refresh_index
dscho Sep 27, 2018
545c98d
Merge 'docker-volumes-are-no-symlinks'
dscho Oct 12, 2018
3a27c59
Merge branch 'status-no-lock-index'
dscho Jun 8, 2018
02d7a7f
Merge pull request #1354 from dscho/phase-out-show-ignored-directory-…
dscho Jun 8, 2018
26ef5f5
Merge branch 'fsync-object-files-always'
dscho Oct 11, 2018
799cd55
Merge pull request #1170 from dscho/mingw-kill-process
dscho Oct 11, 2018
2be7154
Merge branch 'inherit-only-stdhandles'
dscho Oct 12, 2018
f845097
Merge branch 'busybox-w32'
dscho Oct 12, 2018
0484017
Merge branch 'fix-terminal-prompt'
dscho Jun 8, 2018
440ed26
Merge 'readme' into HEAD
dscho Jun 7, 2018
0c1b367
Merge 'builtin-stash-rebase-v3'
jamill Aug 28, 2018
33609ae
fscache: use FindFirstFileExW to avoid retrieving the short name
benpeart Oct 23, 2018
5e1c85e
Merge pull request #1859 from dscho/funny-cased-cwd
dscho Oct 17, 2018
a4427c4
status: disable and free fscache at the end of the status command
benpeart Nov 1, 2018
1ca73e3
fscache: add GIT_TEST_FSCACHE support
benpeart Oct 4, 2018
2046804
At the end of the add command, disable and free the fscache so that w…
benpeart Nov 5, 2018
d569fec
mem_pool: add GIT_TRACE_MEMPOOL support
benpeart Oct 4, 2018
be35ded
fscache: fscache takes an initial size
benpeart Nov 2, 2018
f1bf098
fscache: update fscache to be thread specific instead of global
benpeart Oct 4, 2018
ecebea3
Merge pull request #1908 from benpeart/FindFirstFileEx-gfw
dscho Nov 5, 2018
a1297be
fscache: add fscache hit statistics
benpeart Sep 25, 2018
1c2f6c8
fscache: teach fscache to use mempool
benpeart Nov 2, 2018
f5fd79c
Merge pull request #1909 from benpeart/free-fscache-after-status-gfw
dscho Nov 5, 2018
c01f644
Merge pull request #1911 from benpeart/git_test_fscache-gfw
dscho Nov 5, 2018
1b4e427
Merge pull request #1914 from benpeart/free-fscache-after-add-gfw
dscho Nov 16, 2018
438314b
Merge pull request #1910 from benpeart/fscache_statistics-gfw
dscho Nov 16, 2018
b41e88f
mingw: add a helper function to attach GDB to the current process
dscho Nov 6, 2018
04d4865
Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
dscho Nov 16, 2018
8f9735f
mingw: remove obsolete IPv6-related code
tanushree27 Oct 26, 2018
e6246af
Merge pull request #1915 from dscho/open-in-gdb
dscho Nov 7, 2018
114a662
Merge pull request #1900 from tanushree27/remove-ipv6-fallback
dscho Nov 15, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions builtin/rebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,6 @@ static void add_var(struct strbuf *buf, const char *name, const char *value)
}
}

static const char *resolvemsg =
N_("Resolve all conflicts manually, mark them as resolved with\n"
"\"git add/rm <conflicted_files>\", then run \"git rebase --continue\".\n"
"You can instead skip this commit: run \"git rebase --skip\".\n"
"To abort and get back to the state before \"git rebase\", run "
"\"git rebase --abort\".");

#define GIT_REFLOG_ACTION_ENVIRONMENT "GIT_REFLOG_ACTION"

#define RESET_HEAD_DETACH (1<<0)
Expand Down Expand Up @@ -485,7 +478,6 @@ static int reset_head(struct object_id *oid, const char *action,
return ret;
}


static int move_to_original_branch(struct rebase_options *opts)
{
struct strbuf buf = STRBUF_INIT;
Expand All @@ -502,6 +494,13 @@ static int move_to_original_branch(struct rebase_options *opts)
return ret;
}

static const char *resolvemsg =
N_("Resolve all conflicts manually, mark them as resolved with\n"
"\"git add/rm <conflicted_files>\", then run \"git rebase --continue\".\n"
"You can instead skip this commit: run \"git rebase --skip\".\n"
"To abort and get back to the state before \"git rebase\", run "
"\"git rebase --abort\".");

static int run_am(struct rebase_options *opts)
{
struct child_process am = CHILD_PROCESS_INIT;
Expand Down
83 changes: 4 additions & 79 deletions compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#include "../cache.h"
#include "win32/exit-process.h"
#include "win32/lazyload.h"
#include "../string-list.h"
#include "../attr.h"
#include "../config.h"
#include "../attr.h"
#include "../string-list.h"

#define HCAST(type, handle) ((type)(intptr_t)handle)

Expand Down Expand Up @@ -956,6 +956,7 @@ int (*lstat)(const char *file_name, struct stat *buf) = mingw_lstat;
static int get_file_info_by_handle(HANDLE hnd, struct stat *buf)
{
BY_HANDLE_FILE_INFORMATION fdata;

if (!GetFileInformationByHandle(hnd, &fdata)) {
errno = err_win_to_posix(GetLastError());
return -1;
Expand Down Expand Up @@ -2002,70 +2003,6 @@ int mingw_kill(pid_t pid, int sig)
return -1;
}

#if defined(_MSC_VER)

/* UTF8 versions of getenv and putenv (and unsetenv).
* Internally, they use the CRT's stock UNICODE routines
* to avoid data loss.
*
* Unlike the mingw version, we DO NOT directly write to
* the CRT variables. We also DO NOT try to manage/replace
* the CRT storage.
*/
char *msc_getenv(const char *name)
{
int len_key, len_value;
wchar_t *w_key;
char *value;
const wchar_t *w_value;

if (!name || !*name)
return NULL;

len_key = strlen(name) + 1;
w_key = calloc(len_key, sizeof(wchar_t));
xutftowcs(w_key, name, len_key);
w_value = _wgetenv(w_key);
free(w_key);

if (!w_value)
return NULL;

len_value = wcslen(w_value) * 3 + 1;
value = calloc(len_value, sizeof(char));
xwcstoutf(value, w_value, len_value);

/* TODO Warning: We return "value" which is an allocated
* value and the caller is NOT expecting to have to free
* it, so we leak memory.
*/
return value;
}

int msc_putenv(const char *name)
{
int len, result;
char *equal;
wchar_t *wide;

if (!name || !*name)
return 0;

len = strlen(name);
equal = strchr(name, '=');
wide = calloc(len+1+!equal, sizeof(wchar_t));
xutftowcs(wide, name, len+1);
if (!equal)
wcscat(wide, L"=");

result = _wputenv(wide);

free(wide);
return result;
}

#else

/*
* UTF-8 versions of getenv(), putenv() and unsetenv().
* Internally, they use the CRT's stock UNICODE routines
Expand Down Expand Up @@ -2146,22 +2083,18 @@ int mingw_putenv(const char *namevalue)
return result ? 0 : -1;
}

#endif


static void ensure_socket_initialization(void)
{
WSADATA wsa;
static int initialized = 0;


if (initialized)
return;

if (WSAStartup(MAKEWORD(2,2), &wsa))
die("unable to initialize winsock subsystem, error %d",
WSAGetLastError());

atexit((void(*)(void)) WSACleanup);
initialized = 1;
}
Expand Down Expand Up @@ -3051,13 +2984,6 @@ int handle_long_path(wchar_t *path, int len, int max_path, int expand)
* mingw startup code, see init.c in mingw runtime).
*/
int _CRT_glob = 0;

typedef struct {
int newmode;
} _startupinfo;

extern int __wgetmainargs(int *argc, wchar_t ***argv, wchar_t ***env, int glob,
_startupinfo *si);
#endif

static NORETURN void die_startup(void)
Expand Down Expand Up @@ -3151,7 +3077,6 @@ static void adjust_symlink_flags(void)
symlink_file_flags |= 2;
symlink_directory_flags |= 2;
}

}

static BOOL WINAPI handle_ctrl_c(DWORD ctrl_type)
Expand Down
1 change: 1 addition & 0 deletions compat/win32/fscache.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ int fscache_enable(size_t initial_size)
* any threads are using the fscache.
*/
if (!initialized) {
InitializeCriticalSection(&mutex);
if (!dwTlsIndex) {
dwTlsIndex = TlsAlloc();
if (dwTlsIndex == TLS_OUT_OF_INDEXES)
Expand Down
11 changes: 0 additions & 11 deletions compat/win32/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ typedef int pthread_mutexattr_t;

#define pthread_cond_t CONDITION_VARIABLE

WINBASEAPI VOID WINAPI
InitializeConditionVariable(PCONDITION_VARIABLE ConditionVariable);
WINBASEAPI VOID WINAPI
WakeConditionVariable(PCONDITION_VARIABLE ConditionVariable);
WINBASEAPI VOID WINAPI
WakeAllConditionVariable(PCONDITION_VARIABLE ConditionVariable);
WINBASEAPI BOOL WINAPI
SleepConditionVariableCS(PCONDITION_VARIABLE ConditionVariable,
PCRITICAL_SECTION CriticalSection,
DWORD dwMilliseconds);

#define pthread_cond_init(a,b) InitializeConditionVariable((a))
#define pthread_cond_destroy(a) do {} while (0)
#define pthread_cond_wait(a,b) return_0(SleepConditionVariableCS((a), (b), INFINITE))
Expand Down
2 changes: 1 addition & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ static int do_git_config_sequence(const struct config_options *opts,
if (opts->commondir)
repo_config = mkpathdup("%s/config", opts->commondir);
else if (opts->git_dir)
repo_config = mkpathdup("%s/config", opts->git_dir);
BUG("git_dir without commondir");
else
repo_config = NULL;

Expand Down
2 changes: 1 addition & 1 deletion config.mak.uname
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
ETAGS_TARGET = ETAGS
NO_POSIX_GOODIES = UnfortunatelyYes
DEFAULT_HELP_FORMAT = html
BASIC_LDFLAGS += -municode
BASIC_LDFLAGS += -municode -mconsole
COMPAT_CFLAGS += -DNOGDI -Icompat -Icompat/win32
COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
COMPAT_OBJS += compat/mingw.o compat/winansi.o \
Expand Down
27 changes: 0 additions & 27 deletions git-compat-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,33 +281,6 @@ extern char *gitdirname(char *);

#ifndef NO_ICONV
#include <iconv.h>
#ifdef _MSC_VER
/*
* At least version 1.14.0.11 of the libiconv NuPkg at
* https://www.nuget.org/packages/libiconv/ does not set errno at all.
*
* Let's simulate it by testing whether we might have possibly run out of
* space.
*/
static inline size_t msvc_iconv(iconv_t conv,
const char **inpos, size_t *insize,
char **outpos, size_t *outsize)
{
int saved_errno = errno;
size_t res;

errno = ENOENT;
res = iconv(conv, inpos, insize, outpos, outsize);
if (!res)
errno = saved_errno;
else if (errno == ENOENT)
errno = *outsize < 16 ? E2BIG : 0;

return res;
}
#undef iconv
#define iconv msvc_iconv
#endif
#endif

#ifndef NO_OPENSSL
Expand Down
2 changes: 1 addition & 1 deletion http.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ static CURL *get_curl_handle(void)
curl_easy_setopt(result, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NO_REVOKE);
#else
warning("CURLSSLOPT_NO_REVOKE not applied to curl SSL options because\n"
"your curl version is too old (>= 7.44.0)");
"your curl version is too old (< 7.44.0)");
#endif
}

Expand Down
9 changes: 7 additions & 2 deletions t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,15 @@ export PERL_PATH SHELL_PATH

################################################################
# It appears that people try to run tests without building...
test -n "$GIT_TEST_INSTALLED" || "$GIT_BUILD_DIR/git$X" >/dev/null ||
"${GIT_TEST_INSTALLED:-$GIT_BUILD_DIR}/git$X" >/dev/null
if test $? != 1
then
echo >&2 'error: you do not seem to have built git yet.'
if test -n "$GIT_TEST_INSTALLED"
then
echo >&2 "error: there is no working Git at '$GIT_TEST_INSTALLED'"
else
echo >&2 'error: you do not seem to have built git yet.'
fi
exit 1
fi

Expand Down