Skip to content

Commit b63bc0b

Browse files
committed
Merge branch 'maint'
* maint: User-manual: "git stash <comment>" form is long gone add test-dump-cache-tree in Makefile fix typo in Documentation apply: fix access to an uninitialized mode variable, found by valgrind Conflicts: Makefile
2 parents 738a94a + f081731 commit b63bc0b

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

Documentation/technical/api-strbuf.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ allocated memory or not), use `strbuf_detach()` to unwrap a memory
2121
buffer from its strbuf shell in a safe way. That is the sole supported
2222
way. This will give you a malloced buffer that you can later `free()`.
2323
+
24-
However, it it totally safe to modify anything in the string pointed by
24+
However, it is totally safe to modify anything in the string pointed by
2525
the `buf` member, between the indices `0` and `len-1` (inclusive).
2626

2727
. The `buf` member is a byte array that has at least `len + 1` bytes

Documentation/user-manual.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ so on a different branch and then coming back), unstash the
15071507
work-in-progress changes.
15081508

15091509
------------------------------------------------
1510-
$ git stash "work in progress for foo feature"
1510+
$ git stash save "work in progress for foo feature"
15111511
------------------------------------------------
15121512

15131513
This command will save your changes away to the `stash`, and

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,7 @@ TEST_PROGRAMS += test-chmtime$X
13821382
TEST_PROGRAMS += test-ctype$X
13831383
TEST_PROGRAMS += test-date$X
13841384
TEST_PROGRAMS += test-delta$X
1385+
TEST_PROGRAMS += test-dump-cache-tree$X
13851386
TEST_PROGRAMS += test-genrandom$X
13861387
TEST_PROGRAMS += test-match-trees$X
13871388
TEST_PROGRAMS += test-parse-options$X

builtin-apply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,7 @@ static int check_preimage(struct patch *patch, struct cache_entry **ce, struct s
24412441
return error("%s: %s", old_name, strerror(errno));
24422442
}
24432443

2444-
if (!cached)
2444+
if (!cached && !tpatch)
24452445
st_mode = ce_mode_from_stat(*ce, st->st_mode);
24462446

24472447
if (patch->is_new < 0)
File renamed without changes.

0 commit comments

Comments
 (0)