Junio C Hamano | 2fa431b | 2008-12-28 01:26:23 | [diff] [blame] | 1 | GIT v1.6.2 Release Notes |
| 2 | ======================== |
| 3 | |
Junio C Hamano | e5bf6c1 | 2009-02-07 21:43:10 | [diff] [blame] | 4 | With the next major release, "git push" into a branch that is |
| 5 | currently checked out will be refused by default. You can choose |
| 6 | what should happen upon such a push by setting the configuration |
| 7 | variable receive.denyCurrentBranch in the receiving repository. |
| 8 | |
| 9 | To ease the transition plan, the receiving repository of such a |
| 10 | push running this release will issue a big warning when the |
| 11 | configuration variable is missing. Please refer to: |
| 12 | |
| 13 | http://thread.gmane.org/gmane.comp.version-control.git/107758/focus=108007 |
| 14 | |
| 15 | for more details on the transition plan. |
| 16 | |
| 17 | |
Junio C Hamano | 2fa431b | 2008-12-28 01:26:23 | [diff] [blame] | 18 | Updates since v1.6.1 |
| 19 | -------------------- |
| 20 | |
| 21 | (subsystems) |
| 22 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 23 | * git-svn updates. |
| 24 | |
| 25 | * gitweb updates, including a new patch view and RSS/Atom feed |
| 26 | improvements. |
| 27 | |
Junio C Hamano | 5be7f3b | 2009-02-11 08:34:07 | [diff] [blame^] | 28 | * (contrib/emacs) git.el now has commands for checking out a branch, |
| 29 | creating a branch, cherry-picking and reverting commits; vc-git.el |
| 30 | is not shipped with git anymore (it is part of official Emacs). |
Junio C Hamano | 2fa431b | 2008-12-28 01:26:23 | [diff] [blame] | 31 | |
| 32 | (performance) |
| 33 | |
Junio C Hamano | a3148f5 | 2009-01-14 08:49:57 | [diff] [blame] | 34 | * pack-objects autodetects the number of CPUs available and uses threaded |
| 35 | version. |
| 36 | |
Junio C Hamano | 2fa431b | 2008-12-28 01:26:23 | [diff] [blame] | 37 | (usability, bells and whistles) |
| 38 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 39 | * automatic typo correction works on aliases as well |
Junio C Hamano | a3148f5 | 2009-01-14 08:49:57 | [diff] [blame] | 40 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 41 | * @{-1} is a way to refer to the last branch you were on. This is |
| 42 | accepted not only where an object name is expected, but anywhere |
| 43 | a branch name is expected. E.g. "git branch --track mybranch @{-1}" |
| 44 | "git rev-parse --symbolic-full-name @{-1}". |
Junio C Hamano | a3148f5 | 2009-01-14 08:49:57 | [diff] [blame] | 45 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 46 | * "git add -p" learned 'g'oto action to jump directly to a hunk. |
Junio C Hamano | a3148f5 | 2009-01-14 08:49:57 | [diff] [blame] | 47 | |
Junio C Hamano | e5bf6c1 | 2009-02-07 21:43:10 | [diff] [blame] | 48 | * "git add -p" learned to find a hunk with given text with '/'. |
| 49 | |
| 50 | * "git add -p" optionally can be told to work with just the command letter |
| 51 | without Enter. |
| 52 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 53 | * when "git am" stops upon a patch that does not apply, it shows the |
| 54 | title of the offending patch. |
| 55 | |
| 56 | * "git am --directory=<dir>" and "git am --reject" passes these options |
| 57 | to underlying "git apply". |
| 58 | |
Junio C Hamano | e5bf6c1 | 2009-02-07 21:43:10 | [diff] [blame] | 59 | * "git am" learned --ignore-date option. |
| 60 | |
| 61 | * "git blame" aligns author names better when they are spelled in |
| 62 | non US-ASCII encoding. |
| 63 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 64 | * "git clone" now makes its best effort when cloning from an empty |
| 65 | repository to set up configuration variables to refer to the remote |
| 66 | repository. |
| 67 | |
| 68 | * "git checkout -" is a shorthand for "git checkout @{-1}". |
| 69 | |
| 70 | * "git cherry" defaults to whatever the current branch is tracking (if |
| 71 | exists) when the <upstream> argument is not given. |
| 72 | |
| 73 | * "git cvsserver" can be told not to add extra "via git-CVS emulator" to |
| 74 | the commit log message it serves via gitcvs.commitmsgannotation |
| 75 | configuration. |
| 76 | |
Junio C Hamano | e5bf6c1 | 2009-02-07 21:43:10 | [diff] [blame] | 77 | * "git cvsserver" learned to handle 'noop' command some CVS clients seem |
| 78 | to expect to work. |
| 79 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 80 | * "git diff" learned a new option --inter-hunk-context to coalesce close |
Junio C Hamano | a3148f5 | 2009-01-14 08:49:57 | [diff] [blame] | 81 | hunks together and show context between them. |
| 82 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 83 | * The definition of what constitutes a word for "git diff --color-words" |
| 84 | can be customized via gitattributes, command line or a configuration. |
| 85 | |
| 86 | * "git diff" learned --patience to run "patience diff" algorithm. |
| 87 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 88 | * "git filter-branch" learned --prune-empty option that discards commits |
Junio C Hamano | a3148f5 | 2009-01-14 08:49:57 | [diff] [blame] | 89 | that do not change the contents. |
| 90 | |
Junio C Hamano | e5bf6c1 | 2009-02-07 21:43:10 | [diff] [blame] | 91 | * "git fsck" now checks loose objects in alternate object stores, instead |
| 92 | of misreporting them as missing. |
| 93 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 94 | * "git grep -w" and "git grep" for fixed strings have been optimized. |
| 95 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 96 | * "git mergetool" learned -y(--no-prompt) option to disable prompting. |
Junio C Hamano | a3148f5 | 2009-01-14 08:49:57 | [diff] [blame] | 97 | |
Junio C Hamano | 543c5e0 | 2009-01-29 10:17:08 | [diff] [blame] | 98 | * "git rebase -i" can transplant a history down to root to elsewhere |
| 99 | with --root option. |
| 100 | |
| 101 | * "git reset --merge" is a new mode that works similar to the way |
Junio C Hamano | a3148f5 | 2009-01-14 08:49:57 | [diff] [blame] | 102 | "git checkout" switches branches, taking the local changes while |
| 103 | switching to another commit. |
| 104 | |
Junio C Hamano | e5bf6c1 | 2009-02-07 21:43:10 | [diff] [blame] | 105 | * "git tag" learned --contains that works the same way as the same option |
| 106 | from "git branch". |
Junio C Hamano | 2fa431b | 2008-12-28 01:26:23 | [diff] [blame] | 107 | |
| 108 | |
| 109 | Fixes since v1.6.1 |
| 110 | ------------------ |
| 111 | |
| 112 | All of the fixes in v1.6.1.X maintenance series are included in this |
| 113 | release, unless otherwise noted. |
| 114 | |
Junio C Hamano | e5bf6c1 | 2009-02-07 21:43:10 | [diff] [blame] | 115 | Here are fixes that this release has, but have not been backported to |
| 116 | v1.6.1.X series. |
| 117 | |
Junio C Hamano | a3148f5 | 2009-01-14 08:49:57 | [diff] [blame] | 118 | * "git-add sub/file" when sub is a submodule incorrectly added the path to |
| 119 | the superproject. |
| 120 | |
Junio C Hamano | e5bf6c1 | 2009-02-07 21:43:10 | [diff] [blame] | 121 | * "git bundle" did not exclude annotated tags even when a range given |
| 122 | from the command line wanted to. |
| 123 | |
| 124 | * "git filter-branch" unnecessarily refused to work when you had |
| 125 | checked out a different commit from what is recorded in the superproject |
| 126 | index in a submodule. |
| 127 | |
| 128 | * "git filter-branch" incorrectly tried to update a nonexistent work tree |
| 129 | at the end when it is run in a bare repository. |
| 130 | |
| 131 | * "git mergetool" used to ignore autocrlf and other attributes |
| 132 | based content rewriting. |
Junio C Hamano | a3148f5 | 2009-01-14 08:49:57 | [diff] [blame] | 133 | |
Junio C Hamano | a3148f5 | 2009-01-14 08:49:57 | [diff] [blame] | 134 | * branch switching and merges had a silly bug that did not validate |
| 135 | the correct directory when making sure an existing subdirectory is |
| 136 | clean. |
| 137 | |
Junio C Hamano | e5bf6c1 | 2009-02-07 21:43:10 | [diff] [blame] | 138 | * "git -p cmd" when cmd is not a built-in one left the display in funny state |
| 139 | when killed in the middle. |
| 140 | |
Junio C Hamano | 2fa431b | 2008-12-28 01:26:23 | [diff] [blame] | 141 | -- |
| 142 | exec >/var/tmp/1 |
Junio C Hamano | e5bf6c1 | 2009-02-07 21:43:10 | [diff] [blame] | 143 | O=v1.6.1.3-371-gc19923a |
Junio C Hamano | 2fa431b | 2008-12-28 01:26:23 | [diff] [blame] | 144 | echo O=$(git describe master) |
| 145 | git shortlog --no-merges $O..master ^maint |