Skip to content

Commit 262657d

Browse files
committed
Merge branch 'maint'
* maint: Update draft release notes to 1.7.1.1 tests: remove unnecessary '^' from 'expr' regular expression Conflicts: diff.c
2 parents 6df2ffa + a4c2454 commit 262657d

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

Documentation/RelNotes-1.7.1.1.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Fixes since v1.7.1
2828
* "git checkout" and "git rebase" overwrote paths that are marked "assume
2929
unchanged".
3030

31+
* "git commit --amend" on a commit with an invalid author-name line that
32+
lacks the display name didn't work.
33+
3134
* "git describe" did not tie-break tags that point at the same commit
3235
correctly; newer ones are preferred by paying attention to the
3336
tagger date now.
@@ -49,14 +52,25 @@ Fixes since v1.7.1
4952

5053
* "git log --abbrev=$num --format='%h' ignored --abbrev=$num.
5154

55+
* "git ls-files ../out/side/cwd" refused to work.
56+
57+
* "git merge --log" used to replace the custom message given by "-m" with
58+
the shortlog, instead of appending to it.
59+
5260
* "git pull" accepted "--dry-run", gave it to underlying "git fetch" but
5361
ignored the option itself, resulting in a bogus attempt to merge
5462
unrelated commit.
5563

64+
* "git reset --hard" started from a wrong directory and a working tree in
65+
a nonstandard location is in use got confused.
66+
5667
* "git send-email" lacked a way to specify the domainname used in the
5768
EHLO/HELO exchange, causing rejected connection from picky servers.
5869
It learned --smtp-domain option to solve this issue.
5970

71+
* "git show -C -C" and other corner cases lost diff metainfo output
72+
in 1.7.0.
73+
6074
* "git stash" incorrectly lost paths in the working tree that were
6175
previously removed from the index.
6276

@@ -65,3 +79,10 @@ Fixes since v1.7.1
6579
* "git status" showed excess "hints" even when advice.statusHints is set to false.
6680

6781
And other minor fixes and documentation updates.
82+
83+
84+
--
85+
exec >/var/tmp/1
86+
O=v1.7.1-195-gb2ebbd8
87+
echo O=$(git describe HEAD)
88+
git shortlog --no-merges HEAD ^$O

diff.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,6 @@ static void fill_metainfo(struct strbuf *msg,
26202620
}
26212621
/* fallthru */
26222622
default:
2623-
/* nothing */
26242623
*must_show_header = 0;
26252624
}
26262625
if (one && two && hashcmp(one->sha1, two->sha1)) {

t/t7005-editor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test_expect_success 'determine default editor' '
1313
1414
'
1515

16-
if ! expr "$vi" : '^[a-z]*$' >/dev/null
16+
if ! expr "$vi" : '[a-z]*$' >/dev/null
1717
then
1818
vi=
1919
fi

t/t7006-pager.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ test_expect_success TTY 'no pager with --no-pager' '
109109
# for the first color; the text "commit" comes later.
110110
colorful() {
111111
read firstline <$1
112-
! expr "$firstline" : "^[a-zA-Z]" >/dev/null
112+
! expr "$firstline" : "[a-zA-Z]" >/dev/null
113113
}
114114

115115
test_expect_success 'tests can detect color' '
@@ -167,7 +167,7 @@ test_expect_success 'determine default pager' '
167167
test -n "$less"
168168
'
169169

170-
if expr "$less" : '^[a-z][a-z]*$' >/dev/null && test_have_prereq TTY
170+
if expr "$less" : '[a-z][a-z]*$' >/dev/null && test_have_prereq TTY
171171
then
172172
test_set_prereq SIMPLEPAGER
173173
fi

0 commit comments

Comments
 (0)