Git browse through non-empty commits

474 Views Asked by At

I work on this project which has many commits with empty changesets. As much as I would like to run git filter-branch and remove those commits, this is really not an option.

Are there any tools (e.g. gitg tig) that would allow me to browse through only the non-empty commits? By browsing I mean viewing the (non-empty) commit list and easily view the diff of a commit of interest.

1

There are 1 best solutions below

0
On

Late to the party but you can add a file filter argument:

tig -- .

This means that tig will only show commits that touch any file under the "." directory (which is just any file when running from the repo root).