1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-01 14:57:52 +01:00

Clarify why we can't do 'git rev-list' with a path.

This commit is contained in:
Avery Pennarun 2009-04-26 15:54:42 -04:00
parent 86de04c6eb
commit 1f73862f3b

View file

@ -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