I have two repos (let's call them oldrepo1 and oldrepo2). These two repos have 20k and 21k commits respectively in their current history. I'm merging them together in a new repo, each one under a subdir:
newrepo/oldrepo1
newrepo/oldrepo2
I've used these commands to populate the new repo
git subtree add --message="Migrate oldrepo1" --prefix=oldrepo1 <oldrepo1 url> master
git subtree add --message="Migrate oldrepo2" --prefix=oldrepo2 <oldrepo2 url> master
when I go into the root of newrepo, and run "git --no-pager log --graph --oneline" I get 41k commits, as expected, but if I drill down to any level underneath and run git log all I get is the "Migrate oldrepoX" commit:
For instance, I have a file that has had 60 changes in the original repo, but when I run git log on that same file in the new repo, all I get is:
commit <commitid>
Author: Me <me@myselfandi.com>
Date: Fri Sep 18 23:17:28 2020 -0700
Migrate oldrepo1
git-subtree-dir: oldrepo1
git-subtree-mainline: <somecommitid>
git-subtree-split: <somecommitid>
I didn't squash any history when I migrated, so why can't I see the 60 commits to this file in the new repo?