RE: git feature request: git blame --ignore-cleanup/--ignore-trivial
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Jun 2, 2021, 21:16 UTC
- Message-ID
- <60b7f54697fda_16925f2083d@natae.notmuch>
- In-Reply-To
- <30399052.5964.1622647235870.JavaMail.zimbra@efficios.com>
Mathieu Desnoyers wrote:
> Perhaps a new git blame "--ignore-trivial" and/or "--ignore-cleanup" could solve > this by filtering out "trivial" and "cleanup" patches from the history it considers.
While this feature would be a good addition, more often than not I need to look behind the latest commit regardless of whether or not it's a trivial one.
So what I often end up doing is a `git blame --incremental`:
git blame --incremental -L100,+6 file.c | grep -o -e '^[0-9a-f]\{40\}'This can be fed to `git log --stdin --oneline --no-walk` for more user-friendliness.
Of course you could just do:
git log -L100,+6:file.c --oneline --no-patch
But for some reason that's much slower on my system.
Cheers.
-- Felipe Contreras