Merge branch 'wc/find-commit-with-pattern-on-detached-head'
[gitweb.git] / revision.c
index 0afae4744a12b9b1bfd484c12440db82e19c8c9f..a2570397b6685fbd6e3a7d77ad7e2c554cc03772 100644 (file)
@@ -1,4 +1,5 @@
 #include "cache.h"
+#include "object-store.h"
 #include "tag.h"
 #include "blob.h"
 #include "tree.h"
@@ -174,6 +175,7 @@ static void add_pending_object_with_path(struct rev_info *revs,
                strbuf_release(&buf);
                return; /* do not add the commit itself */
        }
+       obj->flags |= USER_GIVEN;
        add_object_array_with_path(obj, name, &revs->pending, mode, path);
 }