2
我有大量dandling提交的信息库。我只想看到有特定祖先的人。这可能吗?找到所有悬挂与给定的祖先提交 - Git的
我有大量dandling提交的信息库。我只想看到有特定祖先的人。这可能吗?找到所有悬挂与给定的祖先提交 - Git的
是的,它是可能的。
这里的总体规划:
shell脚本:
particular_ancestor_hash=<40 character hash>
for commit in `git fsck --unreachable|grep 'unreachable commit'|awk '{print $3}'`; do
if git log --format='%H' $commit|grep -q $particular_ancestor_hash; then
echo $commit
fi
done
我很好奇,答案,尽管没有任何审批工作流程是生产这么多的悬挂承诺的。 – 2011-12-14 02:22:11