2009-12-26 22:11:46 +00:00
|
|
|
Git v1.7.0 Release Notes
|
|
|
|
========================
|
|
|
|
|
|
|
|
Notes on behaviour change
|
|
|
|
-------------------------
|
|
|
|
|
2010-02-12 09:47:53 +00:00
|
|
|
* "git push" into a branch that is currently checked out (i.e. pointed at by
|
2009-12-26 22:11:46 +00:00
|
|
|
HEAD in a repository that is not bare) is refused by default.
|
|
|
|
|
|
|
|
Similarly, "git push $there :$killed" to delete the branch $killed
|
|
|
|
in a remote repository $there, when $killed branch is the current
|
|
|
|
branch pointed at by its HEAD, will be refused by default.
|
|
|
|
|
|
|
|
Setting the configuration variables receive.denyCurrentBranch and
|
|
|
|
receive.denyDeleteCurrent to 'ignore' in the receiving repository
|
|
|
|
can be used to override these safety features.
|
|
|
|
|
|
|
|
* "git send-email" does not make deep threads by default when sending a
|
|
|
|
patch series with more than two messages. All messages will be sent
|
|
|
|
as a reply to the first message, i.e. cover letter.
|
|
|
|
|
2010-02-12 09:47:53 +00:00
|
|
|
It has been possible already to configure send-email to send "shallow thread"
|
2009-12-26 22:11:46 +00:00
|
|
|
by setting sendemail.chainreplyto configuration variable to false. The
|
|
|
|
only thing this release does is to change the default when you haven't
|
|
|
|
configured that variable.
|
|
|
|
|
|
|
|
* "git status" is not "git commit --dry-run" anymore. This change does
|
2010-01-31 20:20:30 +00:00
|
|
|
not affect you if you run the command without argument.
|
2009-12-26 22:11:46 +00:00
|
|
|
|
|
|
|
* "git diff" traditionally treated various "ignore whitespace" options
|
|
|
|
only as a way to filter the patch output. "git diff --exit-code -b"
|
|
|
|
exited with non-zero status even if all changes were about changing the
|
2010-02-12 09:47:53 +00:00
|
|
|
amount of whitespace and nothing else; and "git diff -b" showed the
|
2009-12-26 22:11:46 +00:00
|
|
|
"diff --git" header line for such a change without patch text.
|
|
|
|
|
|
|
|
In this release, the "ignore whitespaces" options affect the semantics
|
|
|
|
of the diff operation. A change that does not affect anything but
|
|
|
|
whitespaces is reported with zero exit status when run with
|
|
|
|
--exit-code, and there is no "diff --git" header for such a change.
|
|
|
|
|
2010-02-04 03:48:28 +00:00
|
|
|
* External diff and textconv helpers are now executed using the shell.
|
2010-01-31 09:14:46 +00:00
|
|
|
This makes them consistent with other programs executed by git, and
|
|
|
|
allows you to pass command-line parameters to the helpers. Any helper
|
|
|
|
paths containing spaces or other metacharacters now need to be
|
|
|
|
shell-quoted. The affected helpers are GIT_EXTERNAL_DIFF in the
|
|
|
|
environment, and diff.*.command and diff.*.textconv in the config
|
|
|
|
file.
|
2009-12-26 22:11:46 +00:00
|
|
|
|
2010-02-04 19:10:44 +00:00
|
|
|
* The --max-pack-size argument to 'git repack', 'git pack-objects', and
|
|
|
|
'git fast-import' was assuming the provided size to be expressed in MiB,
|
|
|
|
unlike the corresponding config variable and other similar options accepting
|
|
|
|
a size value. It is now expecting a size expressed in bytes, with a possible
|
2010-02-04 03:48:28 +00:00
|
|
|
unit suffix of 'k', 'm', or 'g'.
|
|
|
|
|
2009-12-26 22:11:46 +00:00
|
|
|
Updates since v1.6.6
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
(subsystems)
|
|
|
|
|
2010-01-18 00:47:48 +00:00
|
|
|
* "git fast-import" updates; adds "option" and "feature" to detect the
|
|
|
|
mismatch between fast-import and the frontends that produce the input
|
|
|
|
stream.
|
|
|
|
|
2010-01-30 07:38:31 +00:00
|
|
|
* "git svn" support of subversion "merge tickets" and miscellaneous fixes.
|
|
|
|
|
2010-02-10 21:47:46 +00:00
|
|
|
* "gitk" and "git gui" translation updates.
|
2010-01-30 07:38:31 +00:00
|
|
|
|
2010-02-06 00:36:56 +00:00
|
|
|
* "gitweb" updates (code clean-up, load checking etc.)
|
|
|
|
|
2009-12-26 22:11:46 +00:00
|
|
|
(portability)
|
|
|
|
|
2010-01-19 02:16:50 +00:00
|
|
|
* Some more MSVC portability patches for msysgit port.
|
|
|
|
|
|
|
|
* Minimum Pthreads emulation for msysgit port.
|
|
|
|
|
2009-12-26 22:11:46 +00:00
|
|
|
(performance)
|
|
|
|
|
2010-01-19 02:16:50 +00:00
|
|
|
* More performance improvement patches for msysgit port.
|
|
|
|
|
2009-12-26 22:11:46 +00:00
|
|
|
(usability, bells and whistles)
|
|
|
|
|
2010-01-18 00:47:48 +00:00
|
|
|
* More commands learned "--quiet" and "--[no-]progress" options.
|
|
|
|
|
|
|
|
* Various commands given by the end user (e.g. diff.type.textconv,
|
|
|
|
and GIT_EDITOR) can be specified with command line arguments. E.g. it
|
|
|
|
is now possible to say "[diff "utf8doc"] textconv = nkf -w".
|
|
|
|
|
|
|
|
* "sparse checkout" feature allows only part of the work tree to be
|
|
|
|
checked out.
|
|
|
|
|
|
|
|
* HTTP transfer can use authentication scheme other than basic
|
|
|
|
(i.e./e.g. digest).
|
|
|
|
|
2010-01-19 02:16:50 +00:00
|
|
|
* Switching from a version of superproject that used to have a submodule
|
|
|
|
to another version of superproject that no longer has it did not remove
|
|
|
|
the submodule directory when it should (namely, when you are not
|
|
|
|
interested in the submodule at all and didn't clone/checkout).
|
|
|
|
|
2010-01-21 07:30:45 +00:00
|
|
|
* A new attribute conflict-marker-size can be used to change the size of
|
|
|
|
the conflict markers from the default 7; this is useful when tracked
|
|
|
|
contents (e.g. git-merge documentation) have strings that resemble the
|
|
|
|
conflict markers.
|
|
|
|
|
2010-01-23 00:34:50 +00:00
|
|
|
* A new syntax "<branch>@{upstream}" can be used on the command line to
|
|
|
|
substitute the name of the "upstream" of the branch. Missing branch
|
|
|
|
defaults to the current branch, so "git fetch && git merge @{upstream}"
|
|
|
|
will be equivalent to "git pull".
|
|
|
|
|
2010-02-12 23:45:05 +00:00
|
|
|
* "git am --resolved" has a synonym "git am --continue".
|
|
|
|
|
2010-02-12 09:47:53 +00:00
|
|
|
* "git branch --set-upstream" can be used to update the (surprise!) upstream,
|
2010-01-23 00:34:50 +00:00
|
|
|
i.e. where the branch is supposed to pull and merge from (or rebase onto).
|
|
|
|
|
2010-01-18 00:47:48 +00:00
|
|
|
* "git checkout A...B" is a way to detach HEAD at the merge base between
|
|
|
|
A and B.
|
|
|
|
|
2010-01-21 07:30:45 +00:00
|
|
|
* "git checkout -m path" to reset the work tree file back into the
|
|
|
|
conflicted state works even when you already ran "git add path" and
|
|
|
|
resolved the conflicts.
|
|
|
|
|
2010-01-07 23:47:32 +00:00
|
|
|
* "git commit --date='<date>'" can be used to override the author date
|
|
|
|
just like "git commit --author='<name> <email>'" can be used to
|
|
|
|
override the author identity.
|
|
|
|
|
2010-01-18 00:47:48 +00:00
|
|
|
* "git commit --no-status" can be used to omit the listing of the index
|
|
|
|
and the work tree status in the editor used to prepare the log message.
|
|
|
|
|
2010-01-21 07:30:45 +00:00
|
|
|
* "git commit" warns a bit more aggressively until you configure user.email,
|
|
|
|
whose default value almost always is not (and fundamentally cannot be)
|
|
|
|
what you want.
|
|
|
|
|
|
|
|
* "git difftool" has been extended to make it easier to integrate it
|
|
|
|
with gitk.
|
|
|
|
|
2010-01-18 00:47:48 +00:00
|
|
|
* "git fetch --all" can now be used in place of "git remote update".
|
|
|
|
|
2010-01-30 07:38:31 +00:00
|
|
|
* "git grep" does not rely on external grep anymore. It can use more than
|
2010-02-12 09:47:53 +00:00
|
|
|
one thread to accelerate the operation.
|
2010-01-21 07:30:45 +00:00
|
|
|
|
2010-01-30 07:38:31 +00:00
|
|
|
* "git grep" learned "--quiet" option.
|
|
|
|
|
2010-01-23 00:34:50 +00:00
|
|
|
* "git log" and friends learned "--glob=heads/*" syntax that is a more
|
|
|
|
flexible way to complement "--branches/--tags/--remotes".
|
|
|
|
|
2010-01-21 07:30:45 +00:00
|
|
|
* "git merge" learned to pass options specific to strategy-backends. E.g.
|
|
|
|
|
|
|
|
- "git merge -Xsubtree=path/to/directory" can be used to tell the subtree
|
|
|
|
strategy how much to shift the trees explicitly.
|
|
|
|
|
|
|
|
- "git merge -Xtheirs" can be used to auto-merge as much as possible,
|
|
|
|
while discarding your own changes and taking merged version in
|
|
|
|
conflicted regions.
|
|
|
|
|
2010-01-18 00:47:48 +00:00
|
|
|
* "git push" learned "git push origin --delete branch", a syntactic sugar
|
|
|
|
for "git push origin :branch".
|
|
|
|
|
2010-01-21 07:30:45 +00:00
|
|
|
* "git push" learned "git push --set-upstream origin forker:forkee" that
|
|
|
|
lets you configure your "forker" branch to later pull from "forkee"
|
|
|
|
branch at "origin".
|
|
|
|
|
2010-01-18 00:47:48 +00:00
|
|
|
* "git rebase --onto A...B" means the history is replayed on top of the
|
|
|
|
merge base between A and B.
|
|
|
|
|
2010-02-12 09:47:53 +00:00
|
|
|
* "git rebase -i" learned new action "fixup" that squashes the change
|
2010-01-21 07:30:45 +00:00
|
|
|
but does not affect existing log message.
|
|
|
|
|
2010-02-12 09:47:53 +00:00
|
|
|
* "git rebase -i" also learned --autosquash option that is useful
|
2010-01-21 07:30:45 +00:00
|
|
|
together with the new "fixup" action.
|
|
|
|
|
2010-02-12 09:47:53 +00:00
|
|
|
* "git remote" learned set-url subcommand that updates (surprise!) url
|
2010-01-23 00:34:50 +00:00
|
|
|
for an existing remote nickname.
|
|
|
|
|
2010-01-21 07:30:45 +00:00
|
|
|
* "git rerere" learned "forget path" subcommand. Together with "git
|
|
|
|
checkout -m path" it will be useful when you recorded a wrong
|
|
|
|
resolution.
|
|
|
|
|
2010-01-18 00:47:48 +00:00
|
|
|
* Use of "git reset --merge" has become easier when resetting away a
|
|
|
|
conflicted mess left in the work tree.
|
|
|
|
|
2010-01-19 02:16:50 +00:00
|
|
|
* "git rerere" had rerere.autoupdate configuration but there was no way
|
|
|
|
to countermand it from the command line; --no-rerere-autoupdate option
|
|
|
|
given to "merge", "revert", etc. fixes this.
|
|
|
|
|
2010-01-07 23:47:32 +00:00
|
|
|
* "git status" learned "-s(hort)" output format.
|
|
|
|
|
2010-01-18 00:47:48 +00:00
|
|
|
(developers)
|
|
|
|
|
|
|
|
* The infrastructure to build foreign SCM interface has been updated.
|
|
|
|
|
2010-01-23 00:34:50 +00:00
|
|
|
* Many more commands are now built-in.
|
2009-12-26 22:11:46 +00:00
|
|
|
|
2010-01-30 01:22:19 +00:00
|
|
|
* THREADED_DELTA_SEARCH is no more. If you build with threads, delta
|
|
|
|
compression will always take advantage of it.
|
|
|
|
|
2009-12-26 22:11:46 +00:00
|
|
|
Fixes since v1.6.6
|
|
|
|
------------------
|
|
|
|
|
|
|
|
All of the fixes in v1.6.6.X maintenance series are included in this
|
|
|
|
release, unless otherwise noted.
|
|
|
|
|
2010-01-23 00:34:50 +00:00
|
|
|
* "git branch -d branch" used to refuse deleting the branch even when
|
|
|
|
the branch is fully merged to its upstream branch if it is not merged
|
|
|
|
to the current branch. It now deletes it in such a case.
|
|
|
|
|
2010-02-12 23:45:05 +00:00
|
|
|
* "fiter-branch" command incorrectly said --prune-empty and --filter-commit
|
|
|
|
were incompatible; the latter should be read as --commit-filter.
|
|
|
|
|
2010-02-01 18:09:39 +00:00
|
|
|
* When using "git status" or asking "git diff" to compare the work tree
|
|
|
|
with something, they used to consider that a checked-out submodule with
|
|
|
|
uncommitted changes is not modified; this could cause people to forget
|
|
|
|
committing these changes in the submodule before committing in the
|
|
|
|
superproject. They now consider such a change as a modification and
|
|
|
|
"git diff" will append a "-dirty" to the work tree side when generating
|
|
|
|
patch output or when used with the --submodule option.
|