Sync with maint

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Junio C Hamano 2014-12-22 12:43:48 -08:00
commit bbcefffcea
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,33 @@
Git v2.2.2 Release Notes
========================

Fixes since v2.2.1
------------------

* "git checkout $treeish $path", when $path in the index and the
working tree already matched what is in $treeish at the $path,
still overwrote the $path unnecessarily.

* "git config --get-color" did not parse its command line arguments
carefully.

* open() emulated on Windows platforms did not give EISDIR upon
an attempt to open a directory for writing.

* A few code paths used abs() when they should have used labs() on
long integers.

* "gitweb" used to depend on a behaviour recent CGI.pm deprecated.

* "git init" (hence "git clone") initialized the per-repository
configuration file .git/config with x-bit by mistake.

* Git 2.0 was supposed to make the "simple" mode for the default of
"git push", but it didn't.

* "Everyday" document had a broken link.

* The build procedure did not bother fixing perl and python scripts
when NO_PERL and NO_PYTHON build-time configuration changed.

Also contains typofixes, documentation updates and trivial code clean-ups.

View File

@ -321,7 +321,7 @@ static void print_highlight_menu_stuff(struct menu_stuff *stuff, int **chosen)

switch (stuff->type) {
default:
die("Bad type of menu_staff when print menu");
die("Bad type of menu_stuff when print menu");
case MENU_STUFF_TYPE_MENU_ITEM:
menu_item = (struct menu_item *)stuff->stuff;
for (i = 0; i < stuff->nr; i++, menu_item++) {