diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-04-24 14:40:20 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-24 14:40:20 -0700 |
commit | 419f2ecf7894726773f7ea5620741ce8ec60e553 (patch) | |
tree | d09b87885f64fa960dcb2cbb155da8354190f399 /object.c | |
parent | 8c3a534c506bceb4981266e0c5db2918bb067da8 (diff) | |
parent | eb21c732d6b642a8f33abd69071a95de01d5061b (diff) | |
download | git-419f2ecf7894726773f7ea5620741ce8ec60e553.tar.gz |
Merge branch 'hv/submodule-recurse-push'
"git push --recurse-submodules" learns to optionally look into the
histories of submodules bound to the superproject and push them out.
By Heiko Voigt
* hv/submodule-recurse-push:
push: teach --recurse-submodules the on-demand option
Refactor submodule push check to use string list instead of integer
Teach revision walking machinery to walk multiple times sequencially
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -286,3 +286,14 @@ void object_array_remove_duplicates(struct object_array *array) array->nr = dst; } } + +void clear_object_flags(unsigned flags) +{ + int i; + + for (i=0; i < obj_hash_size; i++) { + struct object *obj = obj_hash[i]; + if (obj) + obj->flags &= ~flags; + } +} |