Hacker News new | past | comments | ask | show | jobs | submit login

> Git's builtin help and documentation are also useless.

It even worse. Git makes certain things bloody near impossible. Want to find deleted files across all branches in git? Good luck.

In Mercurial, it's "hg log --template "{rev}: {file_dels}\n"

So, the most reliable solution to finding deleted files in git is to convert the repository and then run the query in hg.

<facepalm>




What about:

  git log --name-only --diff-filter=D --all --pretty="format:deleted in commit %h"




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: