file history
See original GitHub issuei am currently porting git-server from nodegit
to isomorphic-git
(adobe/git-server#47). The port has been straight forward so far, kudos to the isomorphic team!
However, there’s one feature i can’t find in isomorphic-git: listing all commits which affected a particular file, i.e. the eqiuvalent of
git log -- path/to/file
Any pointers/suggestions would be greatly appreciated.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Backup and Restore in Windows - Microsoft Support
In the search box in Control Panel, type File History. Select Save backup copies of your files with File History from the list...
Read more >How to Use Windows' File History to Back Up Your Data
File History is Windows 10's main backup tool, originally introduced in Windows 8. Despite the name, File History isn't just a way to ......
Read more >Beginner's Guide: How to Use File History Windows 10
Simply put, File History is a free backup feature that first appears in Microsoft Windows 8.1 and remains to be available in Windows...
Read more >How to Set Up and Use File History on Windows 11
File History backs up Documents, Music, Pictures, Downloads, Videos, offline OneDrive files, and Desktop folders. All you need is a USB storage ...
Read more >How to back up your files in Windows 10 and 11 with File History
Windows 10 File History Backup ... In Windows 10, go to Settings > Update & Security > Backup. Connect the drive or device...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome! I’ve added it to the Snippets page. https://isomorphic-git.org/docs/en/snippets#git-log-path-to-file
Hmmm that’s going to be a little tricky. I’m not sure how the canonical git does it (it may have some kind of optimized lookup table) but you could kind of brute force it with a combination of
log
andreadObject
…OK, here’s something that kinda works. It doesn’t track files across renames (because that ability is still magic to me) but it finds all the commits where the SHA changed including when the file first appeared.
I ran it on
isomorphic-git
and here’s the output:compared with: