All of lore.kernel.org
 help / color / mirror / Atom feed
* Enhancing --show-function and --function-context in default configurations
@ 2021-08-01 21:40 heapcrash heapcrash
  2021-08-02  2:21 ` Junio C Hamano
  2021-08-02  8:45 ` Ævar Arnfjörð Bjarmason
  0 siblings, 2 replies; 7+ messages in thread
From: heapcrash heapcrash @ 2021-08-01 21:40 UTC (permalink / raw)
  To: git

Hello all!

Thanks to all of the Git community for making such amazing tools.

Some of my favorite features of Git are the --show-function and
--function-context features of git {grep,log,diff}.

However, the default configuration leaves a bit to be desired --
setting some simple flags in ~/.gitattributes for e.g.

    *.cpp diff=cpp
    *.py diff=python

Makes these features MUCH more accurate and usable.  However, one has
to know about gitattributes, diff filters, xfuncname, etc. in order to
turn these settings on.

I'd like to contribute changes to Git that makes the "obvious"
correlations be the default setting.  Before I start, I wanted to
gauge whether these changes would be accepted or not.  As far as I can
tell, these would not change the default behavior of plain git
{grep,log,diff} unless the --show-function or --function-context flags
are specified -- and if they are, the results would be improved.

Should I work on a patch that does this?

Thanks in advance,
Heapcrash

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-03 14:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-01 21:40 Enhancing --show-function and --function-context in default configurations heapcrash heapcrash
2021-08-02  2:21 ` Junio C Hamano
2021-08-02  8:45 ` Ævar Arnfjörð Bjarmason
2021-08-02 16:17   ` Jeff King
2021-08-02 17:06     ` Junio C Hamano
2021-08-03  2:34       ` heapcrash heapcrash
2021-08-03 14:55         ` Jeff King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.