Clarify why we can't do 'git rev-list' with a path.
Avery Pennarun committed
Apr 26, 2009 at 15:54 UTC
1f73862f3b63bbc9f0a8a8a12dd58e1a39a3355f
1 file changed
+3
-3
git-subtree.sh
+3
-3
@@ -338,9 +338,9 @@ cmd_split()
338
unrevs="$(find_existing_splits "$dir" "$revs")"
339
fi
340
341
- # We can't restrict rev-list to only "$dir" here, because that leaves out
342
- # critical information about commit parents.
343
- debug "git rev-list --reverse --parents $revs $unrevs"
341
+ # We can't restrict rev-list to only $dir here, because some of our
342
+ # parents have the $dir contents the root, and those won't match.
343
+ # (and rev-list --follow doesn't seem to solve this)
344
git rev-list --reverse --parents $revs $unrevs |
345
while read rev parents; do
346
debug