Merge branch 'jc/reupdate' into next
authorJunio C Hamano <junkio@cox.net>
Sat, 6 May 2006 07:20:54 +0000 (00:20 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 6 May 2006 07:20:54 +0000 (00:20 -0700)
* jc/reupdate:
  update-index --again: take optional pathspecs
  update-index --again
  update-index: plug memory leak from prefix_path()
  checkout-index: plug memory leak from prefix_path()
  update-index --unresolve: work from a subdirectory.

1  2 
checkout-index.c
update-index.c

Simple merge
diff --cc update-index.c
@@@ -379,9 -369,8 +379,9 @@@ static void update_one(const char *path
        if (mark_valid_only) {
                if (mark_valid(p))
                        die("Unable to mark file %s", path);
-               return;
+               goto free_return;
        }
 +      cache_tree_invalidate_path(active_cache_tree, path);
  
        if (force_remove) {
                if (remove_file_from_cache(p))