Long time ago, there was a spike that I did to try something, and then I removed it.
I don’t remember when I removed it (more than a year or maybe two years ago), but it was in our codebase for two or three months.
The spike was a code to read "pfx" files, and include unit tests.
I want to see if I can retrieve the code.
All what I know, is the code that I removed
- deleted a file with extensions "pfx"
- was under our "test" folder
- and was removed by me.
Is there a way to find that code
>Solution :
You could use the git log command with a glob pattern to narrow down the list of commits that affected pfx files under the test folder. To help you to identify the test file, you could also add the options:
--authorto filter for the commits recorded by the given author.--name-onlyto list the files affected by the commit.
git log --author=<author-name> --name-only master -- test/**/*.pfx
Once you obtain the list of commits, you can enter the detached HEAD state and inspect the desired commits with git checkout.
git checkout <commit-id>