Skip to content

Commit f081731

Browse files
committed
Merge branch 'maint-1.6.0' into maint
* maint-1.6.0: 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
2 parents 2819075 + 7a85f6a commit f081731

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ endif
13531353

13541354
### Testing rules
13551355

1356-
TEST_PROGRAMS = test-chmtime$X test-genrandom$X test-date$X test-delta$X test-sha1$X test-match-trees$X test-parse-options$X test-path-utils$X
1356+
TEST_PROGRAMS = test-chmtime$X test-dump-cache-tree$X test-genrandom$X test-date$X test-delta$X test-sha1$X test-match-trees$X test-parse-options$X test-path-utils$X
13571357

13581358
all:: $(TEST_PROGRAMS)
13591359

builtin-apply.c

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

2438-
if (!cached)
2438+
if (!cached && !tpatch)
24392439
st_mode = ce_mode_from_stat(*ce, st->st_mode);
24402440

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

0 commit comments

Comments
 (0)