From: Avery Pennarun Date: Sun, 26 Apr 2009 19:54:42 +0000 (-0400) Subject: Clarify why we can't do 'git rev-list' with a path. X-Git-Tag: v1.7.11-rc0~176^2~72 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1f73862f3b63bbc9f0a8a8a12dd58e1a39a3355f;p=git.git Clarify why we can't do 'git rev-list' with a path. --- diff --git a/git-subtree.sh b/git-subtree.sh index 8b797dfc2..19ac2ef1c 100755 --- a/git-subtree.sh +++ b/git-subtree.sh @@ -338,9 +338,9 @@ cmd_split() unrevs="$(find_existing_splits "$dir" "$revs")" fi - # We can't restrict rev-list to only "$dir" here, because that leaves out - # critical information about commit parents. - debug "git rev-list --reverse --parents $revs $unrevs" + # We can't restrict rev-list to only $dir here, because some of our + # parents have the $dir contents the root, and those won't match. + # (and rev-list --follow doesn't seem to solve this) git rev-list --reverse --parents $revs $unrevs | while read rev parents; do debug