Merge branch 'vb/sendemail' into next
authorJunio C Hamano <junkio@cox.net>
Sun, 4 Jun 2006 07:01:52 +0000 (00:01 -0700)
committerJunio 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.

1  2 
Documentation/git-read-tree.txt
builtin-read-tree.c

Simple merge
@@@ -920,24 -895,12 +921,27 @@@ int cmd_read_tree(int argc, const char 
                        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;