Skip to content

Commit fa5f239

Browse files
committed
Sync with 2.6.4
2 parents e5da865 + bdfc6b3 commit fa5f239

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

Documentation/RelNotes/2.6.4.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,20 @@ Fixes since v2.6.3
4444
computing the object name of the target of symbolic link, which may
4545
not even exist or may be a directory.
4646

47+
* There was no way to defeat a configured rebase.autostash variable
48+
from the command line, as "git rebase --no-autostash" was missing.
49+
50+
* Allow "git interpret-trailers" to run outside of a Git repository.
51+
52+
* Produce correct "dirty" marker for shell prompts, even when we
53+
are on an orphan or an unborn branch.
54+
55+
* Some corner cases have been fixed in string-matching done in "git
56+
status".
57+
58+
* Apple's common crypto implementation of SHA1_Update() does not take
59+
more than 4GB at a time, and we now have a compile-time workaround
60+
for it.
61+
4762
Also contains typofixes, documentation updates and trivial code
4863
clean-ups.

Documentation/git.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ unreleased) version of Git, that is available from the 'master'
4343
branch of the `git.git` repository.
4444
Documentation for older releases are available here:
4545

46-
* link:v2.6.3/git.html[documentation for release 2.6.3]
46+
* link:v2.6.4/git.html[documentation for release 2.6.4]
4747

4848
* release notes for
49+
link:RelNotes/2.6.4.txt[2.6.4],
4950
link:RelNotes/2.6.3.txt[2.6.3],
5051
link:RelNotes/2.6.2.txt[2.6.2],
5152
link:RelNotes/2.6.1.txt[2.6.1],

wt-status.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,15 +1317,14 @@ static int grab_1st_switch(unsigned char *osha1, unsigned char *nsha1,
13171317
target += strlen(" to ");
13181318
strbuf_reset(&cb->buf);
13191319
hashcpy(cb->nsha1, nsha1);
1320-
for (end = target; *end && *end != '\n'; end++)
1321-
;
1322-
if (!memcmp(target, "HEAD", end - target)) {
1320+
end = strchrnul(target, '\n');
1321+
strbuf_add(&cb->buf, target, end - target);
1322+
if (!strcmp(cb->buf.buf, "HEAD")) {
13231323
/* HEAD is relative. Resolve it to the right reflog entry. */
1324+
strbuf_reset(&cb->buf);
13241325
strbuf_addstr(&cb->buf,
13251326
find_unique_abbrev(nsha1, DEFAULT_ABBREV));
1326-
return 1;
13271327
}
1328-
strbuf_add(&cb->buf, target, end - target);
13291328
return 1;
13301329
}
13311330

0 commit comments

Comments
 (0)