Code

Merge branch 'cn/eradicate-working-copy' into maint
authorJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2011 23:13:31 +0000 (16:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2011 23:13:31 +0000 (16:13 -0700)
* cn/eradicate-working-copy:
  Remove 'working copy' from the documentation and C code

1  2 
Documentation/config.txt
diff-lib.c
merge-recursive.c

diff --combined Documentation/config.txt
index 0781341d6b3ad26e99b5db58b1322842564ad107,c489b3bc15b7d506bbae3d624267eab7a288658f..eae75a39c0bcc779ed2c66ef6fa9b03a24a4a2fd
@@@ -147,7 -147,7 +147,7 @@@ advice.*:
  
  core.fileMode::
        If false, the executable bit differences between the index and
-       the working copy are ignored; useful on broken filesystems like FAT.
+       the working tree are ignored; useful on broken filesystems like FAT.
        See linkgit:git-update-index[1].
  +
  The default is true, except linkgit:git-clone[1] or linkgit:git-init[1]
@@@ -179,7 -179,7 +179,7 @@@ is created
  
  core.trustctime::
        If false, the ctime differences between the index and the
-       working copy are ignored; useful when the inode change time
+       working tree are ignored; useful when the inode change time
        is regularly modified by something outside Git (file system
        crawlers and some backup systems).
        See linkgit:git-update-index[1]. True by default.
@@@ -292,7 -292,7 +292,7 @@@ core.ignoreStat:
        If true, commands which modify both the working tree and the index
        will mark the updated paths with the "assume unchanged" bit in the
        index. These marked files are then assumed to stay unchanged in the
-       working copy, until you mark them otherwise manually - Git will not
+       working tree, until you mark them otherwise manually - Git will not
        detect the file changes by lstat() calls. This is useful on systems
        where those are very slow, such as Microsoft Windows.
        See linkgit:git-update-index[1].
@@@ -1453,8 -1453,7 +1453,8 @@@ notes.rewriteRef:
        You may also specify this configuration several times.
  +
  Does not have a default value; you must configure this variable to
 -enable note rewriting.
 +enable note rewriting.  Set it to `refs/notes/commits` to enable
 +rewriting for the default commit notes.
  +
  This setting can be overridden with the `GIT_NOTES_REWRITE_REF`
  environment variable, which must be a colon separated list of refs or
diff --combined diff-lib.c
index ebe751e72d0ca9db2f0a9d2576f3dc3f41ffc31d,c5e07545b22e4023d4b1196744294842a1d06f03..62f4cd94cfbc4d3fe9e46c84f318af6624349a48
@@@ -289,7 -289,7 +289,7 @@@ static void show_new_file(struct rev_in
  
        /*
         * New file in the index: it might actually be different in
-        * the working copy.
+        * the working tree.
         */
        if (get_stat_data(new, &sha1, &mode, cached, match_missing,
            &dirty_submodule, &revs->diffopt) < 0)
@@@ -468,7 -468,6 +468,7 @@@ static int diff_cache(struct rev_info *
        opts.unpack_data = revs;
        opts.src_index = &the_index;
        opts.dst_index = NULL;
 +      opts.pathspec = &revs->diffopt.pathspec;
  
        init_tree_desc(&t, tree->buffer, tree->size);
        return unpack_trees(1, &t, &opts);
diff --combined merge-recursive.c
index 3efc04e04fd754de85fbab1dbafa7bffb2fa2854,8148a4fab3abfa803e57edf062f155224ef28626..c34a4f148b65cf81f28e2aed6c35e141e175b324
@@@ -390,7 -390,7 +390,7 @@@ static void record_df_conflict_files(st
                                     struct string_list *entries)
  {
        /* If there is a D/F conflict and the file for such a conflict
-        * currently exist in the working copy, we want to allow it to be
+        * currently exist in the working tree, we want to allow it to be
         * removed to make room for the corresponding directory if needed.
         * The files underneath the directories of such D/F conflicts will
         * be processed before the corresponding file involved in the D/F
@@@ -1627,7 -1627,7 +1627,7 @@@ static int merge_content(struct merge_o
                path_renamed_outside_HEAD = !path2 || !strcmp(path, path2);
                if (!path_renamed_outside_HEAD) {
                        add_cacheinfo(mfi.mode, mfi.sha, path,
 -                                    0 /*stage*/, 1 /*refresh*/, 0 /*options*/);
 +                                    0, (!o->call_depth), 0);
                        return mfi.clean;
                }
        } else