Skip to contentSkip to conversation

What's in git.git

PATCH New Junio C Hamano 5 participants 16 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

It's been two weeks since the last "What's in" update, so here is the current status.

* The 'master' branch has these since the last announcement.

- Andy Whitcroft spotted a long-standing bug that prevented send-pack to deal correctly with a ref whose name is longer than 45 bytes, where we did not have to have any such limit.

- Jakub Narebski keeps working on gitweb, with help from Aneesh Kumar, Dennis Stosberg, Luben Tuikov, and Martin Waitz. There are a lot of clean-ups, including these notables:

- mechanism to selectively enable or disable features by site administrators and repository owners.
- snapshot and blame are now elective features using the above.
- gitweb no longer uses temporary files to generate diffs.

- Jakub also updated a few autoconf stuff.

- Christian Couder's GIT_TRACE updates.

- Franck Bui-Huu's clean-up to the code for "format-patch -s".

- git-daemon acquired a mechanism to selectively enable or disable features by site administrators and repository owners.

- pack-objects validates the data it copies from existing pack or new-style loose objects.

- Other small clean-ups, fixes and updates from Johannes Schindelin, Jonas Fonseca, Linus Torvalds, Martin Langhoff, Matthias Kestenholz, Sergey Vlasov and Shawn Pearce.

- gitk updates from Paul Mackerras.

* The 'next' branch, in addition, has these.

- Andy Whitcroft taught send-pack to use git-rev-list --stdin so that we do not have to be limited by the number of refs exec() command-line can hold.

- Pasky's Git.pm is on hold; it was discussed and agreed that Git.xs layer was a bit premature and is hurting the adoption of the entire series.

- Franck Bui-Huu and Rene Scharfe with a bit help from me added git-archive command to unify git-tar-tree/git-zip-tree and make them accessible over network.

- Jeff King rewrote run_status() shell function in git-commit and git-status in C.

- Per requests from the list, "git apply" automatically applies binary patches without having to be given --binary flag.

- Likewise, "git diff --binary" does not give full index line for non-binary part of the patch anymore.

- Pack-objects learned to run rev-list logic internally when given --revs parameter; the refs arguments you would normally give the upstream rev-list can be fed from its standard input, instead of usual list of objects.

- Pack-objects also knows how to pretend objects that are in named packs are unpacked. This would make easy to update repack to incrementally pack loose objects and recent "active" pack(s).

- I have a few patches to upload-pack that would help upload-pack when downloader has more roots than the uploader has, but this is frozen until I hear real-world feedback.

- unpack-objects learned a trick not to stop when fed a corrupt pack; instead it can make the best effort to recover from such an error that was detected.

* The 'pu' branch, in addition, has these.

- I have a wip to implement index, working tree and zero or more trees in parallel but I haven't looked at it for some time.

#1 lore raw
Quoted 3 lines · Junio C Hamano

- Andy Whitcroft taught send-pack to use git-rev-list --stdin so that we do not have to be limited by the number of refs exec() command-line can hold.

[...]

Quoted 4 lines

- Pack-objects learned to run rev-list logic internally when given --revs parameter; the refs arguments you would normally give the upstream rev-list can be fed from its standard input, instead of usual list of objects.

BTW. could you please document the above?

Perhaps those two options, --stdin to feed arguments from standard input, and -revs to run rev-list logic internally should be used whenever possible in all the git commands? This would allow to avoid forks and/or command line length limit.

In 'next' currently the following commands have --stdin implemented:
* git-update-index: --stdin to feed list of paths, one per line
* git-diff-tree: --stdin to loop over <tree-ish>, or pairs of <tree-ish>[*1*]
* git-hash-object: --stdin is equivalent of '-' special file
* git-http-fetch and git-local-fetch have some strange --stdin
* git-name-rev with --stdin functions as filter
* git-rev-list: --stdin to feed list of <commits>; it is not clear from the manpage if one can use ^<commit>, and commit related options and shortcuts like --not, <commit>..<commit>, <commit>...<commit>
And the following have --revs implemented
* git-pack-objects: --revs to provide arguments to rev-list from stdin, instead of list of objects. UNDOCUMENTED.

It would be nice if the following commands had --stdin or had it's --stdin usage extended:
* git-diff-tree: --stdin to allow to provide path limits, separated by ' -- ' from <tree-ish> or pair of <tree-ish> (does git-diff-tree allow for diff3-like behavior? then perhaps also three <tree-ish>)
* git-ls-tree: --stdin to loop over <tree-ish>, one tree per line.
* git-cat-object: --stdin to loop over objects, plus -z to change separator between records to NULL (or have it turned on by default).
For all "loop" --stdin, the output should begin with the line which was arguments, like git-diff-tree outputs first <tree-ish> used for diff.

I think it is quite often to use git-rev-list ...| git-diff-tree ... pipeline, so it might be worth to add --revs option to git-diff-tree. Or it might not.

P.S. does git-merge take -F <file> option?

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
#2 lore raw
Quoted 4 lines · Jakub Narebski

Perhaps those two options, --stdin to feed arguments from standard input, and -revs to run rev-list logic internally should be used whenever possible in all the git commands? This would allow to avoid forks and/or command line length limit.

Some make more sense than others, from usability point of view. It all depends on how much sense it makes to be able to run them on sequence of commits.

Quoted 5 lines

* git-rev-list: --stdin to feed list of <commits>; it is not clear from the manpage if one can use ^<commit>, and commit related options and shortcuts like --not, <commit>..<commit>, <commit>...<commit>
* git-pack-objects: --revs to provide arguments to rev-list from stdin, instead of list of objects. UNDOCUMENTED.

Time spent whining about it is better spent finding it out yourself (UTSL) and writing it I suspect. You'll learn how things actually work while doing so ;-).

Quoted 4 lines

It would be nice if the following commands had --stdin or had it's --stdin usage extended:
* git-diff-tree: --stdin to allow to provide path limits, separated by ' -- ' from <tree-ish> or pair of <tree-ish>

Something like this could be used to follow renames and do more interesting stuff. The caller would create a pair of pipes, throw first tree-pair at it, receive and examine the output, and decide what pathspec to use for the next one and continue. If you do not limit yourself to pathspec but e.g. allow -S to be also specified per invocation, then you can make it to follow line movements, not just renames. So in the bigger picture, I like what something like this can offer to the Porcelain writers.

It is a separate story if it is worth building that _into_ diff-tree itself. A sane way to see if it is is to start by writing a rough equivalent that is:

	#!/bin/sh
	while read stuff;
        do
		# Note: this really needs to do shell quote
        	git-diff-tree $stuff
		echo I am done with one record.
        done

Then, write such a driver program to drive it and see if per-line invocation of diff-tree is really the bottleneck. For any useful and interesting application of this pattern, I suspect the process that drives this diff-tree loop will have enough computation in it, and the only thing you are saving is the start-up cost of diff-tree (i.e. fork+exec). I am not sure how much of the bottleneck it would be in the while thing.

Quoted 1 line

* git-ls-tree: --stdin to loop over <tree-ish>, one tree per line.

Likewise. Also you would need to decide the record delimiter.

Quoted 2 lines

* git-cat-object: --stdin to loop over objects, plus -z to change separator between records to NULL (or have it turned on by default).

I would suggest TYPE SP BYTE-COUNT LF followed by payload instead. You cannot otherwise handle binary files with NUL (lesson of the day: NULL is a pointer, the character's name is NUL) in it. If you do not mind redundancy to help the consumer of this output, TYPE SP SHA-1 SP BYTE-COUNT LF followed by payload might even be a better choice.

Quoted 2 lines

For all "loop" --stdin, the output should begin with the line which was arguments, like git-diff-tree outputs first <tree-ish> used for diff.

That's something you cannot decide on a whim without knowing how they are used and what convention is the most useful. I suspect that single record delimiter without frill might turn out to be more useful. Parrotting the arguments means you would need to make sure the output format can easily parsable -- the issues include that you need deal with embedded newlines in them. To quote them in the output routine is easy but the consumer now needs to know they need to be dequoted.

Quoted 2 lines

I think it is quite often to use git-rev-list ...| git-diff-tree ... pipeline, so it might be worth to add --revs option to git-diff-tree.

Are you talking about "git rev-list | git diff-tree --stdin"???

Quoted 1 line

P.S. does git-merge take -F <file> option?

No; it is not a Porcelain so ease of typing is not its goal. You can say longhand: git-merge "cat $file" ... Merge messages are supposed to be mostly automated and short, so command line length limit is not much of an issue here.

#3 lore raw
Quoted 9 lines · Junio C Hamano
Quoted 5 lines

 * git-rev-list: --stdin to feed list of <commits>; it is not clear from the manpage if one can use ^<commit>, and commit related options and shortcuts like --not, <commit>..<commit>, <commit>...<commit>
 * git-pack-objects: --revs to provide arguments to rev-list from stdin, instead of list of objects. UNDOCUMENTED.

Time spent whining about it is better spent finding it out yourself (UTSL) and writing it I suspect.  You'll learn how things actually work while doing so ;-).

I still think it is better, easier and faster for someone who makes a new feature to document it too.

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
#4 lore raw

Dear diary, on Mon, Sep 11, 2006 at 11:06:03PM CEST, I got a letter where Jakub Narebski <[email protected]> said that...

Quoted 8 lines
Quoted 6 lines · Junio C Hamano
Quoted 5 lines

 * git-rev-list: --stdin to feed list of <commits>; it is not clear from the manpage if one can use ^<commit>, and commit related options and shortcuts like --not, <commit>..<commit>, <commit>...<commit>
 * git-pack-objects: --revs to provide arguments to rev-list from stdin, instead of list of objects. UNDOCUMENTED.

Quoted 6 lines
Quoted 3 lines

Time spent whining about it is better spent finding it out yourself (UTSL) and writing it I suspect.  You'll learn how things actually work while doing so ;-).

I still think it is better, easier and faster for someone who makes a new feature to document it too.

Especially since we _DON'T_ have good track record in other people quickly documenting newly introduced undocumented features.

Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Snow falling on Perl. White noise covering line noise.
Hides all the bugs too. -- J. Putnam
#5 lore raw
Quoted 8 lines · Petr Baudis

Dear diary, on Mon, Sep 11, 2006 at 11:06:03PM CEST, I got a letter where Jakub Narebski <[email protected]> said that...

Quoted 2 lines

I still think it is better, easier and faster for someone who makes a new feature to document it too.

Especially since we _DON'T_ have good track record in other people quickly documenting newly introduced undocumented features.

Well,...

I miss the days the lead of this project had _me_ as a contributor ;-).

#6 lore raw

PATCH 1/1 pack-objects: document --revs, --unpacked and --all.

In reply to Jakub Narebski

---

* Clear enough?

 Documentation/git-pack-objects.txt |   21 ++++++++++++++++++++-
 builtin-pack-objects.c             |    2 +-
 2 files changed, 21 insertions(+), 2 deletions(-)
Documentation/git-pack-objects.txt +20 -1
index 4991f88..d4661dd 100644
@@ -11,7 +11,7 @@ SYNOPSIS
 [verse]
 'git-pack-objects' [-q] [--no-reuse-delta] [--non-empty]
 	[--local] [--incremental] [--window=N] [--depth=N]
-	{--stdout | base-name} < object-list
+	[--revs [--unpacked | --all]*] [--stdout | base-name] < object-list
 
 
 DESCRIPTION
@@ -56,6 +56,24 @@ base-name::
 	Write the pack contents (what would have been written to
 	.pack file) out to the standard output.
 
+--revs::
+	Read the revision arguments from the standard input, instead of
+	individual object names.  The revision arguments are processed
+	the same way as gitlink:git-rev-list[1] with `--objects` flag
+	uses its `commit` arguments to build the list of objects it
+	outputs.  The objects on the resulting list are packed.
+
+--unpacked::
+	This implies `--revs`.  When processing the list of
+	revision arguments read from the standard input, limit
+	the objects packed to those that are not already packed.
+
+--all::
+	This implies `--revs`.  In addition to the list of
+	revision arguments read from the standard input, pretend
+	as if all refs under `$GIT_DIR/refs` are specifed to be
+	included.
+
 --window and --depth::
 	These two options affects how the objects contained in
 	the pack are stored using delta compression.  The
@@ -103,6 +121,7 @@ Documentation by Junio C Hamano
 
 See Also
 --------
+gitlink:git-rev-list[1]
 gitlink:git-repack[1]
 gitlink:git-prune-packed[1]
 
builtin-pack-objects.c +1 -1
index 753dd9a..8d7a120 100644
@@ -15,7 +15,7 @@ #include "list-objects.h"
 #include <sys/time.h>
 #include <signal.h>
 
-static const char pack_usage[] = "git-pack-objects [-q] [--no-reuse-delta] [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] {--stdout | base-name} [--revs [--unpacked | --all]* <ref-list | <object-list]";
+static const char pack_usage[] = "git-pack-objects [-q] [--no-reuse-delta] [--non-empty] [--local] [--incremental] [--window=N] [--depth=N] [--revs [--unpacked | --all]*] [--stdout | base-name] <ref-list | <object-list]";
 
 struct object_entry {
 	unsigned char sha1[20];
Signature · 1 line
1.4.2.g61af0
#7 lore raw
In reply to Junio C Hamano

* The 'maint' branch has this since the last announcement (v1.4.2.1).

- Liu Yubao fixed duplicate xmalloc in builtin-add.

- "git-am --skip" incorrectly insisted that its standard input to be connected to a tty. Fixed.

* The 'master' branch has these since the last announcement.

- http-fetch from a repository that uses alternates to borrow from neighbouring repositories were quite broken for some time now. This has been fixed (this fix is also in v1.4.2.1).

- Andy Whitcroft taught send-pack to use git-rev-list --stdin so that we can deal with repositories with massive number of refs more efficiently.

- A handful clean-ups, fixes and documentation updates by Christian Couder, Dmitry V. Levin, Jonas Fonseca and Linus.

- Franck Bui-Huu and Rene Scharfe added 'git-archive' command, that will eventually supersede 'git-tar-tree' and 'git-zip-tree'.

I think zip-tree can be deprecated without hurting too many users, judging from its short existence, but I suspect that deprecating tar-tree needs to be done very carefully. Perhaps we should drop "tar-tree --remote" and "upload-tar", but keep tar-tree but make it internally a synonym for "archive --format=tar". We should also update our toplevel Makefile to use git-archive.

- Jakub Narebski continues improving gitweb with help from Martin Waitz, and Matthias Lederhofer.

We really need some test suites for gitweb.

- Jeff King rewrote run_status() shell function used in git-commit and git-status in C, and made it colorful while he was at it. Johannes Schindelin taught it --untracked.

- unpack-objects with "-r" now makes the best effort to recover objects from a corrupt packfile.

- apply does not need --binary anymore to take a binary patch.

- diff --binary does not produce full 40-byte index lines unless necessary.

- pack-objects learned --revs option, which lets it not to rely on rev-list. Instead of taking the list of objects to pack from the standard input, it can read the list of rev parameters and run rev-list logic internally.

- rev-list learned --unpacked=<existing pack> option.

- Linus taught git-grep "-h" option to suppress filename output.

- "git-am --skip" incorrectly insisted that its standard input to be connected to a tty. Fixed.

- "git-apply" learned to handle --unified=0 patches more gracefully by allowing some sanity checks that cannot be done with such patches to be disabled.

- Sasha Khapyorsky noticed that http-fetch commit walker can almost deal with ftp:// transport already, and added minimum updates to support it.

* The 'next' branch, in addition, has these.

- Git.pm is on hold, waiting for stripping out Git.xs part before going forward.

- Linus introduced packed refs and taught the core about them. Christian Couder taught git-branch about them and Jeff King taught wt-status about it.

There are still some things that are broken which need to be addressed before this series is pushed out to "master". I offhand know of these two but there probably are others:

- "git branch -d" does not work.
- "git ls-remote rsync://" does not work.

- An experimental git-for-each-ref command to help language bindings to get information on many refs at once. Hopefully Jakub can teach gitweb to use it to speed things up.

* The 'pu' branch, in addition, has these.

- Jon Loeliger's git-daemon virtual hosting patch; this will be dropped and replaced with his updated version.

- "git log --author=foo", "git log --grep=pattern" support.

- I haven't started cleaning up the para-walk changes yet; they are still in the form of a messy 10-series patchset. When I find time I'd like to rewrite diff-index with it and see how well it performs.

#8 lore raw
Quoted 5 lines · Junio C Hamano

- Franck Bui-Huu and Rene Scharfe added 'git-archive' command, that will eventually supersede 'git-tar-tree' and 'git-zip-tree'.

I still have one issue, but haven't found out the solution yet. Actually I even don't know if its related to 'archive/upload-archive' commands. Could someone give it a try to tell me if he can at least reproduce it ?

Here is the scenario (git-daemon and git-archive are executed on the same machine):

git-daemon is started with the following command:

$  git daemon --verbose --syslog --export-all  \
   --enable=upload-archive --base-path=/home/fbuihuu/tmp/ --reuseaddr

git-archive is run to archive a small repo located in ~/tmp/test-git. This is done in an endless loop:

$ while true; do
Quoted 2 lines

git archive --format=tar --remote=git://localhost/test-git HEAD | tar tf - done

a
b
a
b
a
b
a
b
a
b
a
b
a
b # stuck !!!

So after a couple of loops, git-archive is stuck waiting for git-daemon but daemon seems to be stuck somewhere.

Syslog shows something interesting here:

[...]

Sep 18 16:11:42 25-fbuihuu git-daemon: [16549] Connection from 127.0.0.1:30373
Sep 18 16:11:42 25-fbuihuu git-daemon: [16549] Extended attributes (16 bytes) exist <host=localhost>
Sep 18 16:11:42 25-fbuihuu git-daemon: [16549] Request upload-archive for '/test-git2'
Sep 18 16:11:42 25-fbuihuu git-upload-archive: finished
Sep 18 16:11:42 25-fbuihuu git-daemon: [16549] Disconnected
Sep 18 16:11:42 25-fbuihuu git-daemon: [16553] Connection from 127.0.0.1:30629
Sep 18 16:11:42 25-fbuihuu git-daemon: [16553] Extended attributes (16 bytes) exist <host=localhost>
Sep 18 16:11:42 25-fbuihuu git-daemon: [16553] Request upload-archive for '/test-git2'
Sep 18 16:11:42 25-fbuihuu git-upload-archive: finished

[END]

It looks like git-daemon never receives the SIGCHLD signal that is normally sent by upload-archive once it has finished its job.

Franck

#9 lore raw
In reply to Junio C Hamano
Quoted 3 lines · Junio C Hamano

  - An experimental git-for-each-ref command to help language bindings to get information on many refs at once.  Hopefully Jakub can teach gitweb to use it to speed things up.

I use 'origin' (or 'next') version of gitweb, while using _released_ version of git (git-core-1.4.2.1-1.i386.rpm). So at least for now I wouldn't be able to _test_ the git-for-each-ref.

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
#10 lore raw
Quoted 9 lines · Jakub Narebski
Quoted 3 lines · Junio C Hamano

  - An experimental git-for-each-ref command to help language bindings to get information on many refs at once.  Hopefully Jakub can teach gitweb to use it to speed things up.

I use 'origin' (or 'next') version of gitweb, while using _released_ version of git (git-core-1.4.2.1-1.i386.rpm). So at least for now I wouldn't be able to _test_ the git-for-each-ref.

That's not a good excuse, though. It means you cannot propose new core-side support that only gitweb would benefit from initially, since we will not add new stuff to the core that does not have real users, and new stuff in the core must be cooked in "next" before it is proven to be useful and correct.

#11 lore raw
Quoted 12 lines · Junio C Hamano
Quoted 9 lines · Jakub Narebski
Quoted 3 lines · Junio C Hamano

  - An experimental git-for-each-ref command to help language bindings to get information on many refs at once.  Hopefully Jakub can teach gitweb to use it to speed things up.

I use 'origin' (or 'next') version of gitweb, while using _released_ version of git (git-core-1.4.2.1-1.i386.rpm). So at least for now I wouldn't be able to _test_ the git-for-each-ref.

Quoted 5 lines

That's not a good excuse, though. It means you cannot propose new core-side support that only gitweb would benefit from initially, since we will not add new stuff to the core that does not have real users, and new stuff in the core must be cooked in "next" before it is proven to be useful and correct.

But this also means that if I were for example to use git-for-each-ref in gitweb, I couldn't _test_ if it works. Ah, well, if you can live with PATCH/RFC... But I'd rather wait for git-for-each-ref in _released_ version of git.

On the other side as you said the true test for new core stuff is to use it. Perhaps someone who runs 'master' or 'next' version of git...

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
#12 lore raw

Hi,

Quoted 20 lines · Jakub Narebski
Quoted 12 lines · Junio C Hamano
Quoted 9 lines · Jakub Narebski
Quoted 3 lines · Junio C Hamano

  - An experimental git-for-each-ref command to help language bindings to get information on many refs at once.  Hopefully Jakub can teach gitweb to use it to speed things up.

I use 'origin' (or 'next') version of gitweb, while using _released_ version of git (git-core-1.4.2.1-1.i386.rpm). So at least for now I wouldn't be able to _test_ the git-for-each-ref.

Quoted 5 lines

That's not a good excuse, though. It means you cannot propose new core-side support that only gitweb would benefit from initially, since we will not add new stuff to the core that does not have real users, and new stuff in the core must be cooked in "next" before it is proven to be useful and correct.

Quoted 4 lines

But this also means that if I were for example to use git-for-each-ref in gitweb, I couldn't _test_ if it works. Ah, well, if you can live with PATCH/RFC... But I'd rather wait for git-for-each-ref in _released_ version of git.

Why not set up a testing directory, where you use both gitweb _and_ git from next? It is easy...

Ciao,
Dscho

#13 lore raw
Quoted 6 lines · Johannes Schindelin
Quoted 6 lines
Quoted 5 lines

That's not a good excuse, though. It means you cannot propose new core-side support that only gitweb would benefit from initially, since we will not add new stuff to the core that does not have real users, and new stuff in the core must be cooked in "next" before it is proven to be useful and correct.

Quoted 7 lines
Quoted 4 lines

But this also means that if I were for example to use git-for-each-ref in gitweb, I couldn't _test_ if it works. Ah, well, if you can live with PATCH/RFC... But I'd rather wait for git-for-each-ref in _released_ version of git.

Why not set up a testing directory, where you use both gitweb _and_ git from next? It is easy...

That's Ok; it means that he just cannot work on certain things. It's not like we take gitweb patch only from Jakub, so it is not the end of the world either ;-).

Also it is handy to have somebody who sticks to things that are available in master to catch breakage we might accidentally cause by Porcelainish commands jumping the gun before core-side change hits the master branch.

#14 lore raw
In reply to Junio C Hamano
Quoted 1 line · Junio C Hamano

    We really need some test suites for gitweb.

Could we use the git.git repository itself for testing gitweb? At least checking if there are any errors or warnings?

The problem with test suite is that you really need _two_ tests; first if there are any errors or warnings, then if page looks like it should. The first can be done by simply running gitweb with at least the following enviromental variables set:
export GATEWAY_INTERFACE="CGI/1.1"
export HTTP_ACCEPT="*/*"
export REQUEST_METHOD="GET"
export QUERY_STRING=""$1""
The second should be done by looking at gitweb output.

Signature · 3 lines
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
#15 lore raw
In reply to Junio C Hamano

* The 'maint' branch has these fixes since the last announcement.

t3403-rebase-skip failed when run while its standard input is connected to /dev/null. It turns out that an earlier safety check to prevent git-am to be fed a new patch while there is a leftover .dotest/ directory was incorrect. Fixed.

There was an unnecessary xmalloc() in builtin-add. Removed.

* The 'master' branch has these since the last announcement.

Recent change to http-fetch.c did not play well with older curl releases. Fixed.

Clean-up of gitweb continues. Notably, generation the summary page makes fewer call to git executable.

Receive-pack has an added safety check that lets the repository owner to forbid non-fast-forward push into a shared repository by setting receive.denyNonFastforwards configuration variable.

Output from git-describe can now be used as an abbreviated object name.

git-resolve is now officially deprecated. The next "master" release (1.4.3) will ship with a version that gives an annoying "deprecation warning" message, and the command will be removed from the release after that.

There was a build problem in upload-archive on OpenBSD. Fixed.

git-zip-tree is now superseded by "git-archive --format=zip".

Miscellaneous clean-ups and documentation updates.

* The 'next' branch, in addition, has these.

A new command git-show-ref was added to list and verify local references.

A new command git-for-each-ref was added to help Porcelains to make smaller number of calls to git binary to obtain summary information for refs.

cvsimport was updated to use git-for-each-ref.

Git.pm topic lost Git.xs for now.

The resolve_ref() internal API was straightened out to work solely on refname (i.e. string that begins with "refs/"), instead of pathnames. To deal with many refs efficiently, there is now a "packed-ref" format where many refs are stored in a single flat file instead of the traditional one-ref-per-file format.

git-diff --color highlights trailing whitespaces and SP followed by TAB in indentation as common whitespace errors.

git-daemon now has a virtual host support.

upload-pack stops the fetch-pack on the other side when downloader has more roots than uploader; otherwise the downloader would send "have" from a development line that the uploader does not know about til its root.

   git-log learned --author=, --committer= and --grep= options
   to filter commits.

pack-objects now creates version 3 packs; this allows a copy of larger block of data to be expressed.

Per branch configuration items branch."branchname".remote can specify what remotes/ file instead of usual "origin" should be used when no option is given to "git fetch" while on the named branch. Similarly, branch."branchname".merge can specify which remote branches to be merged while on the named branch.

git-svnimport learned a new trick to parse log message for
Signed-off-by: lines and pick authorship information from there. I haven't heard Ack nor Nack from any subversion users, but we will hopefully hear somebody scream if it breaks things after pushing it out to "master".

* The 'pu' branch, in addition, has these.

git-apply --whitespace learned to notice SP before TAB in indent as a common whitespace error, in addition to the trailing whitespaces it already knew about.

git-diff output is unfriendly to GNU patch when the filename contained a SP. Appending a TAB after filename in this case works the problem around. However, git-apply needs to learn about it as well, so it did.

There is one new data type in the pack format that records delta base object by offset in the stream instead of 20-byte object name. This reduces the resulting packsize by 3 to 5%.

One additional test for git-branch is in, but the current implementation of git-branch fails it.