Say someone clones repository A which results in repository B and then I clone repository B, is there a way to determine what the upstream repository (i.e. repository A) is? I know that github shows the 'forked from blah/blah' but I'm not using github for this project.
The reason I ask is that I'd like to get all the changes that the person made in a single diff file.
In subversion I could just do svn log --stop-on-copy
to get the first commit and then svn diff -rXXXX:HEAD
where XXXX is the first revision of the branch to get a diff with all the changes. I know that branching and cloning aren't quite the same thing but I wanted to provide what I was after ultimately. Doing a diff on the upstream repo and the cloned repo seemed the way to go but I might be wrong.
Thanks in advance.