Go to file
Jeff King 9b06bee7aa [PATCH 3/9] credential: parse URL without host as empty host, not unset
We may feed a URL like "cert:///path/to/cert.pem" into the credential
machinery to get the key for a client-side certificate. That
credential has no hostname field, which is about to be disallowed (to
avoid confusion with protocols where a helper _would_ expect a
hostname).

This means as of the next patch, credential helpers won't work for
unlocking certs. Let's fix that by doing two things:

  - when we parse a url with an empty host, set the host field to the
    empty string (asking only to match stored entries with an empty
    host) rather than NULL (asking to match _any_ host).

  - when we build a cert:// credential by hand, similarly assign an
    empty string

It's the latter that is more likely to impact real users in practice,
since it's what's used for http connections. But we don't have good
infrastructure to test it.

The url-parsing version will help anybody using git-credential in a
script, and is easy to test.

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>

Gbp-Pq: Name CVE-2020-11008-3.patch
2022-06-22 11:54:58 +08:00
.github Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
Documentation Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
block-sha1 Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
builtin Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
ci Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
compat Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
contrib Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
debian Import Debian changes 1:2.25.1-ok1 2022-06-22 11:54:36 +08:00
ewah Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-gui Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
gitk-git Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
gitweb Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
mergetools Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
negotiator Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
perl Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
po Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
ppc Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
refs Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sha1dc Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sha256 Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
t [PATCH 3/9] credential: parse URL without host as empty host, not unset 2022-06-22 11:54:58 +08:00
templates Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
trace2 Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
vcs-svn Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
xdiff Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
.cirrus.yml Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
.clang-format Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
.editorconfig Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
.gitattributes Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
.gitignore Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
.gitmodules Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
.mailmap Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
.travis.yml Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
.tsan-suppressions Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
CODE_OF_CONDUCT.md Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
COPYING Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
GIT-VERSION-GEN Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
INSTALL Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
LGPL-2.1 Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
Makefile Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
README.md Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
RelNotes Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
abspath.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
aclocal.m4 Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
add-interactive.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
add-interactive.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
add-patch.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
advice.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
advice.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
alias.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
alias.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
alloc.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
alloc.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
apply.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
apply.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
archive-tar.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
archive-zip.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
archive.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
archive.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
argv-array.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
argv-array.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
attr.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
attr.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
azure-pipelines.yml Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
banned.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
base85.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
bisect.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
bisect.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
blame.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
blame.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
blob.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
blob.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
branch.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
branch.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
builtin.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
bulk-checkin.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
bulk-checkin.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
bundle.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
bundle.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
cache-tree.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
cache-tree.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
cache.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
chdir-notify.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
chdir-notify.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
check-builtins.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
check_bindir Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
checkout.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
checkout.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
color.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
color.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
column.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
column.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
combine-diff.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
command-list.txt Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
commit-graph.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
commit-graph.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
commit-reach.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
commit-reach.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
commit-slab-decl.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
commit-slab-impl.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
commit-slab.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
commit.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
commit.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
common-main.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
config.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
config.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
config.mak.dev Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
config.mak.in Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
config.mak.uname Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
configure Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
configure.ac Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
connect.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
connect.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
connected.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
connected.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
convert.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
convert.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
copy.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
credential-cache--daemon.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
credential-cache.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
credential-store.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
credential.c [PATCH 3/9] credential: parse URL without host as empty host, not unset 2022-06-22 11:54:58 +08:00
credential.h CVE-2020-5260-3 2022-06-22 11:54:58 +08:00
csum-file.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
csum-file.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
ctype.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
daemon.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
date.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
decorate.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
decorate.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
delta-islands.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
delta-islands.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
delta.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
detect-compiler Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
diff-delta.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
diff-lib.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
diff-no-index.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
diff.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
diff.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
diffcore-break.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
diffcore-delta.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
diffcore-order.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
diffcore-pickaxe.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
diffcore-rename.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
diffcore.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
dir-iterator.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
dir-iterator.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
dir.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
dir.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
editor.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
entry.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
environment.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
exec-cmd.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
exec-cmd.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fast-import.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fetch-negotiator.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fetch-negotiator.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fetch-pack.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fetch-pack.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fmt-merge-msg.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fsck.c CVE-2020-5260-4 2022-06-22 11:54:58 +08:00
fsck.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fsmonitor.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fsmonitor.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fuzz-commit-graph.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fuzz-pack-headers.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
fuzz-pack-idx.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
generate-cmdlist.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
gettext.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
gettext.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-add--interactive.perl Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-archimport.perl Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-bisect.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-compat-util.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-cvsexportcommit.perl Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-cvsimport.perl Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-cvsserver.perl Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-difftool--helper.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-filter-branch.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-instaweb.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-legacy-stash.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-merge-octopus.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-merge-one-file.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-merge-resolve.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-mergetool--lib.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-mergetool.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-p4.py Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-parse-remote.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-quiltimport.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-rebase--preserve-merges.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-request-pull.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-send-email.perl Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-sh-i18n.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-sh-setup.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-submodule.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-svn.perl Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git-web--browse.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
git.rc Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
gpg-interface.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
gpg-interface.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
graph.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
graph.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
grep.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
grep.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
hash.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
hashmap.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
hashmap.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
help.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
help.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
hex.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
http-backend.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
http-fetch.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
http-push.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
http-walker.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
http.c [PATCH 3/9] credential: parse URL without host as empty host, not unset 2022-06-22 11:54:58 +08:00
http.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
ident.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
imap-send.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
interdiff.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
interdiff.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
iterator.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
json-writer.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
json-writer.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
khash.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
kwset.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
kwset.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
levenshtein.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
levenshtein.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
line-log.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
line-log.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
line-range.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
line-range.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
linear-assignment.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
linear-assignment.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
list-objects-filter-options.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
list-objects-filter-options.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
list-objects-filter.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
list-objects-filter.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
list-objects.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
list-objects.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
list.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
ll-merge.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
ll-merge.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
lockfile.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
lockfile.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
log-tree.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
log-tree.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
ls-refs.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
ls-refs.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
mailinfo.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
mailinfo.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
mailmap.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
mailmap.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
match-trees.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
mem-pool.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
mem-pool.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
merge-blobs.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
merge-blobs.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
merge-recursive.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
merge-recursive.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
merge.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
mergesort.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
mergesort.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
midx.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
midx.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
name-hash.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
notes-cache.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
notes-cache.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
notes-merge.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
notes-merge.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
notes-utils.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
notes-utils.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
notes.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
notes.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
object-store.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
object.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
object.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
oidmap.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
oidmap.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
oidset.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
oidset.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pack-bitmap-write.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pack-bitmap.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pack-bitmap.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pack-check.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pack-objects.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pack-objects.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pack-revindex.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pack-revindex.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pack-write.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pack.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
packfile.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
packfile.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pager.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
parse-options-cb.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
parse-options.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
parse-options.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
patch-delta.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
patch-ids.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
patch-ids.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
path.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
path.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pathspec.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pathspec.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pkt-line.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pkt-line.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
preload-index.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pretty.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
pretty.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
prio-queue.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
prio-queue.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
progress.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
progress.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
promisor-remote.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
promisor-remote.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
prompt.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
prompt.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
protocol.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
protocol.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
quote.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
quote.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
range-diff.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
range-diff.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
reachable.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
reachable.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
read-cache.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
rebase-interactive.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
rebase-interactive.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
ref-filter.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
ref-filter.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
reflog-walk.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
reflog-walk.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
refs.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
refs.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
refspec.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
refspec.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
remote-curl.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
remote-testsvn.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
remote.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
remote.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
replace-object.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
replace-object.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
repo-settings.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
repository.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
repository.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
rerere.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
rerere.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
resolve-undo.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
resolve-undo.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
revision.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
revision.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
run-command.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
run-command.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
send-pack.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
send-pack.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sequencer.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sequencer.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
serve.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
serve.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
server-info.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
setup.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sh-i18n--envsubst.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sha1-array.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sha1-array.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sha1-file.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sha1-lookup.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sha1-lookup.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sha1-name.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sha1dc_git.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sha1dc_git.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
shallow.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
shell.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
shortlog.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sideband.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sideband.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sigchain.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sigchain.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
split-index.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
split-index.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
stable-qsort.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
strbuf.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
strbuf.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
streaming.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
streaming.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
string-list.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
string-list.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sub-process.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
sub-process.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
submodule-config.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
submodule-config.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
submodule.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
submodule.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
symlinks.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tag.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tag.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tar.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tempfile.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tempfile.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
thread-utils.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
thread-utils.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tmp-objdir.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tmp-objdir.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
trace.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
trace.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
trace2.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
trace2.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
trailer.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
trailer.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
transport-helper.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
transport-internal.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
transport.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
transport.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tree-diff.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tree-walk.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tree-walk.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tree.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
tree.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
unicode-width.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
unimplemented.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
unix-socket.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
unix-socket.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
unpack-trees.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
unpack-trees.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
upload-pack.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
upload-pack.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
url.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
url.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
urlmatch.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
urlmatch.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
usage.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
userdiff.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
userdiff.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
utf8.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
utf8.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
varint.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
varint.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
version Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
version.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
version.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
versioncmp.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
walker.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
walker.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
wildmatch.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
wildmatch.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
worktree.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
worktree.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
wrap-for-bin.sh Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
wrapper.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
write-or-die.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
ws.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
wt-status.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
wt-status.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
xdiff-interface.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
xdiff-interface.h Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00
zlib.c Import Upstream version 2.25.1 2022-06-22 11:54:36 +08:00

README.md

Build Status

Git - fast, scalable, distributed revision control system

Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals.

Git is an Open Source project covered by the GNU General Public License version 2 (some parts of it are under different licenses, compatible with the GPLv2). It was originally written by Linus Torvalds with help of a group of hackers around the net.

Please read the file INSTALL for installation instructions.

Many Git online resources are accessible from https://git-scm.com/ including full documentation and Git related tools.

See Documentation/gittutorial.txt to get started, then see Documentation/giteveryday.txt for a useful minimum set of commands, and Documentation/git-<commandname>.txt for documentation of each command. If git has been correctly installed, then the tutorial can also be read with man gittutorial or git help tutorial, and the documentation of each command with man git-<commandname> or git help <commandname>.

CVS users may also want to read Documentation/gitcvs-migration.txt (man gitcvs-migration or git help cvs-migration if git is installed).

The user discussion and development of Git take place on the Git mailing list -- everyone is welcome to post bug reports, feature requests, comments and patches to git@vger.kernel.org (read Documentation/SubmittingPatches for instructions on patch submission). To subscribe to the list, send an email with just "subscribe git" in the body to majordomo@vger.kernel.org. The mailing list archives are available at https://lore.kernel.org/git/, http://marc.info/?l=git and other archival sites.

Issues which are security relevant should be disclosed privately to the Git Security mailing list git-security@googlegroups.com.

The maintainer frequently sends the "What's cooking" reports that list the current status of various development topics to the mailing list. The discussion following them give a good reference for project status, development direction and remaining tasks.

The name "git" was given by Linus Torvalds when he wrote the very first version. He described the tool as "the stupid content tracker" and the name as (depending on your mood):

  • random three-letter combination that is pronounceable, and not actually used by any common UNIX command. The fact that it is a mispronunciation of "get" may or may not be relevant.
  • stupid. contemptible and despicable. simple. Take your pick from the dictionary of slang.
  • "global information tracker": you're in a good mood, and it actually works for you. Angels sing, and a light suddenly fills the room.
  • "goddamn idiotic truckload of sh*t": when it breaks