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
This commit is contained in:
commit
b63bc0bc31
@ -21,7 +21,7 @@ allocated memory or not), use `strbuf_detach()` to unwrap a memory
|
||||
buffer from its strbuf shell in a safe way. That is the sole supported
|
||||
way. This will give you a malloced buffer that you can later `free()`.
|
||||
+
|
||||
However, it it totally safe to modify anything in the string pointed by
|
||||
However, it is totally safe to modify anything in the string pointed by
|
||||
the `buf` member, between the indices `0` and `len-1` (inclusive).
|
||||
|
||||
. The `buf` member is a byte array that has at least `len + 1` bytes
|
||||
|
@ -1507,7 +1507,7 @@ so on a different branch and then coming back), unstash the
|
||||
work-in-progress changes.
|
||||
|
||||
------------------------------------------------
|
||||
$ git stash "work in progress for foo feature"
|
||||
$ git stash save "work in progress for foo feature"
|
||||
------------------------------------------------
|
||||
|
||||
This command will save your changes away to the `stash`, and
|
||||
|
1
Makefile
1
Makefile
@ -1382,6 +1382,7 @@ TEST_PROGRAMS += test-chmtime$X
|
||||
TEST_PROGRAMS += test-ctype$X
|
||||
TEST_PROGRAMS += test-date$X
|
||||
TEST_PROGRAMS += test-delta$X
|
||||
TEST_PROGRAMS += test-dump-cache-tree$X
|
||||
TEST_PROGRAMS += test-genrandom$X
|
||||
TEST_PROGRAMS += test-match-trees$X
|
||||
TEST_PROGRAMS += test-parse-options$X
|
||||
|
@ -2441,7 +2441,7 @@ static int check_preimage(struct patch *patch, struct cache_entry **ce, struct s
|
||||
return error("%s: %s", old_name, strerror(errno));
|
||||
}
|
||||
|
||||
if (!cached)
|
||||
if (!cached && !tpatch)
|
||||
st_mode = ce_mode_from_stat(*ce, st->st_mode);
|
||||
|
||||
if (patch->is_new < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user