-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong loc after author change or repo import #85
Comments
Something else that I notice is that the number of commits reports is not to the files included, but the whole repo. That might be intentional though. |
(Edited: I've now re-run |
Sorry for the delay; thanks for reporting this. Should be fixed in |
A while ago, I needed to incorporate someone else's code into our STIR repo. Unfortunately, I had commited his code in the original repo. So I manipulated history to assign some commits to him. (Sadly, I didn't record exactly what I did but I followed roughly https://stackoverflow.com/a/28845565/15030207). I then incorporated the repo into our STIR repo and moved files. (Roughly along the lines of https://stackoverflow.com/a/1684694/15030207). Checking now output of
git fame
, the relevant author doesn't get the credit he (=Carles Falcon) deserves. Am I doing something wrong with the call togit fame
?As running
git fame -wMC
on STIR take a very long time, I've tried to show an example with one of the relevant files is https://github.com/UCL/STIR/blob/master/src/recon_buildblock/PinholeSPECTUB_Weight3d.cxx, original name was wm_SPECT_mph2/weight3d_SPECT_mph.cpp`. For that I getNote that the "Total loc" reported is 73, while actually the file has some 1100 lines. All the ones from Carles are excluded for some reason. Of course, I could be making a mistake with the
--incl
option but Carles gets no credit when I don't specify an include.git blame
reports the correct thing, see here. Carles gets the correct number of commits, so maybe it's the way that I merged the original repo into STIR? (e.g. the commit does not "follow" from the first STIR commit).The "re-authored" commit is UCL/STIR@dd6fdee. The PR with the move (and other fixes) is UCL/STIR#1100
The text was updated successfully, but these errors were encountered: