mirror of
https://github.com/git/git.git
synced 2026-03-17 04:00:11 +01:00
Merge branch 'master' into next
* master: Update draft release notes to 1.7.8 t/t3000-ls-files-others.sh: use $SHELL_PATH to run git-new-workdir script t1300: attempting to remove a non-existent .git/config is not an error strbuf.c: remove unnecessary strbuf_grow() from strbuf_getwholeline()
This commit is contained in:
@@ -4,7 +4,7 @@ Git v1.7.8 Release Notes (draft)
|
||||
Updates since v1.7.7
|
||||
--------------------
|
||||
|
||||
* Some git-svn and git-gui updates.
|
||||
* Some git-svn, git-gui and msysgit updates.
|
||||
|
||||
* Updates to bash completion scripts.
|
||||
|
||||
@@ -40,6 +40,9 @@ Updates since v1.7.7
|
||||
* "git diff" learned "--minimal" option to spend extra cycles to come
|
||||
up with a minimal patch output.
|
||||
|
||||
* "git diff" learned "--function-context" option to show the whole
|
||||
function as context that was affected by a change.
|
||||
|
||||
* "git fetch" learned to honor transfer.fsckobjects configuration to
|
||||
validate the objects that were received from the other end, just like
|
||||
"git receive-pack" (the receiving end of "git push") does.
|
||||
@@ -63,8 +66,16 @@ Updates since v1.7.7
|
||||
files in the working tree, so that matches in new but not yet
|
||||
added files do not get missed.
|
||||
|
||||
* The recursive merge backend no longer looks for meaningless
|
||||
existing merges in submodules unless in the outermost merge.
|
||||
|
||||
* "git log" and friends learned "--children" option.
|
||||
|
||||
* "git ls-remote" learned to respond to "-h"(elp) requests.
|
||||
|
||||
* "git merge" learned the "--edit" option to allow users to edit the
|
||||
merge commit log message.
|
||||
|
||||
* "git send-email" learned to respond to "-h"(elp) requests.
|
||||
|
||||
* "git send-email" allows the value given to sendemail.aliasfile to begin
|
||||
@@ -93,6 +104,8 @@ Updates since v1.7.7
|
||||
* "gitweb" leaked unescaped control characters from syntax hiliter
|
||||
outputs.
|
||||
|
||||
* "gitweb" now has its own manual pages.
|
||||
|
||||
|
||||
Also contains other documentation updates and minor code cleanups.
|
||||
|
||||
@@ -142,6 +155,9 @@ included in this release.
|
||||
of the file.
|
||||
(merge 8557263 jc/apply-blank-at-eof-fix later to maint).
|
||||
|
||||
* "git apply --index" did not check corrupted patch.
|
||||
(merge 2c93286 jm/maint-apply-detects-corrupt-patch-header later to maint).
|
||||
|
||||
* "git bisect" did not notice when it failed to update the working tree
|
||||
to the next commit to be tested.
|
||||
(merge 1acf11717 js/bisect-no-checkout later to maint).
|
||||
@@ -179,13 +195,17 @@ included in this release.
|
||||
hooks for attempted removal of non-existing refs.
|
||||
(merge 160b81ed ph/push-to-delete-nothing later to maint).
|
||||
|
||||
* "git send-email" did not honor the configured hostname when restarting
|
||||
the HELO/EHLO exchange after switching TLS on.
|
||||
(merge 155b940 md/smtp-tls-hello-again later to maint).
|
||||
|
||||
* "gitweb" used to produce a non-working link while showing the contents
|
||||
of a blob, when JavaScript actions are enabled.
|
||||
(merge 2b07ff3ff ps/gitweb-js-with-lineno later to maint).
|
||||
|
||||
---
|
||||
exec >/var/tmp/1
|
||||
O=v1.7.7-368-g9638384
|
||||
O=v1.7.7-418-g40d6987
|
||||
echo O=$(git describe --always master)
|
||||
git log --first-parent --oneline --reverse ^$O master
|
||||
echo
|
||||
|
||||
1
strbuf.c
1
strbuf.c
@@ -357,7 +357,6 @@ int strbuf_getwholeline(struct strbuf *sb, FILE *fp, int term)
|
||||
{
|
||||
int ch;
|
||||
|
||||
strbuf_grow(sb, 0);
|
||||
if (feof(fp))
|
||||
return EOF;
|
||||
|
||||
|
||||
@@ -558,8 +558,6 @@ EOF
|
||||
test_expect_success "section was removed properly" \
|
||||
"test_cmp expect .git/config"
|
||||
|
||||
rm .git/config
|
||||
|
||||
cat > expect << EOF
|
||||
[gitcvs]
|
||||
enabled = true
|
||||
@@ -570,6 +568,7 @@ EOF
|
||||
|
||||
test_expect_success 'section ending' '
|
||||
|
||||
rm -f .git/config &&
|
||||
git config gitcvs.enabled true &&
|
||||
git config gitcvs.ext.dbname %Ggitcvs1.%a.%m.sqlite &&
|
||||
git config gitcvs.dbname %Ggitcvs2.%a.%m.sqlite &&
|
||||
@@ -642,8 +641,6 @@ test_expect_success 'invalid bool (set)' '
|
||||
|
||||
test_must_fail git config --bool bool.nobool foobar'
|
||||
|
||||
rm .git/config
|
||||
|
||||
cat > expect <<\EOF
|
||||
[bool]
|
||||
true1 = true
|
||||
@@ -658,6 +655,7 @@ EOF
|
||||
|
||||
test_expect_success 'set --bool' '
|
||||
|
||||
rm -f .git/config &&
|
||||
git config --bool bool.true1 01 &&
|
||||
git config --bool bool.true2 -1 &&
|
||||
git config --bool bool.true3 YeS &&
|
||||
@@ -668,8 +666,6 @@ test_expect_success 'set --bool' '
|
||||
git config --bool bool.false4 FALSE &&
|
||||
cmp expect .git/config'
|
||||
|
||||
rm .git/config
|
||||
|
||||
cat > expect <<\EOF
|
||||
[int]
|
||||
val1 = 1
|
||||
@@ -679,13 +675,12 @@ EOF
|
||||
|
||||
test_expect_success 'set --int' '
|
||||
|
||||
rm -f .git/config &&
|
||||
git config --int int.val1 01 &&
|
||||
git config --int int.val2 -1 &&
|
||||
git config --int int.val3 5m &&
|
||||
cmp expect .git/config'
|
||||
|
||||
rm .git/config
|
||||
|
||||
cat >expect <<\EOF
|
||||
[bool]
|
||||
true1 = true
|
||||
@@ -699,6 +694,7 @@ cat >expect <<\EOF
|
||||
EOF
|
||||
|
||||
test_expect_success 'get --bool-or-int' '
|
||||
rm -f .git/config &&
|
||||
(
|
||||
echo "[bool]"
|
||||
echo true1
|
||||
@@ -718,7 +714,6 @@ test_expect_success 'get --bool-or-int' '
|
||||
|
||||
'
|
||||
|
||||
rm .git/config
|
||||
cat >expect <<\EOF
|
||||
[bool]
|
||||
true1 = true
|
||||
@@ -732,6 +727,7 @@ cat >expect <<\EOF
|
||||
EOF
|
||||
|
||||
test_expect_success 'set --bool-or-int' '
|
||||
rm -f .git/config &&
|
||||
git config --bool-or-int bool.true1 true &&
|
||||
git config --bool-or-int bool.false1 false &&
|
||||
git config --bool-or-int bool.true2 yes &&
|
||||
@@ -742,8 +738,6 @@ test_expect_success 'set --bool-or-int' '
|
||||
test_cmp expect .git/config
|
||||
'
|
||||
|
||||
rm .git/config
|
||||
|
||||
cat >expect <<\EOF
|
||||
[path]
|
||||
home = ~/
|
||||
@@ -752,6 +746,7 @@ cat >expect <<\EOF
|
||||
EOF
|
||||
|
||||
test_expect_success NOT_MINGW 'set --path' '
|
||||
rm -f .git/config &&
|
||||
git config --path path.home "~/" &&
|
||||
git config --path path.normal "/dev/null" &&
|
||||
git config --path path.trailingtilde "foo~" &&
|
||||
@@ -800,7 +795,7 @@ cat > expect << EOF
|
||||
hash = "test#test"
|
||||
EOF
|
||||
test_expect_success 'quoting' '
|
||||
rm .git/config &&
|
||||
rm -f .git/config &&
|
||||
git config quote.leading " test" &&
|
||||
git config quote.ending "test " &&
|
||||
git config quote.semicolon "test;test" &&
|
||||
|
||||
@@ -77,7 +77,7 @@ test_expect_success SYMLINKS 'ls-files --others with symlinked submodule' '
|
||||
) &&
|
||||
(
|
||||
cd super &&
|
||||
"$TEST_DIRECTORY/../contrib/workdir/git-new-workdir" ../sub sub
|
||||
"$SHELL_PATH" "$TEST_DIRECTORY/../contrib/workdir/git-new-workdir" ../sub sub
|
||||
git ls-files --others --exclude-standard >../actual
|
||||
) &&
|
||||
echo sub/ >expect &&
|
||||
|
||||
Reference in New Issue
Block a user