summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--.mailmap3
-rw-r--r--Documentation/CodingGuidelines9
-rw-r--r--Documentation/RelNotes/2.0.2.txt19
-rw-r--r--Documentation/RelNotes/2.1.0.txt32
-rw-r--r--Documentation/git-replace.txt8
-rw-r--r--Documentation/git-rev-parse.txt4
-rw-r--r--Documentation/git-update-index.txt11
-rw-r--r--Documentation/git.txt3
-rw-r--r--Documentation/gitrepository-layout.txt4
-rw-r--r--Documentation/technical/api-hashmap.txt54
-rw-r--r--Documentation/technical/index-format.txt35
-rw-r--r--INSTALL14
-rw-r--r--Makefile28
-rw-r--r--builtin/add.c6
-rw-r--r--builtin/annotate.c12
-rw-r--r--builtin/apply.c17
-rw-r--r--builtin/blame.c2
-rw-r--r--builtin/checkout-index.c4
-rw-r--r--builtin/checkout.c12
-rw-r--r--builtin/clone.c7
-rw-r--r--builtin/commit.c33
-rw-r--r--builtin/describe.c13
-rw-r--r--builtin/index-pack.c29
-rw-r--r--builtin/log.c2
-rw-r--r--builtin/merge.c22
-rw-r--r--builtin/mv.c7
-rw-r--r--builtin/read-tree.c18
-rw-r--r--builtin/remote.c18
-rw-r--r--builtin/repack.c5
-rw-r--r--builtin/replace.c45
-rw-r--r--builtin/reset.c7
-rw-r--r--builtin/rev-parse.c10
-rw-r--r--builtin/rm.c7
-rw-r--r--builtin/tag.c14
-rw-r--r--builtin/update-index.c33
-rw-r--r--builtin/update-ref.c20
-rw-r--r--builtin/verify-pack.c7
-rw-r--r--cache-tree.c52
-rw-r--r--cache-tree.h6
-rw-r--r--cache.h33
-rw-r--r--commit.c20
-rw-r--r--commit.h5
-rw-r--r--compat/mingw.h3
-rw-r--r--connected.c6
-rw-r--r--contrib/subtree/Makefile8
-rw-r--r--daemon.c1
-rw-r--r--decorate.c5
-rw-r--r--diffcore-rename.c11
-rw-r--r--entry.c3
-rw-r--r--ewah/ewah_io.c4
-rw-r--r--ewah/ewok.h3
-rw-r--r--fsck.c22
-rw-r--r--git-compat-util.h43
-rwxr-xr-xgit-filter-branch.sh8
-rw-r--r--hashmap.c38
-rw-r--r--hashmap.h27
-rw-r--r--help.c5
-rw-r--r--http-push.c2
-rw-r--r--khash.h11
-rw-r--r--lockfile.c59
-rw-r--r--log-tree.c37
-rw-r--r--merge-recursive.c13
-rw-r--r--merge.c7
-rw-r--r--name-hash.c5
-rw-r--r--object.c13
-rw-r--r--pack-objects.c5
-rw-r--r--pathspec.c2
-rw-r--r--preload-index.c2
-rw-r--r--pretty.c2
-rw-r--r--read-cache.c272
-rw-r--r--refs.c182
-rw-r--r--refs.h53
-rw-r--r--remote-curl.c14
-rw-r--r--rerere.c7
-rw-r--r--resolve-undo.c2
-rw-r--r--sequencer.c16
-rw-r--r--sha1_file.c70
-rw-r--r--sha1_name.c2
-rw-r--r--split-index.c328
-rw-r--r--split-index.h35
-rw-r--r--strbuf.c9
-rw-r--r--strbuf.h9
-rw-r--r--submodule.c2
-rw-r--r--t/Makefile5
-rwxr-xr-xt/lib-submodule-update.sh680
-rwxr-xr-xt/t0011-hashmap.sh13
-rwxr-xr-xt/t0025-crlf-auto.sh122
-rwxr-xr-xt/t0027-auto-crlf.sh265
-rwxr-xr-xt/t1013-read-tree-submodule.sh12
-rwxr-xr-xt/t1700-split-index.sh194
-rwxr-xr-xt/t2013-checkout-submodule.sh5
-rwxr-xr-xt/t2104-update-index-skip-worktree.sh2
-rwxr-xr-xt/t3426-rebase-submodule.sh46
-rwxr-xr-xt/t3512-cherry-pick-submodule.sh13
-rwxr-xr-xt/t3513-revert-submodule.sh32
-rwxr-xr-xt/t3906-stash-submodule.sh24
-rwxr-xr-xt/t4137-apply-submodule.sh20
-rwxr-xr-xt/t4202-log.sh31
-rwxr-xr-xt/t4255-am-submodule.sh21
-rwxr-xr-xt/t5572-pull-submodule.sh45
-rwxr-xr-xt/t6023-merge-file.sh91
-rwxr-xr-xt/t6041-bisect-submodule.sh32
-rwxr-xr-xt/t7003-filter-branch.sh11
-rwxr-xr-xt/t7112-reset-submodule.sh14
-rwxr-xr-xt/t7613-merge-submodule.sh19
-rwxr-xr-xt/t7702-repack-cyclic-alternate.sh24
-rw-r--r--t/test-lib-functions.sh11
-rw-r--r--test-dump-cache-tree.c7
-rw-r--r--test-dump-split-index.c34
-rw-r--r--test-hashmap.c25
-rw-r--r--test-scrap-cache-tree.c5
-rw-r--r--unpack-trees.c18
-rw-r--r--url.c2
-rw-r--r--xdiff/xmerge.c4
115 files changed, 3240 insertions, 625 deletions
diff --git a/.gitignore b/.gitignore
index 42294e59a1..81e12c0621 100644
--- a/.gitignore
+++ b/.gitignore
@@ -165,6 +165,7 @@
/git-upload-archive
/git-upload-pack
/git-var
+/git-verify-commit
/git-verify-pack
/git-verify-tag
/git-web--browse
@@ -180,6 +181,7 @@
/test-date
/test-delta
/test-dump-cache-tree
+/test-dump-split-index
/test-scrap-cache-tree
/test-genrandom
/test-hashmap
diff --git a/.mailmap b/.mailmap
index 11057cbcdf..2edbeb5406 100644
--- a/.mailmap
+++ b/.mailmap
@@ -85,6 +85,7 @@ Jeff King <peff@peff.net> <peff@github.com>
Jeff Muizelaar <jmuizelaar@mozilla.com> <jeff@infidigm.net>
Jens Axboe <axboe@kernel.dk> <axboe@suse.de>
Jens Axboe <axboe@kernel.dk> <jens.axboe@oracle.com>
+Jens Lindström <jl@opera.com> Jens Lindstrom <jl@opera.com>
Jim Meyering <jim@meyering.net> <meyering@redhat.com>
Joachim Berdal Haga <cjhaga@fys.uio.no>
Johannes Schindelin <Johannes.Schindelin@gmx.de> <johannes.schindelin@gmx.de>
@@ -113,6 +114,7 @@ Karsten Blees <blees@dcon.de> <karsten.blees@dcon.de>
Karsten Blees <blees@dcon.de> <karsten.blees@gmail.com>
Kay Sievers <kay.sievers@vrfy.org> <kay.sievers@suse.de>
Kay Sievers <kay.sievers@vrfy.org> <kay@mam.(none)>
+Kazuki Saitoh <ksaitoh560@gmail.com> kazuki saitoh <ksaitoh560@gmail.com>
Keith Cascio <keith@CS.UCLA.EDU> <keith@cs.ucla.edu>
Kent Engstrom <kent@lysator.liu.se>
Kevin Leung <kevinlsk@gmail.com>
@@ -229,6 +231,7 @@ Tommi Virtanen <tv@debian.org> <tv@inoi.fi>
Tommy Thorn <tommy-git@thorn.ws> <tt1729@yahoo.com>
Tony Luck <tony.luck@intel.com>
Tor Arne Vestbø <torarnv@gmail.com> <tavestbo@trolltech.com>
+Trần Ngọc Quân <vnwildman@gmail.com> Tran Ngoc Quan <vnwildman@gmail.com>
Trent Piepho <tpiepho@gmail.com> <tpiepho@freescale.com>
Trent Piepho <tpiepho@gmail.com> <xyzzy@speakeasy.org>
Uwe Kleine-König <u.kleine-koenig@pengutronix.de> <Uwe.Kleine-Koenig@digi.com>
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines
index 4d90c77c7b..894546dd75 100644
--- a/Documentation/CodingGuidelines
+++ b/Documentation/CodingGuidelines
@@ -404,6 +404,15 @@ For Python scripts:
documentation for version 2.6 does not mention this prefix, it has
been supported since version 2.6.0.
+Error Messages
+
+ - Do not end error messages with a full stop.
+
+ - Do not capitalize ("unable to open %s", not "Unable to open %s")
+
+ - Say what the error is first ("cannot open %s", not "%s: cannot open")
+
+
Writing Documentation:
Most (if not all) of the documentation pages are written in the
diff --git a/Documentation/RelNotes/2.0.2.txt b/Documentation/RelNotes/2.0.2.txt
index c48c0aab27..8e8321b2ef 100644
--- a/Documentation/RelNotes/2.0.2.txt
+++ b/Documentation/RelNotes/2.0.2.txt
@@ -11,3 +11,22 @@ Git v2.0.2 Release Notes
* Recent updates to "git repack" started to duplicate objects that
are in packfiles marked with .keep flag into the new packfile by
mistake.
+
+ * "git clone -b brefs/tags/bar" would have mistakenly thought we were
+ following a single tag, even though it was a name of the branch,
+ because it incorrectly used strstr().
+
+ * "%G" (nothing after G) is an invalid pretty format specifier, but
+ the parser did not notice it as garbage.
+
+ * Code to avoid adding the same alternate object store twice was
+ subtly broken for a long time, but nobody seems to have noticed.
+
+ * A handful of code paths had to read the commit object more than
+ once when showing header fields that are usually not parsed. The
+ internal data structure to keep track of the contents of the commit
+ object has been updated to reduce the need for this double-reading,
+ and to allow the caller find the length of the object.
+
+ * During "git rebase --merge", a conflicted patch could not be
+ skipped with "--skip" if the next one also conflicted.
diff --git a/Documentation/RelNotes/2.1.0.txt b/Documentation/RelNotes/2.1.0.txt
index 3b65461c0b..eb6b3c3620 100644
--- a/Documentation/RelNotes/2.1.0.txt
+++ b/Documentation/RelNotes/2.1.0.txt
@@ -93,7 +93,8 @@ UI, Workflows & Features
users need to explicitly set the variable to 'true' if they want
to resurrect the now-ignored use case.
- * "git replace" learned the "--edit" subcommand.
+ * "git replace" learned the "--edit" subcommand to create a
+ replacement by editing an existing object.
* "git send-email" learned "--to-cover" and "--cc-cover" options, to
tell it to copy To: and Cc: headers found in the first input file
@@ -115,6 +116,11 @@ Performance, Internal Implementation, etc.
* Build procedure for 'subtree' (in contrib/) has been cleaned up.
+ * An experimental format to use two files (the base file and
+ incremental changes relative to it) to represent the index has been
+ introduced; this may reduce I/O cost of rewriting a large index
+ when only small part of the working tree changes.
<