1
0
mirror of https://github.com/git/git.git synced 2024-10-22 17:09:18 +02:00

Hmm... can't actually filter rev-list on the subdir name.

Otherwise we can't keep track of parent relationships.  Argh.

This change makes it "work", but we get a bunch of empty commits.
This commit is contained in:
Avery Pennarun 2009-04-24 17:42:33 -04:00
parent 33ff583ad7
commit 2c71b7c46d

@ -173,28 +173,31 @@ cmd_split()
cache_setup || exit $?
if [ -n "$onto" ]; then
echo "Reading history for $onto..."
echo "Reading history for --onto=$onto..."
git rev-list $onto |
while read rev; do
# the 'onto' history is already just the subdir, so
# any parent we find there can be used verbatim
debug " cache: $rev"
cache_set $rev $rev
done
fi
unrevs="$(find_existing_splits "$dir" "$revs")"
git rev-list --reverse --parents $revs $unrevs -- "$dir" |
debug "git rev-list --reverse $revs $unrevs"
git rev-list --reverse --parents $revs $unrevsx |
while read rev parents; do
exists=$(cache_get $rev)
newparents=$(cache_get $parents)
debug
debug "Processing commit: $rev / $newparents"
debug "Processing commit: $rev"
exists=$(cache_get $rev)
if [ -n "$exists" ]; then
debug " prior: $exists"
continue
fi
debug " parents: $parents"
newparents=$(cache_get $parents)
debug " newparents: $newparents"
git ls-tree $rev -- "$dir" |
while read mode type tree name; do