]> git.ipfire.org Git - thirdparty/git.git/commit - revision.c
revision.c: --indexed-objects add objects from all worktrees
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 23 Aug 2017 12:36:52 +0000 (19:36 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Aug 2017 21:44:41 +0000 (14:44 -0700)
commitbe489d02d2f95b34e8f0fd15b9ec4752a11edd4c
tree8453a4f7809bfcc5fd6fe96f753b30bb07a88fa1
parent6c3d818154eb74a4d5b35e786eefd297745bae1a
revision.c: --indexed-objects add objects from all worktrees

This is the result of single_worktree flag never being set (no way to up
until now). To get objects from current index only, set single_worktree.

The other add_index_objects_to_pending's caller is mark_reachable_objects()
(e.g. "git prune") which also mark objects from all indexes.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c
t/t5304-prune.sh