aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-02-03 23:50:09 -0800
committerJunio C Hamano <gitster@pobox.com>2009-02-03 23:50:09 -0800
commitf0817310903312bbc243dd80f066e17a8e0e4b1d (patch)
treefd619c9bf1e11ee6ea1ad5d6a000f96146f916b6
parent281907574ca420cc9a800190509adbf89bf9a2d1 (diff)
parent7a85f6ae88be5937c32a7b61601a40a02c03fb3f (diff)
downloadgit-f0817310903312bbc243dd80f066e17a8e0e4b1d.tar.gz
git-f0817310903312bbc243dd80f066e17a8e0e4b1d.tar.xz
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
-rw-r--r--Documentation/technical/api-strbuf.txt2
-rw-r--r--Documentation/user-manual.txt2
-rw-r--r--Makefile2
-rw-r--r--builtin-apply.c2
-rw-r--r--test-dump-cache-tree.c (renamed from dump-cache-tree.c)0
5 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/technical/api-strbuf.txt b/Documentation/technical/api-strbuf.txt
index a8ee2fe6a..985800e43 100644
--- a/Documentation/technical/api-strbuf.txt
+++ b/Documentation/technical/api-strbuf.txt
@@ -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
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 19f571ae3..96af8977f 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -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
diff --git a/Makefile b/Makefile
index aabf0130b..01242889e 100644
--- a/Makefile
+++ b/Makefile
@@ -1353,7 +1353,7 @@ endif
### Testing rules
-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
+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
all:: $(TEST_PROGRAMS)
diff --git a/builtin-apply.c b/builtin-apply.c
index a8f75ed3e..3b6cd6dfa 100644
--- a/builtin-apply.c
+++ b/builtin-apply.c
@@ -2435,7 +2435,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)
diff --git a/dump-cache-tree.c b/test-dump-cache-tree.c
index 1f73f1ea7..1f73f1ea7 100644
--- a/dump-cache-tree.c
+++ b/test-dump-cache-tree.c