author | Junio C Hamano <junkio@cox.net> | |
Sun, 4 Jun 2006 07:01:52 +0000 (00:01 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 4 Jun 2006 07:01:52 +0000 (00:01 -0700) |
* vb/sendemail:
Cleanup git-send-email.perl:extract_valid_email
read-tree --reset: update working tree file for conflicted paths.
Documentation: Spelling fixes
Builtin git-rev-parse.
fetch: do not report "same" unless -verbose.
Cleanup git-send-email.perl:extract_valid_email
read-tree --reset: update working tree file for conflicted paths.
Documentation: Spelling fixes
Builtin git-rev-parse.
fetch: do not report "same" unless -verbose.
1 | 2 | |||
---|---|---|---|---|
Documentation/git-read-tree.txt | patch | | diff1 | | diff2 | | blob | history |
builtin-read-tree.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc Documentation/git-read-tree.txt
Simple merge
diff --cc builtin-read-tree.c
index 0c6ba3d8a5b8227ab3edde15f704383cda73ce94,085e11e7c481bef35f88b3db50aa43c99f3c7768..cc61c2d8130da09a7fafe96e94017f1d28eec655
--- 1/builtin-read-tree.c
--- 2/builtin-read-tree.c
+++ b/builtin-read-tree.c
continue;
}
- /* This differs from "-m" in that we'll silently ignore unmerged entries */
+ /* "--prefix=<subdirectory>/" means keep the current index
+ * entries and put the entries from the tree under the
+ * given subdirectory.
+ */
+ if (!strncmp(arg, "--prefix=", 9)) {
+ if (stage || merge || prefix)
+ usage(read_tree_usage);
+ prefix = arg + 9;
+ merge = 1;
+ stage = 1;
+ if (read_cache_unmerged())
+ die("you need to resolve your current index first");
+ continue;
+ }
+
+ /* This differs from "-m" in that we'll silently ignore
+ * unmerged entries and overwrite working tree files that
+ * correspond to them.
+ */
if (!strcmp(arg, "--reset")) {
- if (stage || merge)
+ if (stage || merge || prefix)
usage(read_tree_usage);
reset = 1;
merge = 1;