Okay, maybe in the public area there are people who might know much more about git than I can... ;)
So this is a 'generic' topic for git-related issues. Feel free to use it for you, too.
I did my folder moves (for the theme removal stuff)[1], through a series of git mv old_long_folder/* new_short_folder/ commands, and it's working.
Now, when I right click Load.php (or any other file, really) and click Blame, TortoiseGit shows me a history of the file. I can click anywhere and go back to any old commits, so it's definitely doing git blame --follow. However, when I right-click a line and ask for 'Blame previous revision', it gives me this error:
Blame error
fatal: no such path sources/Load.php in (old commit ID)
Yes, of course that file wasn't there. But, Blame tool, you KNEW that, since you're listing all revisions of the file across renames! Git being able to find renames and code moves with needing to specifically track them is supposedly one of its biggest assets!
So, why do I have to go through that..?!
Am I condemned to go through filter-branch and tree-filter, and rename all files manually in the entire history...?! That would be an awful thing to do.
PS: I tested with Git Extensions and SmartGit, the first doesn't even react when I ask for an earlier commit, while the second one will show me earlier commits, so that's great, but the tool itself, I'm not really convinced by it, and I'm definitely sticking with TortoiseGit.
So this is a 'generic' topic for git-related issues. Feel free to use it for you, too.
I did my folder moves (for the theme removal stuff)[1], through a series of git mv old_long_folder/* new_short_folder/ commands, and it's working.
Now, when I right click Load.php (or any other file, really) and click Blame, TortoiseGit shows me a history of the file. I can click anywhere and go back to any old commits, so it's definitely doing git blame --follow. However, when I right-click a line and ask for 'Blame previous revision', it gives me this error:
Blame error
fatal: no such path sources/Load.php in (old commit ID)
Yes, of course that file wasn't there. But, Blame tool, you KNEW that, since you're listing all revisions of the file across renames! Git being able to find renames and code moves with needing to specifically track them is supposedly one of its biggest assets!
So, why do I have to go through that..?!
Am I condemned to go through filter-branch and tree-filter, and rename all files manually in the entire history...?! That would be an awful thing to do.
PS: I tested with Git Extensions and SmartGit, the first doesn't even react when I ask for an earlier commit, while the second one will show me earlier commits, so that's great, but the tool itself, I'm not really convinced by it, and I'm definitely sticking with TortoiseGit.
| 1. | BTW, I'm unsure whether I'll keep both 'scripts' and 'sources' folders side to side in the root. I tend to click on 'scripts' when wanting to view PHP files, and 'sources' when wanting to see JS files, so... Maybe it's just me, but if any of you has a suggestion on renaming the 'scripts' folder to something short and sweet and understandable, knowing that the name 'js' is already taken by the JS cache, I'm very open about this. |




