Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
update-index: be specific what part of the index has changed
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Fri, 13 Jun 2014 12:19:28 +0000
(19:19 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 13 Jun 2014 18:49:38 +0000
(11:49 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-index.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (from parent 1:
e636a7b
)
diff --git
a/builtin/update-index.c
b/builtin/update-index.c
index d2654d643ddb87afbdaf8f14d9c854fd12f98f47..e0e881b3e710c36e470e61e909ca84f077c0fbd0 100644
(file)
--- a/
builtin/update-index.c
+++ b/
builtin/update-index.c
@@
-56,7
+56,7
@@
static int mark_ce_flags(const char *path, int flag, int mark)
else
active_cache[pos]->ce_flags &= ~flag;
cache_tree_invalidate_path(active_cache_tree, path);
else
active_cache[pos]->ce_flags &= ~flag;
cache_tree_invalidate_path(active_cache_tree, path);
- active_cache_changed
= SOMETHING
_CHANGED;
+ active_cache_changed
|= CE_ENTRY
_CHANGED;
return 0;
}
return -1;
return 0;
}
return -1;
@@
-268,7
+268,7
@@
static void chmod_path(int flip, const char *path)
goto fail;
}
cache_tree_invalidate_path(active_cache_tree, path);
goto fail;
}
cache_tree_invalidate_path(active_cache_tree, path);
- active_cache_changed
= SOMETHING
_CHANGED;
+ active_cache_changed
|= CE_ENTRY
_CHANGED;
report("chmod %cx '%s'", flip, path);
return;
fail:
report("chmod %cx '%s'", flip, path);
return;
fail:
@@
-889,7
+889,7
@@
int cmd_update_index(int argc, const char **argv, const char *prefix)
INDEX_FORMAT_LB, INDEX_FORMAT_UB);
if (the_index.version != preferred_index_format)
INDEX_FORMAT_LB, INDEX_FORMAT_UB);
if (the_index.version != preferred_index_format)
- active_cache_changed = SOMETHING_CHANGED;
+ active_cache_changed
|
= SOMETHING_CHANGED;
the_index.version = preferred_index_format;
}
the_index.version = preferred_index_format;
}